summaryrefslogtreecommitdiff
path: root/src/modules/echo.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/echo.py')
-rw-r--r--src/modules/echo.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/echo.py b/src/modules/echo.py
index 9510442..d4a8f4e 100644
--- a/src/modules/echo.py
+++ b/src/modules/echo.py
@@ -4,6 +4,8 @@ import main
client = None
+config = None
+
@main.description("aka cat")
@main.name("echo")
@@ -12,7 +14,9 @@ def echo(args, author, channel, message):
yield from client.send_message(channel, content=author.mention + ': ' + args[0])
-def setup(default_cmds, cclient):
+def setup(default_cmds, cclient, cconfig):
global client
+ global config
+ config = cconfig
default_cmds += [echo]
client = cclient