diff options
| author | 2019-10-05 18:07:25 +0200 | |
|---|---|---|
| committer | 2019-10-05 18:07:25 +0200 | |
| commit | 23fe6c71398391fea8fdca71a287faca304c3ea8 (patch) | |
| tree | 1e382ac3c077554527d9215b26e5edc92afb9665 /tests | |
| parent | Added a new `periodic_ping` to fix #320 (diff) | |
Requested changes
Changed `PERIODIC_PING` from 2 f-string to one normal and one f-string.
The bot now checks in the lasts 5 messages (why 5? Admins/mods could have add some notes, and/or users could have wrong taped the command, which lead the bot to send a message) the time of his last ping. If there is not historic ping, will send one (initialization and make the command more robust). If there is one previous `PERIODIC_PING` message, checks if it older than one week.
I also set the countdown from 1 to 12 hours. Why not more? Because each time the bot is restarted the countdown is reset to 0, and I don't know how often it is restarted.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions