mirror of
				https://gitlab.com/questable/questable_bot
				synced 2025-10-31 20:30:05 +01:00 
			
		
		
		
	Disallow checking for quests/side quests in between adding them
This commit is contained in:
		
							
								
								
									
										3
									
								
								bot.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								bot.py
									
									
									
									
									
								
							| @@ -232,6 +232,9 @@ def quest_handling(bot, update, db): | |||||||
|     text = update.message.text.lower().split("_") |     text = update.message.text.lower().split("_") | ||||||
|     chat_id = update.message.chat_id |     chat_id = update.message.chat_id | ||||||
|     player = questable.player(db, 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": |     if text[0] == "/q": | ||||||
|         quest(bot, update, player, text[1], "quest") |         quest(bot, update, player, text[1], "quest") | ||||||
|     elif text[0] == "/sq": |     elif text[0] == "/sq": | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user