Rename hello.py to customcommands/hello.py
This commit is contained in:
parent
39af2c50cd
commit
fcd3a10513
1 changed files with 0 additions and 0 deletions
13
customcommands/hello.py
Normal file
13
customcommands/hello.py
Normal 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))
|
Loading…
Add table
Add a link
Reference in a new issue