From f6d0305868dfad68321b47898df875f420f48521 Mon Sep 17 00:00:00 2001 From: vylion Date: Mon, 26 Oct 2020 17:01:00 +0100 Subject: [PATCH] Added forced wakeup message to bot admin (admin id set by a flag) --- speaker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/speaker.py b/speaker.py index d7e4391..8078f83 100644 --- a/speaker.py +++ b/speaker.py @@ -62,8 +62,10 @@ class Speaker(object): pass def wake(self, bot, wake): - # Sends a wake-up message as announcement to all chats that - # are groups + # If wakeup flag is set, sends a wake-up message as announcement to all chats that + # are groups. Also, always sends a wakeup message to the 'bot admin' + send(bot, self.archivist.admin, wake) + if self.wakeup: def group_check(reader): return reader.check_type("group")