diff --git a/src/exts/fun.py b/src/exts/fun.py index f410657..47f703f 100644 --- a/src/exts/fun.py +++ b/src/exts/fun.py @@ -1,6 +1,7 @@ import nextcord from nextcord.ext import commands from bot import Bot +import random class Utils(commands.Cog): @@ -12,6 +13,11 @@ async def on_message(self, message: nextcord.Message): if message.author.id in [598245488977903688] and "." in message.content: await message.add_reaction("🥚") + @nextcord.slash_command() + async def toss(self, interaction: nextcord.Interaction): + choice = random.choice(["Heads", "Tails"]) + await interaction.send(f"{choice}!") + def setup(bot: Bot): bot.add_cog(Utils(bot))