diff options
| author | 2018-09-27 11:46:10 +0100 | |
|---|---|---|
| committer | 2018-09-27 11:46:10 +0100 | |
| commit | 8b0314b190b02f7e83fe0dae3c349ce4dffdcb4f (patch) | |
| tree | 2481de34452598ff3d3ca579612a0fdc0dc0edc5 /modules/in.py | |
| parent | Implement @Utils.export, to denote an export on a module (diff) | |
| signature | ||
Use ModuleManager.BaseModule in more modules
Diffstat (limited to 'modules/in.py')
| -rw-r--r-- | modules/in.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/in.py b/modules/in.py index 52363fec..36b84f28 100644 --- a/modules/in.py +++ b/modules/in.py @@ -1,13 +1,10 @@ import time -from src import Utils +from src import ModuleManager, Utils SECONDS_MAX = Utils.SECONDS_WEEKS*8 SECONDS_MAX_DESCRIPTION = "8 weeks" -class Module(object): - def __init__(self, bot, events, exports): - self.bot = bot - +class Module(ModuleManager.BaseModule): @Utils.hook("received.command.in", min_args=2, usage="<time> <message>") def in_command(self, event): """ |
