Example #1
0
def setup(bot: Bot):
    bot.add_cog(Listener(bot))
Example #2
0
def setup(bot: Bot):
    bot.add_cog(Utility(bot))
Example #3
0
def setup(bot: Bot):
    bot.add_cog(Commands(bot))
Example #4
0
from dotenv import load_dotenv
from os import getenv

from source import Bot

load_dotenv()

if __name__ == "__main__":
    bot = Bot()

    bot.load_cogs(
        "jishaku",
        "source.cogs.utility",
        "source.cogs.listener",
        "source.cogs.commands",
    )

    bot.run(getenv("TOKEN"))