Bot Changes
- Awaiting new async 'use_current_radio_config' function
This commit is contained in:
Logan Cusano
2022-04-09 02:23:46 -04:00
parent 63b37d14cb
commit dbbd5b6fe3

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":