From 3cd5709b00738d8f3b79f0892d978c18d302c2d1 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 10 Jan 2023 00:21:10 -0500 Subject: feat: add random teawie command --- src/moyai_bot/bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/moyai_bot/bot.py') diff --git a/src/moyai_bot/bot.py b/src/moyai_bot/bot.py index 5b1431b..1a5ada8 100644 --- a/src/moyai_bot/bot.py +++ b/src/moyai_bot/bot.py @@ -2,6 +2,7 @@ import discord from discord import app_commands from discord.ext import commands +from moyai_bot.apis import guzzle from moyai_bot.lib import get_copypasta, get_random_response SERVER_ID = discord.Object(id=1055663552679137310) @@ -76,3 +77,11 @@ async def copypasta(interaction: discord.Interaction, await interaction.response.send_message(msg) else: await interaction.channel.send(msg) + + +@moyai.tree.command(name="random_teawie", + description="get a random teawie!", + guild=SERVER_ID) +async def random_teawie(interaction: discord.Interaction): + msg = guzzle.get_random_teawie() + await interaction.response.send_message(msg) -- cgit v1.2.3