import os import random import discord from discord.ext import commands intents = discord.Intents.default() intents.message_content = True bot = commands.Bot(command_prefix="!", intents=intents) @bot.event async def on_ready(): print(f"Logged in as {bot.user}") @bot.command() async def roll(ctx, sides: int = 6): await ctx.send(f"🎲 {random.randint(1, sides)}") @bot.command() async def water(ctx): await ctx.send("Drink some water! 💧") bot.run(os.environ["DISCORD_TOKEN"])