From c3b430b56d1d0a3cbb4a49bb50a195ada71118e0 Mon Sep 17 00:00:00 2001 From: deflax Date: Wed, 17 Jan 2024 18:00:39 +0200 Subject: [PATCH] !help is a reserved word --- src/discordbot/discordbot.py | 4 ++-- variables.env.dist | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index 7a3b614..0c28882 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -74,9 +74,9 @@ async def time(ctx): async def now(ctx): await ctx.channel.send(query_playhead()) -@bot.command(name='help') +@bot.command(name='usage') async def help(ctx): - usage = "```- !help - usage\n- !time - show current time\n- !epg list scheduled streams\n- !now - display whats playing now\n- !hello says hi :)```" + usage = "```- !usage - usage\n- !time - show current time\n- !epg list scheduled streams\n- !now - display whats playing now\n- !hello says hi :)```" await ctx.channel.send(usage) # Helper functions diff --git a/variables.env.dist b/variables.env.dist index e65e9e2..a16137a 100644 --- a/variables.env.dist +++ b/variables.env.dist @@ -8,4 +8,4 @@ SCHEDULER_LOG_LEVEL=warn SCHEDULER_API_HOSTNAME=tv.example.com DISCORDBOT_TOKEN=changeme DISCORDBOT_LIVE_CHANNEL_ID=0 -DISCORDBOT_LIVE_CHANNEL_UPDATE=5 \ No newline at end of file +DISCORDBOT_LIVE_CHANNEL_UPDATE=5