move botsnack to bitbot-modules
This commit is contained in:
parent
9a152541f1
commit
31607def4e
1 changed files with 0 additions and 19 deletions
|
@ -1,19 +0,0 @@
|
||||||
#--depends-on commands
|
|
||||||
|
|
||||||
import random
|
|
||||||
from src import ModuleManager, utils
|
|
||||||
|
|
||||||
ACTIONS = [
|
|
||||||
"cronch",
|
|
||||||
"munch",
|
|
||||||
"nom nom",
|
|
||||||
"wriggles excitedly"
|
|
||||||
]
|
|
||||||
|
|
||||||
class Module(ModuleManager.BaseModule):
|
|
||||||
@utils.hook("received.command.botsnack")
|
|
||||||
@utils.kwarg("expect_output", False)
|
|
||||||
def botsnack(self, event):
|
|
||||||
event["target"].send_message("\x01ACTION %s\x01" %
|
|
||||||
random.choice(ACTIONS))
|
|
||||||
|
|
Loading…
Reference in a new issue