ircbot/guiniol.py
2012-06-21 20:09:36 +09:00

16 lines
282 B
Python

client = None
def mod_init(cl):
global client
client = cl
def on_pubchat(who, chan, msg):
if who.split('!')[0] == 'guiniolBot':
if msg.find('aurez') != -1:
client.sendto(chan, '%cACTION sort un fusil sniper et ajuste la visee sur guiniolBot...%c' % (1, 1))