From 055fe860e7ef7d04f78d6a30244cd33761a6d2d2 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 21 Aug 2024 22:26:28 +0200 Subject: [PATCH] BugFix + Disabling von DST Tropical ModServer --- osiris_listener_telegram.py | 51 ++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/osiris_listener_telegram.py b/osiris_listener_telegram.py index 985cf89..ee839e6 100644 --- a/osiris_listener_telegram.py +++ b/osiris_listener_telegram.py @@ -221,9 +221,19 @@ dont_starve_menu = [ ], [ {"text": "Don't Starve weirdly at Sanders (Modded)", "callback_data": "dswas_sanders"}, + ]#, + #[ + # {"text": "Don't Starve tropical at Sanders (Modded)", "callback_data": "dstas_sanders"}, + #] +] + +dst_vanilla_menu = [ + [ + {"text": "<- Zurück", "callback_data": "dst_vanilla_back"} ], [ - {"text": "Don't Starve tropical at Sanders (Modded)", "callback_data": "dstas_sanders"}, + {"text": "Start", "callback_data": "dst_vanilla_start"}, + {"text": "Stop", "callback_data": "dst_vanilla_stop"} ] ] @@ -237,15 +247,15 @@ dswas_menu = [ ] ] -dstas_menu = [ - [ - {"text": "<- Zurück", "callback_data": "dstas_back"} - ], - [ - {"text": "Start", "callback_data": "dstas_start"}, - {"text": "Stop", "callback_data": "dstas_stop"} - ] -] +#dstas_menu = [ +# [ +# {"text": "<- Zurück", "callback_data": "dstas_back"} +# ], +# [ +# {"text": "Start", "callback_data": "dstas_start"}, +# {"text": "Stop", "callback_data": "dstas_stop"} +# ] +#] ragnarok_online_menu = [ [ @@ -700,16 +710,17 @@ async def handle_callback(update: Update, context: ContextTypes.DEFAULT_TYPE) -> await query.message.reply_text(f"{msg}") case "dswas_back": await query.message.reply_text("Wähle einen Don't Starve Together Server:", reply_markup=InlineKeyboardMarkup(dont_starve_menu)) - case "dstas_sanders": - await query.message.reply_text("Wähle einen Aktion für den Dont Starve tropical Dont Sanders Server:", reply_markup=InlineKeyboardMarkup(dstas_menu)) - case "dstas_start": - msg = start_gameserver("dstas_sanders") - await query.message.reply_text(f"{msg}") - case "dstas_stop": - msg = stop_gameserver("dstas_sanders") - await query.message.reply_text(f"{msg}") - case "dstas_back": - await query.message.reply_text("Wähle einen Don't Starve Together Server:", reply_markup=InlineKeyboardMarkup(dont_starve_menu)) + # Erstmal Auf eis gelegt : Dont Starve tropical at Sanders -> Zu viel Aufwand für zuwenig Interesse (Bei bedarf wird nachgezogen) + #case "dstas_sanders": + # await query.message.reply_text("Wähle einen Aktion für den Dont Starve tropical Dont Sanders Server:", reply_markup=InlineKeyboardMarkup(dstas_menu)) + #case "dstas_start": + # msg = start_gameserver("dstas_sanders") + # await query.message.reply_text(f"{msg}") + #case "dstas_stop": + # msg = stop_gameserver("dstas_sanders") + # await query.message.reply_text(f"{msg}") + #case "dstas_back": + # await query.message.reply_text("Wähle einen Don't Starve Together Server:", reply_markup=InlineKeyboardMarkup(dont_starve_menu)) # Ragnarok Online Server case "ro_start": msg = "Not Implemented yet"