Create hello.py
This commit is contained in:
parent
ab143dfbde
commit
719c3d2012
1 changed files with 13 additions and 0 deletions
13
hello.py
Normal file
13
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