diff options
author | mdway <romangraef@gmail.com> | 2017-10-01 18:35:19 +0200 |
---|---|---|
committer | mdway <romangraef@gmail.com> | 2017-10-01 18:35:19 +0200 |
commit | 8ca8afbc80704b3fe922c2c4409b7b9a9325d304 (patch) | |
tree | 1a02bb417aba1f5a508fedd260c402ebd07ff300 /src/modules/echo.py | |
parent | 72097be5c9cdab29497d98812d932937440c3414 (diff) | |
download | Postfix-Bot-8ca8afbc80704b3fe922c2c4409b7b9a9325d304.tar.gz Postfix-Bot-8ca8afbc80704b3fe922c2c4409b7b9a9325d304.tar.bz2 Postfix-Bot-8ca8afbc80704b3fe922c2c4409b7b9a9325d304.zip |
Added Youtube info support
Diffstat (limited to 'src/modules/echo.py')
-rw-r--r-- | src/modules/echo.py | 6 |
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 |