bitbot-3.11-fork/modules/echo.py
2019-09-26 11:56:37 +01:00

9 lines
247 B
Python

#--depends-on commands
from src import ModuleManager, utils
class Module(ModuleManager.BaseModule):
@utils.hook("received.command.echo")
@utils.kwarg("min_args", 1)
def echo(self, event):
event["stdout"].write(event["args"])