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