V3_GQRX_Improvements #11

Merged
logan merged 36 commits from V3_GQRX_Improvements into master 2022-04-16 20:52:44 -04:00
Showing only changes of commit dbbd5b6fe3 - Show all commits

10
bot.py
View File

@@ -178,7 +178,7 @@ class Bot(commands.Bot):
self.profile_name = None
# If the SDR is started, restart it with the updates
self.use_current_radio_config()
await self.use_current_radio_config()
# Add commands for GQRX and OP25
if self.Handler in BotResources.PDB_ACCEPTABLE_HANDLERS.keys():
@@ -233,7 +233,7 @@ class Bot(commands.Bot):
self.profile_name = None
# If the SDR is started, restart it with the updates
self.use_current_radio_config()
await self.use_current_radio_config()
else:
await ctx.send(f"{str(member).capitalize()}, {mode} is not valid."
f" You may only enter {self.possible_modes}")
@@ -260,7 +260,7 @@ class Bot(commands.Bot):
self.profile_name = None
# If the SDR is started, restart it with the updates
self.use_current_radio_config()
await self.use_current_radio_config()
# Hidden admin commands
@self.command(name='saveprofile', hidden=True)
@@ -509,9 +509,9 @@ class Bot(commands.Bot):
self.profile_name = profile_name
self.use_current_radio_config()
await self.use_current_radio_config()
def use_current_radio_config(self):
async def use_current_radio_config(self):
if self.sdr_started:
# Set the loaded profile settings into GQRX
if self.Handler == "gqrx":