PythonXeno/cogs/example.txt
2024-10-26 04:47:45 -05:00

21 lines
581 B
Plaintext

import json
import discord
from discord.ext import commands
## Xeno Discord PY Bot
### Command Name - Example
extname = (f'CommandName')
class CommandName(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name='command',description='this is an example and shouldn\'t be run!')
async def idlookup(self, ctx):
await ctx.reply("This example command was run, and this reply will be sent to the channel it was ran in")
def setup(bot):
print(f'Cog_{extname} was initialized')
bot.add_cog(CommandName(bot))