Grammar fix

Comma in `Ok <member>*,*\n<message>`
This commit is contained in:
Logan Cusano
2022-02-27 17:09:06 -05:00
parent a5f0a4b193
commit fdb9bb519c

9
bot.py
View File

@@ -136,14 +136,15 @@ class Bot(commands.Bot):
# Add commands for GQRX and OP25
if self.Handler in BotResources.PDB_ACCEPTABLE_HANDLERS.keys():
# Command to display the current config
@self.command(name='displayprofile', help="Use this command to display the current configuration of the bot.\n"
@self.command(name='displayprofile',
help="Use this command to display the current configuration of the bot.\n"
"Example command:\n"
"\t@ displayprofile",
breif="Display current bot config")
async def _displayprofile(ctx, member: discord.Member = None):
member = member or ctx.author.display_name
message = self.display_current_radio_config()
await ctx.send(f"Ok {str(member).capitalize()}\n{message}")
await ctx.send(f"Ok {str(member).capitalize()},\n{message}")
# Command to change the current frequency and mode
@self.command(name='chfreq', help="Use this command to change the frequency the bot is listening to.\n"
@@ -226,11 +227,11 @@ class Bot(commands.Bot):
await ctx.send(f"{str(member).capitalize()}, something went wrong. Please check the console")
@self.command(name='startsdr', hidden=True)
async def _startsdr(ctx, member: discord.Member = None):
async def _startsdr(*args):
self.start_sdr()
@self.command(name='stopsdr', hidden=True)
async def _stopsdr(ctx, member: discord.Member = None):
async def _stopsdr(*args):
self.stop_sdr()
# Add discord events to the bot