From b62dc01bd7e673134b48a03e9fb017defaed0da5 Mon Sep 17 00:00:00 2001 From: Matthew Ramina Date: Thu, 28 Nov 2013 20:05:46 -0500 Subject: [PATCH] added .botslap --- modules/botsnack.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/botsnack.py b/modules/botsnack.py index 485eabe..7ae4b47 100644 --- a/modules/botsnack.py +++ b/modules/botsnack.py @@ -106,5 +106,14 @@ botsnack.hunger = 50.0 botsnack.last_tick = time.time() botsnack.coolingdown = False +def botslap(phenny, input): + """tell me I'm being a bad bot""" + messages = ["hides in corner", "eats own hat", "apologises", "stares at feet", "points at zfe", "didn't do anything", "doesn't deserve this", "hates you guys", "did it on purpose", "is an inconsistent sketchy little bot", "scurries off"] + phenny.do(random.choice(messages)) + +botslap.commands = ['botslap', 'botsmack'] +botslap.rule = r'(?i)(?:$nickname[,:]? )?(you suck|I hate you|you ruin everything|you spoil all [themyour]*fun|bad|wtf|lame|[youare\']*stupid|silly)(?:[,]? $nickname)?[ \t]*$' +botsnack.priority = 'low' + if __name__ == '__main__': print(__doc__.strip())