diff options
| -rw-r--r-- | velascobot2/bot.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/velascobot2/bot.py b/velascobot2/bot.py index fe2e2ce..bf1a161 100644 --- a/velascobot2/bot.py +++ b/velascobot2/bot.py @@ -510,6 +510,10 @@ class Bot: pass async def wake_up(self, exclusive: bool = False) -> None: + # Make the bot mute itself for 1 minute while it catches up with chats + # to avoid spamming with several messages in a row + self.messenger.set_mute_timer(int(time.perf_counter())) + if not self.messenger.wake_up: return if len(self.motd_list) == 0: |
