bitbot-3.11-fork/modules/pong.py
jesopo 8c6ab17e57 give an Exports object (actually, ExportsContex object) to each module, to
facilitate things like !set and !channelset without using the events system
2018-09-02 19:54:45 +01:00

8 lines
215 B
Python

class Module(object):
def __init__(self, bot, events, exports):
events.on("received.command.ping").hook(self.pong, help="Ping pong!")
def pong(self, event):
event["stdout"].write("Pong!")