Improved the display of profiles

This commit is contained in:
Logan Cusano
2022-03-17 23:19:30 -04:00
parent 759f05eb0c
commit 9f4473ffcc

8
bot.py
View File

@@ -499,9 +499,9 @@ class Bot(commands.Bot):
if os.path.exists('./profiles.ini'):
config.read('./profiles.ini')
for section in config.sections():
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"
message_body += f"\n{section}:\n" \
f"\tMode:\t\t\t\t{config[section]['Mode']}\n" \
f"\tFrequency:\t\t{config[section]['Frequency']}\n" \
f"\tSquelch:\t\t\t{config[section]['Squelch']}\n"
return message_body