|
@@ -54,6 +54,10 @@ class Task(object): |
|
|
self.bot = bot |
|
|
self.bot = bot |
|
|
self.config = bot.config |
|
|
self.config = bot.config |
|
|
self.logger = bot.tasks.logger.getChild(self.name) |
|
|
self.logger = bot.tasks.logger.getChild(self.name) |
|
|
|
|
|
|
|
|
|
|
|
number = self.config.tasks.get(self.name, {}).get("number") |
|
|
|
|
|
if number is not None: |
|
|
|
|
|
self.number = number |
|
|
self.setup() |
|
|
self.setup() |
|
|
|
|
|
|
|
|
def __repr__(self): |
|
|
def __repr__(self): |
|
|