bitbot-3.11-fork/modules/pong.py

10 lines
227 B
Python
Raw Normal View History

2016-03-29 11:56:58 +00:00
class Module(object):
def __init__(self, bot):
bot.events.on("received").on("command").on("ping"
).hook(self.pong, help="Ping pong!")
def pong(self, event):
event["stdout"].write("Pong!")