bitbot-3.11-fork/modules/ping.py
2020-01-30 11:54:24 +00:00

11 lines
287 B
Python

#--depends-on commands
from src import ModuleManager, utils
class Module(ModuleManager.BaseModule):
@utils.hook("received.command.ping")
def pong(self, event):
"""
:help: Ping pong
"""
event["stdout"].write("%s: pong!" % event["user"].nickname)