[Command("coinflip")]
public async Task CoinFlipAsync(CommandContext ctx)
{
string result = _random.Next(2) == 0 ? "Heads" : "Tails";
await ctx.RespondAsync($"🪙 The coin landed on: **{result}**!");
}
Coinflip
The user types "!coinflip" and the bot flips the coin with a random outcome.
- 🎲 Uses a random number generator to create a random outcome.
- 💬 Displays the result directly in the Discord chat.