From e0c9d5ce85de16375155955b08ed36959bb43369 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Thu, 11 Nov 2010 17:49:07 -0500 Subject: [PATCH] Added .botsnack feature --- modules/botsnack.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 modules/botsnack.py diff --git a/modules/botsnack.py b/modules/botsnack.py new file mode 100755 index 0000000..13af7bf --- /dev/null +++ b/modules/botsnack.py @@ -0,0 +1,21 @@ +#!/usr/bin/python2 +""" +botsnack.py - .botsnack module +author: mutantmonkey +""" + +import random + +def botsnack(phenny, input): + msg = input.group(2) + + messages = ["Om nom nom", "Delicious, thanks!"] + response = random.choice(messages) + + phenny.say(response) +botsnack.commands = ['botsnack'] +botsnack.priority = 'low' + +if __name__ == '__main__': + print __doc__.strip() +