mirror of
https://github.com/house-of-vanity/conf_bot.git
synced 2025-07-06 14:24:08 +00:00
Fixed @here command
This commit is contained in:
@ -76,9 +76,8 @@ class MessageWorker:
|
||||
self.send(id=conf_id, msg=msg + ' ```')
|
||||
return True
|
||||
|
||||
first, *middle, last = msg['message']['text'].split()
|
||||
if first == '@here' or last == '@here':
|
||||
|
||||
if msg['message']['text'][:5] == '@here' or \
|
||||
msg['message']['text'][5:] == '@here':
|
||||
conf_id = msg['message']['chat']['id']
|
||||
user_id = msg['message']['from']['id']
|
||||
chat_title = msg['message']['chat']['title']
|
||||
|
Reference in New Issue
Block a user