15 lines
439 B
Python
15 lines
439 B
Python
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)) |