bitbot-3.11-fork/modules/ping.py

12 lines
287 B
Python
Raw Normal View History

#--depends-on commands
from src import ModuleManager, utils
2016-03-29 11:56:58 +00:00
class Module(ModuleManager.BaseModule):
@utils.hook("received.command.ping")
2016-03-29 11:56:58 +00:00
def pong(self, event):
"""
2019-06-18 16:33:42 +00:00
:help: Ping pong
"""
2020-01-30 11:54:24 +00:00
event["stdout"].write("%s: pong!" % event["user"].nickname)