Add Guild event handlers
This commit is contained in:
@@ -21,7 +21,7 @@ class Geeksbot(commands.Bot):
|
||||
self.description = "Geeksbot v2"
|
||||
kwargs['description'] = self.description
|
||||
super().__init__(*args, **kwargs)
|
||||
self.config_dir = 'geeksbot/config/'
|
||||
self.config_dir = 'geeksbot/config'
|
||||
self.config_file = 'bot_config.json'
|
||||
self.extension_dir = 'exts'
|
||||
self.cache = redis.Redis(host=os.environ['REDIS_HOST'], port=os.environ['REDIS_PORT'], db=1, charset="utf-8", decode_responses=True)
|
||||
@@ -29,7 +29,7 @@ class Geeksbot(commands.Bot):
|
||||
self.aio_session = aiohttp.ClientSession(loop=self.loop)
|
||||
self.auth_header = {'Authorization': f'Token {self.api_token}'}
|
||||
self.api_base = 'https://geeksbot.app/api'
|
||||
with open(f'{self.config_dir}{self.config_file}') as f:
|
||||
with open(f'{self.config_dir}/{self.config_file}') as f:
|
||||
self.bot_config = json.load(f)
|
||||
self.embed_color = discord.Colour.from_rgb(49, 107, 111)
|
||||
self.error_color = discord.Colour.from_rgb(142, 29, 31)
|
||||
|
||||
Reference in New Issue
Block a user