Plugins
Guidelines
Creating Plugins
from discord.ext import commands
class Hello(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_message(self, message):
print(message.content)
@commands.command()
async def say(self, ctx, *, message):
await ctx.send(message)
async def setup(bot):
await bot.add_cog(Hello(bot))Folder Structure
Branch parameter
@local (For Developers)
Best Practices
Private Plugins
Database Interfacing
Additional PIP requirements
Exposed Events
Approval request
Last updated