diff options
| author | seth <[email protected]> | 2023-01-09 19:49:41 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-09 19:50:31 -0500 |
| commit | 365ee637180a15f7c3ebcb1a2553d021b3b74e1e (patch) | |
| tree | ee165031958a6dec800a8e7896efaab204729a7f /src | |
| parent | fa46e5f47ed18c47544ed919957aa7e8660bfcb3 (diff) | |
feat: ask slash command
Diffstat (limited to 'src')
| -rw-r--r-- | src/moyai_bot/bot.py | 9 |
1 files changed, 9 insertions, 0 deletions
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)) + 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() |
