diff options
| author | 2019-10-05 13:32:23 +0200 | |
|---|---|---|
| committer | 2019-10-05 13:32:23 +0200 | |
| commit | cbbfc733e7f2a2ae7cd1f946c8c3da94a521c258 (patch) | |
| tree | 42a6a39d02194254a4e586160bf1675eb0c14f1f /tests | |
| parent | Added to the .gitignore file a new file to be ignored, .DS_Store (only on Mac... (diff) | |
Added a new `periodic_ping` to fix #320
Created a new function named `periodic_ping` in `verification.py`, using `discord.ext.tasks` and `datetime` module. Every hour the function checks if the last message in the channel (ie last message of the bot) is older than a week. If so, it deletes this message and post a new one.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions