From 74af3fb5d18197702dd97e5ebce2db23bdbc4ce5 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Tue, 20 Jun 2023 01:06:40 -0400 Subject: [PATCH] pylint fixes --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 69b6d5b..88ecd6b 100644 --- a/main.py +++ b/main.py @@ -19,7 +19,7 @@ class Client(commands.CommandsClient): if input is None: return prefix return input - + async def on_message(self, message: revolt.Message): if 'PREFIX' not in os.environ or prefix is None: if message.author == self.user.owner: @@ -68,7 +68,7 @@ class Client(commands.CommandsClient): @commands.is_bot_owner() async def prefix(self, ctx: commands.Context, new_prefix: str = None): # This command sets the bot's prefix. CURRENTLY PARTIALLY BROKEN - if new_prefix is not None and True(commands.is_bot_owner): + if new_prefix is not None and bool(commands.is_bot_owner): await Client.prefix_change(self=self, message=ctx.message, new_prefix=new_prefix) else: await ctx.message.reply(f"The prefix is currently set to `{prefix}`.")