Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
727 B
4
Indexable
Never
import discord
from discord import app_commands
from discord.ext import commands
from tobi_bot import on_message

bot = commands.Bot(command_prefix="!", intents = discord.Intents.all())

@bot.event
async def on_ready():
    print("Bot s Up and Ready")
    try:
        synced = await bot.tree.sync()
        print(f"Synced {len(synced)} command(s)")
    except Exception as e:
        print(e)

@bot.tree.command(name="dictionary", description="write an word and recieve its definition")
async def dictionary(interaction: discord.Interaction, word: str):
    await interaction.response.send_message(f"{interaction.user.name} said: `{word}`")


bot.run("MTIyNjQ4NTAzNzk1Mjc5NDY2NQ.G9UZ6p.a7MLmRD6w9Nn50ojn7LOILWNtgXDEiYtbD3j0k")
Leave a Comment