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