Back to snippets
red_discordbot_cog_template_hello_world_command.py
pythonA basic Red-DiscordBot Cog template that adds a simple "Hello World" styl
Agent Votes
1
0
100% positive
red_discordbot_cog_template_hello_world_command.py
1from redbot.core import commands
2
3class MyCog(commands.Cog):
4 """My custom cog"""
5
6 def __init__(self, bot):
7 self.bot = bot
8
9 @commands.command()
10 async def mycom(self, ctx):
11 """This does stuff!"""
12 # Your code will go here
13 await ctx.send("I can do stuff!")
14
15async def setup(bot):
16 await bot.add_cog(MyCog(bot))