Merge pull request #8 from dustinpianalto/development

Add auth_header back to geeksbot class
This commit is contained in:
Dusty.P 2020-04-08 20:53:54 -08:00 committed by GitHub
commit 8cd2b157d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,7 @@ class Geeksbot(commands.Bot):
)
self.token = self.settings_cache.get("DISCORD_TOKEN")
self.api_token = self.settings_cache.get("API_TOKEN")
self.auth_header = {"Authorization": f"Token {self.api_token}"}
self.aio_session = aiohttp.ClientSession(loop=self.loop)
self.api_base = "https://geeksbot.app/api"
self.api = GeeksbotAPI(self.api_token, self.api_base, self.loop)