From 365ee637180a15f7c3ebcb1a2553d021b3b74e1e Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 9 Jan 2023 19:49:41 -0500 Subject: feat: ask slash command --- src/moyai_bot/bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/moyai_bot/bot.py b/src/moyai_bot/bot.py index 9c4508d..5b1431b 100644 --- a/src/moyai_bot/bot.py +++ b/src/moyai_bot/bot.py @@ -39,6 +39,15 @@ async def ask(ctx: commands.Context): await ctx.send(get_random_response(moyai)) +@moyai.tree.command( + name="ask", + description="ask lord moyai a question and they shall respond", + guild=SERVER_ID) +async def ask_slash_command(interaction: discord.Interaction): + msg = get_random_response(moyai) + await interaction.response.send_message(msg) + + @moyai.command() async def moyaispam(ctx: commands.Context): msg = str() -- cgit v1.2.3