diff options
| author | 2018-10-03 13:22:37 +0100 | |
|---|---|---|
| committer | 2018-10-03 13:22:37 +0100 | |
| commit | 69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch) | |
| tree | 11aa30f2a357f3be23ad97315dae3df051455cbe /modules/telegram.py | |
| parent | Add a way to not add a user automatically in IRCServer.get_user (diff) | |
| signature | ||
Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
Diffstat (limited to 'modules/telegram.py')
| -rw-r--r-- | modules/telegram.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/telegram.py b/modules/telegram.py index f60613b4..b836b2a8 100644 --- a/modules/telegram.py +++ b/modules/telegram.py @@ -1,5 +1,6 @@ #--ignore import telegram, telegram.ext +from src import utils import json from datetime import datetime @@ -48,7 +49,7 @@ class Module(Thread): } self.events.on("telegram.command").on(command).call(**data) - @Utils.hook("signal.interrupt") + @utils.hook("signal.interrupt") def sigint(self, event): self.updater.stop() |
