AI Agent: Add helloworld_cog.py with a simple 'Hello World!' command.

This commit is contained in:
AI Coding Agent Cog 2025-05-31 18:49:28 -06:00
parent 32b8fc3839
commit a74719ab97

14
cogs/helloworld_cog.py Normal file
View File

@ -0,0 +1,14 @@
import discord
from discord.ext import commands
class HelloWorldCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name='helloworld', help='Responds with "Hello World!"')
async def helloworld(self, ctx):
"""Responds with "Hello World!"."""
await ctx.send("Hello World!")
async def setup(bot):
await bot.add_cog(HelloWorldCog(bot))