diff --git a/bot.py b/bot.py index 32dd755..1693d24 100644 --- a/bot.py +++ b/bot.py @@ -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":