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