diff --git a/audiotrivia/__init__.py b/audiotrivia/__init__.py index 327e34e..6cb34ed 100644 --- a/audiotrivia/__init__.py +++ b/audiotrivia/__init__.py @@ -1,5 +1,13 @@ +from redbot.core.bot import Red + from .audiotrivia import AudioTrivia -def setup(bot): +async def setup(bot: Red): + if bot.get_cog("Trivia"): + print("Trivia is already loaded, attempting to unload it first") + bot.remove_cog("Trivia") + await bot.remove_loaded_package("trivia") + bot.unload_extension("trivia") + bot.add_cog(AudioTrivia(bot))