Initial commit

This commit is contained in:
neoarz
2025-09-14 16:09:43 -04:00
commit 6583e7ccbb
16 changed files with 1986 additions and 0 deletions

38
cogs/template.py Normal file
View File

@@ -0,0 +1,38 @@
"""
Copyright © Krypton 2019-Present - https://github.com/kkrypt0nn (https://krypton.ninja)
Description:
🐍 A simple template to start to code your own and personalized Discord bot in Python
Version: 6.4.0
"""
from discord.ext import commands
from discord.ext.commands import Context
# Here we name the cog and create a new class for the cog.
class Template(commands.Cog, name="template"):
def __init__(self, bot) -> None:
self.bot = bot
# Here you can just add your own commands, you'll always need to provide "self" as first parameter.
@commands.hybrid_command(
name="testcommand",
description="This is a testing command that does nothing.",
)
async def testcommand(self, context: Context) -> None:
"""
This is a testing command that does nothing.
:param context: The application command context.
"""
# Do your stuff here
# Don't forget to remove "pass", I added this just because there's no content in the method.
pass
# And then we finally add the cog to the bot so that it can load, unload, reload and use it's content.
async def setup(bot) -> None:
await bot.add_cog(Template(bot))