Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Points for each answered station
Browse files Browse the repository at this point in the history
  • Loading branch information
GWFrank committed Nov 15, 2022
1 parent 307963e commit 838d471
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,17 @@ def getCommand(event: MessageEvent):
question_text = ""
for i, q in enumerate(st.get_questions()):
question_text += f"\n檢查點 {i+1}{q}"
msgs.append(TextSendMessage(text=(f"恭喜你答對了,以下是你的站內地圖以及提示圖片。{question_text}")))
Teams[uid].answered(sid)
Teams[uid].score += 50
msgs.append(TextSendMessage(text=(
"恭喜你答對了\n"
"獲得分數50\n"
f"目前總得分{Teams[uid].score}\n"
f"以下是你的站內地圖以及提示圖片。{question_text}"
)))
for h in hints:
msgs.append(ImageSendMessage(h, h))
Teams[uid].answered(sid)
# Points for each answered stations
if not correct: # When no station matched
msgs.append(TextSendMessage(
text="也許你好像哪裡答錯了QQ"
Expand Down

0 comments on commit 838d471

Please sign in to comment.