Disallow checking for quests/side quests in between adding them
This commit is contained in:
parent
705b10abc9
commit
df944ed6ac
3
bot.py
3
bot.py
|
@ -232,6 +232,9 @@ def quest_handling(bot, update, db):
|
|||
text = update.message.text.lower().split("_")
|
||||
chat_id = update.message.chat_id
|
||||
player = questable.player(db, chat_id)
|
||||
state = player.get_state()
|
||||
if state["state"] in ["aq", "asq", "qd", "sqd", "qi", "sqi"]:
|
||||
return message_handling(bot, update, db)
|
||||
if text[0] == "/q":
|
||||
quest(bot, update, player, text[1], "quest")
|
||||
elif text[0] == "/sq":
|
||||
|
|
Loading…
Reference in New Issue