From dbbd5b6fe3c10a06095ab27c99c07c4519f066f5 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 9 Apr 2022 02:23:46 -0400 Subject: [PATCH] //WIP V3 Bot Changes - Awaiting new async 'use_current_radio_config' function --- bot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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":