Initial commit.
This commit is contained in:
15
cogs/hello.py
Normal file
15
cogs/hello.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
class Hello(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
@commands.slash_command(name="hello",
|
||||
description="Say hi to the bot!",
|
||||
guild_ids=[681414775468589180])
|
||||
async def hello(self, ctx: discord.ApplicationContext):
|
||||
await ctx.respond("Hello there!")
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Hello(bot))
|
||||
Reference in New Issue
Block a user