Back button in quest view

This commit is contained in:
Ceda EI 2018-11-03 04:29:14 +05:30
parent 48bce46990
commit e58c01201e
1 changed files with 4 additions and 0 deletions

4
bot.py
View File

@ -265,6 +265,10 @@ def message_handling(bot, update, db):
add_imp(bot, update, player, "quest", state["extra"]) add_imp(bot, update, player, "quest", state["extra"])
elif state["state"] == "sqi": elif state["state"] == "sqi":
add_imp(bot, update, player, "side_quest", state["extra"]) add_imp(bot, update, player, "side_quest", state["extra"])
elif state["state"] == "eq":
if text == "back":
player.set_state('none', 0)
send_status(bot, update, player)
db = sqlite3.connect("questable.db", check_same_thread=False) db = sqlite3.connect("questable.db", check_same_thread=False)