Bot can now have too much food
parent
fe4721bb99
commit
15ce88b20a
|
@ -10,9 +10,16 @@ def botsnack(phenny, input):
|
||||||
messages = ["Om nom nom", "Delicious, thanks!"]
|
messages = ["Om nom nom", "Delicious, thanks!"]
|
||||||
response = random.choice(messages)
|
response = random.choice(messages)
|
||||||
|
|
||||||
phenny.say(response)
|
botsnack.snacks += 1
|
||||||
|
|
||||||
|
if botsnack.snacks % 7 == 0:
|
||||||
|
phenny.say("Too much food!")
|
||||||
|
phenny.do("explodes")
|
||||||
|
else:
|
||||||
|
phenny.say(response)
|
||||||
botsnack.commands = ['botsnack']
|
botsnack.commands = ['botsnack']
|
||||||
botsnack.priority = 'low'
|
botsnack.priority = 'low'
|
||||||
|
botsnack.snacks = 0
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print __doc__.strip()
|
print __doc__.strip()
|
||||||
|
|
Loading…
Reference in New Issue