Modular Cogs - redmoogle/Rednako GitHub Wiki

Setting up a module/cog is easy.

  • Create your cog/file
  • Add Cog Code Snippet
  • Add your Cog in the main rednako file as 'commands.COG'
  • Remember to test the cog

Code Snippet for Cog

from discord.ext import commands

class MODULE(commands.Cog):
    
    def __init__(self, bot):
        self.bot = bot

def setup(bot):
    bot.add_cog(MODULE(bot))