mirror of
https://gitlab.com/vylion/velascobot.git
synced 2025-04-19 13:36:36 +02:00
Added forced wakeup message to bot admin (admin id set by a flag)
This commit is contained in:
parent
ca0dc26ef4
commit
f6d0305868
1 changed files with 4 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue