AI Agent: Add helloworld_cog.py with a simple 'Hello World!' command.
This commit is contained in:
parent
32b8fc3839
commit
a74719ab97
14
cogs/helloworld_cog.py
Normal file
14
cogs/helloworld_cog.py
Normal 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))
|
Loading…
x
Reference in New Issue
Block a user