From e7af0a9e0ae0f0a240b95fa1fdb21f117952e864 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 21 Aug 2024 00:29:13 +0200 Subject: [PATCH] Add profile for dswas and dstas (dst server) --- osiris_listener_telegram.py | 52 ++++++++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 9 deletions(-) diff --git a/osiris_listener_telegram.py b/osiris_listener_telegram.py index 6a09347..985cf89 100644 --- a/osiris_listener_telegram.py +++ b/osiris_listener_telegram.py @@ -76,7 +76,18 @@ gaming_server_profiles = { 'args_DontStarveAtSandersOverworld': ["C:/Program Files (x86)/Steam/steamapps/common/Don't Starve Together Dedicated Server/bin/dontstarve_dedicated_server_nullrenderer.exe", '-persistent_storage_root', r"C:/Users/4lexK/Desktop/GameServers/Dont Starve/Dont Starve at Sanders (Vanilla)", '-conf_dir', "DontStarveAtSandersOverworld", '-console', '-cluster', 'DontStarveAtSanders', '-shard', 'Master'], 'args_DontStarveAtSandersCave': ["C:/Program Files (x86)/Steam/steamapps/common/Don't Starve Together Dedicated Server/bin/dontstarve_dedicated_server_nullrenderer.exe", '-persistent_storage_root', r"C:/Users/4lexK/Desktop/GameServers/Dont Starve/Dont Starve at Sanders (Vanilla)", '-conf_dir', "DontStarveAtSandersCave", '-console', '-cluster', 'DontStarveAtSanders', '-shard', 'Caves'], 'wait_time': 30 + }, + "dswas_sanders": { + 'profile_id': 'dswas_sanders', + 'exec_type': 'exe_dst', + 'exec_path': "C:/Program Files (x86)/Steam/steamapps/common/Don't Starve Together Dedicated Server/bin", + 'server_name': 'Dont Starve Weirdly at Sanders', + 'directory': "C:/Users/4lexK/Desktop/GameServers/Dont Starve/Dont Starve weirdly at Sanders", + 'args_DontStarveWeirdlyAtSandersOverworld': ["C:/Program Files (x86)/Steam/steamapps/common/Don't Starve Together Dedicated Server/bin/dontstarve_dedicated_server_nullrenderer.exe", '-persistent_storage_root', r"C:/Users/4lexK/Desktop/GameServers/Dont Starve/Dont Starve weirdly at Sanders", '-conf_dir', "DontStarveWeirdlyAtSandersOverworld", '-console', '-cluster', 'DontStarveWeirdlyAtSanders', '-shard', 'Master'], + 'args_DontStarveWeirdlyAtSandersCave': ["C:/Program Files (x86)/Steam/steamapps/common/Don't Starve Together Dedicated Server/bin/dontstarve_dedicated_server_nullrenderer.exe", '-persistent_storage_root', r"C:/Users/4lexK/Desktop/GameServers/Dont Starve/Dont Starve weirdly at Sanders", '-conf_dir', "DontStarveWeirdlyAtSandersCave", '-console', '-cluster', 'DontStarveWeirdlyAtSanders', '-shard', 'Caves'], + 'wait_time': 30 } + # Ragnarok Online # World of Warcraft } @@ -209,27 +220,30 @@ dont_starve_menu = [ {"text": "Don't Starve at Sanders (Vanilla)", "callback_data": "dst_vanilla"}, ], [ - {"text": "Don't Starve differently at Sanders (Modded)", "callback_data": "dst_modded"}, + {"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 = [ +dswas_menu = [ [ - {"text": "<- Zurück", "callback_data": "dst_vanilla_back"} + {"text": "<- Zurück", "callback_data": "dswas_back"} ], [ - {"text": "Start", "callback_data": "dst_vanilla_start"}, - {"text": "Stop", "callback_data": "dst_vanilla_stop"} + {"text": "Start", "callback_data": "dswas_start"}, + {"text": "Stop", "callback_data": "dswas_stop"} ] ] -dst_modded_menu = [ +dstas_menu = [ [ - {"text": "<- Zurück", "callback_data": "dst_modded_back"} + {"text": "<- Zurück", "callback_data": "dstas_back"} ], [ - {"text": "Start", "callback_data": "dst_modded_start"}, - {"text": "Stop", "callback_data": "dst_modded_stop"} + {"text": "Start", "callback_data": "dstas_start"}, + {"text": "Stop", "callback_data": "dstas_stop"} ] ] @@ -676,6 +690,26 @@ async def handle_callback(update: Update, context: ContextTypes.DEFAULT_TYPE) -> await query.message.reply_text(f"{msg}") case "dst_vanilla_back": await query.message.reply_text("Wähle einen Don't Starve Together Server:", reply_markup=InlineKeyboardMarkup(dont_starve_menu)) + case "dswas_sanders": + await query.message.reply_text("Wähle einen Aktion für den Dont Starve weirdly at Sanders Server:", reply_markup=InlineKeyboardMarkup(dswas_menu)) + case "dswas_start": + msg = start_gameserver("dswas_sanders") + await query.message.reply_text(f"{msg}") + case "dswas_stop": + msg = stop_gameserver("dswas_sanders") + 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)) # Ragnarok Online Server case "ro_start": msg = "Not Implemented yet"