From a54cdf40d75a45d1e4b7519f28939eedec4f71f2 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Mon, 19 Jun 2023 22:28:30 -0400 Subject: [PATCH] fixing pylint errors --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 9ae4d64..ab56f4b 100644 --- a/main.py +++ b/main.py @@ -13,7 +13,7 @@ token = os.getenv('TOKEN') api_url = os.getenv('API_URL') prefix = os.getenv('PREFIX') -class client(commands.CommandsClient): +class Client(commands.CommandsClient): # This class contains all of the commands the bot uses. async def get_prefix(self, message: revolt.Message, input: str = prefix): return input @@ -51,14 +51,14 @@ class client(commands.CommandsClient): dotenv.set_key(env, 'PREFIX', new_prefix) await ctx.message.reply(f"Prefix has been changed from `{prefix}` to `{new_prefix}`!") print(f"Prefix changed: {prefix} → {new_prefix}") - await client.get_prefix(ctx.message, new_prefix) + await Client.get_prefix(ctx.message, new_prefix) else: await ctx.message.reply(f"The prefix is currently set to `{prefix}`.") async def main(): # This function logs into the bot user. async with aiohttp.ClientSession() as session: - client = client(session, token, api_url=api_url) + client = Client(session, token, api_url=api_url) await client.start() asyncio.run(main())