Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
feat: toss
Browse files Browse the repository at this point in the history
  • Loading branch information
VaibhavSys committed Jun 25, 2024
1 parent ac127ff commit 993b0ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/exts/fun.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import nextcord
from nextcord.ext import commands
from bot import Bot
import random


class Utils(commands.Cog):
Expand All @@ -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))

0 comments on commit 993b0ee

Please sign in to comment.