Untitled
unknown
plain_text
a year ago
727 B
6
Indexable
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")
Editor is loading...
Leave a Comment