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