def setup(bot: Bot): cog = CustomPrefix(bot) bot.add_cog(cog) bot.command_prefix = cog.get_prefix print("Loaded CustomPrefix")