ircbot/guiniol.py

16 lines
282 B
Python
Raw Normal View History

2012-06-21 11:09:36 +00:00
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))