mirror of
https://github.com/house-of-vanity/conf_bot.git
synced 2026-05-07 06:51:22 +00:00
Got rid with strict username existance check.
Now users w/o username should handled OK.
This commit is contained in:
@@ -8,3 +8,4 @@ code.png
|
||||
*.swp
|
||||
*.swo
|
||||
*.allah
|
||||
.vscode/settings.json
|
||||
|
||||
@@ -170,7 +170,10 @@ class MessageWorker:
|
||||
return False
|
||||
try:
|
||||
text = msg['message']['text']
|
||||
username = msg['message']['from']['username']
|
||||
try:
|
||||
username = msg['message']['from']['username']
|
||||
except:
|
||||
username = "_null"
|
||||
try:
|
||||
last_name = msg['message']['from']['last_name']
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user