8c6ab17e57
facilitate things like !set and !channelset without using the events system
8 lines
215 B
Python
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!")
|