diff options
| author | 2019-12-14 11:41:30 +0100 | |
|---|---|---|
| committer | 2019-12-14 11:41:30 +0100 | |
| commit | ab6b0032ceb6ad638cee6f174778bc38254ab038 (patch) | |
| tree | dffbc5279ac7e9ab05521a0b08244d5a279c5609 | |
| parent | Catch all HTTPExecption (diff) | |
Actually schedule message for deletion
| -rw-r--r-- | bot/cogs/filtering.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py index c0a2c7d3b..0879bfee6 100644 --- a/bot/cogs/filtering.py +++ b/bot/cogs/filtering.py @@ -204,6 +204,8 @@ class Filtering(Cog, Scheduler): 'delete_date': delete_date.isoformat() } ) + loop = asyncio.get_event_loop() + self.schedule_task(loop, msg.id, {'id': msg.id, 'channel_id': msg.channel.id}) log.trace( f"Offensive message will be deleted on " f"{delete_date.isoformat()}" |