From 759f05eb0cc7f0c0242bf14f377ba807e7d6ca6f Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Thu, 17 Mar 2022 23:18:17 -0400 Subject: [PATCH] Improved the display of profiles --- bot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index ba4f7ed..1edc187 100644 --- a/bot.py +++ b/bot.py @@ -494,11 +494,14 @@ class Bot(commands.Bot): return message_body def display_saved_radio_configs(self): - message_body = f"Saved configs" + message_body = f"Saved configs\n" config = configparser.ConfigParser() if os.path.exists('./profiles.ini'): config.read('./profiles.ini') for section in config.sections(): - message_body += f"{section}\n" + message_body += f"{section}\n" \ + f"Frequency:\t\t{config[section]['Frequency']}\n" \ + f"Mode:\t\t{config[section]['Mode']}\n" \ + f"Squelch:\t\t{config[section]['Squelch']}\n" return message_body