Untitled
unknown
plain_text
a year ago
746 B
5
Indexable
import discord from discord import app_commands from discord.ext import commands from tobi_bot import get_dictionary_definition 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") #@app_commands.describe(word="say") async def dictionary(interaction: discord.Interaction, word: str): await get_dictionary_definition(interaction, word) bot.run("MTIyNjQ4NTAzNzk1Mjc5NDY2NQ.G9UZ6p.a7MLmRD6w9Nn50ojn7LOILWNtgXDEiYtbD3j0k")
Editor is loading...
Leave a Comment