goober/hello.py

14 lines
282 B
Python
Raw Normal View History

2025-01-05 19:27:17 +01:00
import discord
from discord.ext import commands
class Hello(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def hello(self, ctx):
await ctx.send("Hello, world!")
async def setup(bot):
await bot.add_cog(Hello(bot))