all function done

This commit is contained in:
2017-08-09 01:11:20 +08:00
parent 74f380f572
commit 7c051beb88
2 changed files with 48 additions and 14 deletions

6
bot.py
View File

@ -82,16 +82,16 @@ def on_chat(msg):
if command[0] == '/upload' or command[0] == '上傳答案📮':
user.upload_answer()
elif command[0] == '/result' or command[0] == '查看結果☑️':
pass # unavailable
user.list_results()
elif command[0] == '/passer' or command[0] == '通過名單🌐':
pass # unavailable
user.list_passers()
elif command[0] == '回到題目📜':
user.display_question(user.question)
else:
bot.sendMessage(chat_id, "快去寫扣啦!")
elif content_type == 'document':
if user.status == '上傳答案':
if user.status == '上傳答案' or user.status == '查看題目':
if user.check_online() == True:
if msg['document']['file_size'] > 167770000:
pass