From 293e206dad7efda6c081818966556542192b3304 Mon Sep 17 00:00:00 2001 From: Pin Lin Date: Sun, 19 Nov 2017 22:08:07 +0800 Subject: [PATCH] just want to know student_id --- bot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bot.py b/bot.py index b997d23..8a43595 100644 --- a/bot.py +++ b/bot.py @@ -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']]