Rename hello.py to customcommands/hello.py

This commit is contained in:
WhatDidYouExpect 2025-01-05 20:57:18 +01:00 committed by GitHub
parent 39af2c50cd
commit fcd3a10513
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

13
customcommands/hello.py Normal file
View file

@ -0,0 +1,13 @@
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))