From bb3d0c8bc01a8b161b736210f09e2ebd247dab25 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 8 Aug 2023 02:38:17 -0400 Subject: [PATCH] fix: made config commands still respond if you haven't configured anything yet --- shortmute/shortmute.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shortmute/shortmute.py b/shortmute/shortmute.py index 3491260..381d0b1 100644 --- a/shortmute/shortmute.py +++ b/shortmute/shortmute.py @@ -183,7 +183,7 @@ class Shortmute(commands.Cog): if already_in_list: await ctx.send("Channels already in the list:\n" + "\n".join(already_in_list)) else: - await ctx.send("Please provide a valid channel.") + await ctx.send("No channels are currently in the logging list.") @shortmute_config_channel.command(name='add') @commands.guild_only() @@ -228,6 +228,8 @@ class Shortmute(commands.Cog): already_in_list.append(role_obj.mention) if already_in_list: await ctx.send("Roles already in the immune roles list:\n" + "\n".join(already_in_list), allowed_mentions = discord.AllowedMentions(roles=False)) + else: + await ctx.send("No roles are currently in the immune roles list.") @shortmute_config_role.command(name='add') @commands.guild_only() @@ -272,6 +274,8 @@ class Shortmute(commands.Cog): already_in_list.append(user_obj.mention) if already_in_list: await ctx.send("Users already blacklisted:\n" + "\n".join(already_in_list), allowed_mentions = discord.AllowedMentions(users=False)) + else: + await ctx.send("No users are currently blacklisted.") @shortmute_config_blacklist.command(name='add') @commands.guild_only()