bitbot-3.11-fork/modules/pong.py

8 lines
206 B
Python

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