diff --git a/extensions/__pycache__/core.cpython-38.pyc b/extensions/__pycache__/core.cpython-38.pyc index b0aac6f..833ded9 100644 Binary files a/extensions/__pycache__/core.cpython-38.pyc and b/extensions/__pycache__/core.cpython-38.pyc differ diff --git a/extensions/betterlogging.py b/extensions/betterlogging.py index f258223..e6a4eaa 100644 --- a/extensions/betterlogging.py +++ b/extensions/betterlogging.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- -# Search Functionality -# Provides search results from SearX +# Better Logging +# Adds some better logging with utils.logging. -'''Search Cog''' +'''Better Logging Cog''' import discord from discord.ext import commands diff --git a/extensions/botlist.py b/extensions/botlist.py index 18ee5e9..da259ec 100644 --- a/extensions/botlist.py +++ b/extensions/botlist.py @@ -28,10 +28,13 @@ class BotList(commands.Cog, name='Bot List'): self.bod_token = bot.config['BOD'] self.dblcom_token = bot.config['DBLCOM'] - # top.gg clent + # top.gg client self.dbl_client = dbl.DBLClient( self.bot, self.dbl_token) + # Start update loop + self.update_stats.start() + async def _update_logic(self): """Handles all statistic updating for various different bot lists.""" @@ -140,6 +143,9 @@ class BotList(commands.Cog, name='Bot List'): responses = await self._update_logic() print(responses) # TODO See other todo + def cog_unload(self): + self.update_stats.cancel() + def setup(bot): """Adds the cog to the bot."""