aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-28 13:36:25 +0100
committerGravatar jesopo2019-04-28 13:36:25 +0100
commitfbdd254c69d32274403d006418fdf0a08bd9a1b6 (patch)
tree02137e90ba48a82ac2ddb803f456c75d2a6caac6 /modules
parentAdd opencagedata-api-key to bot.conf.example (diff)
signature
Add echo.py
Diffstat (limited to 'modules')
-rw-r--r--modules/echo.py6
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"])