mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
WIP periodic tasks
This commit is contained in:
parent
186bb0f68f
commit
45395846c2
2 changed files with 7 additions and 1 deletions
|
@ -17,3 +17,9 @@ class Post:
|
|||
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
for task in u.tasks['periodic_gpm']:
|
||||
self.bot.loop.create_task()
|
||||
|
||||
async def _check_posts(self, user, channel):
|
||||
pass
|
||||
|
|
|
@ -68,7 +68,7 @@ def dump(obj, filename, *, json=False):
|
|||
|
||||
|
||||
settings = setdefault('misc/settings.pkl', {'del_ctx': [], 'prefixes': {}})
|
||||
tasks = setdefault('cogs/tasks.pkl', {'auto_del': [], 'auto_rev': []})
|
||||
tasks = setdefault('cogs/tasks.pkl', {'auto_del': [], 'auto_rev': [], 'periodic_gpm': []})
|
||||
temp = setdefault('temp/temp.pkl', {'startup': ()})
|
||||
|
||||
RATE_LIMIT = 2.2
|
||||
|
|
Loading…
Reference in a new issue