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