From 7f37194574f9c02d369e1a50b532a3ecaed0f187 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Fri, 8 Jun 2018 12:02:30 -0800 Subject: [PATCH] Moved description into Geeksbot Class --- src/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/__main__.py b/src/__main__.py index f996762..4d176dd 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -40,12 +40,12 @@ emojis: Dict[str, str] = { 'boom': '💥', } -description = 'I am Geeksbot Dev! Fear me I might just break and take you with me :P' - class Geeksbot(commands.Bot): def __init__(self, **kwargs): kwargs["command_prefix"] = self.get_custom_prefix + self.description = 'I am Geeksbot Dev! Fear me I might just break and take you with me :P' + kwargs['description'] = self.description super().__init__(**kwargs) self.aio_session = aiohttp.ClientSession(loop=self.loop) with open(f'{config_dir}{bot_config_file}') as file: @@ -106,7 +106,7 @@ class Geeksbot(commands.Bot): self.aio_session.close() # aiohttp is drunk and can't decide if it's a coro or not -bot = Geeksbot(description=description, case_insensitive=True) +bot = Geeksbot(case_insensitive=True) @bot.command(hidden=True)