just want to know student_id

This commit is contained in:
2017-11-19 22:08:07 +08:00
parent 56334793b5
commit 293e206dad

6
bot.py
View File

@ -33,6 +33,12 @@ def on_chat(msg):
else:
users[str(from_id)] = user
# just want to know
try:
print('student_id:', user._username)
except:
pass
if content_type == 'text':
# pre-treat the command
command = [msg['text']]