diff options
| author | 2019-04-28 13:36:25 +0100 | |
|---|---|---|
| committer | 2019-04-28 13:36:25 +0100 | |
| commit | fbdd254c69d32274403d006418fdf0a08bd9a1b6 (patch) | |
| tree | 02137e90ba48a82ac2ddb803f456c75d2a6caac6 /modules/echo.py | |
| parent | Add opencagedata-api-key to bot.conf.example (diff) | |
| signature | ||
Add echo.py
Diffstat (limited to 'modules/echo.py')
| -rw-r--r-- | modules/echo.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/echo.py b/modules/echo.py new file mode 100644 index 00000000..94f560fa --- /dev/null +++ b/modules/echo.py @@ -0,0 +1,6 @@ +from src import ModuleManager, utils + +class Module(ModuleManager.BaseModule): + @utils.hook("received.command.echo") + def echo(self, event): + event["stdout"].write(event["args"]) |
