Answer the question
In order to leave comments, you need to log in
How can I make sure that after the bot writes the text, my message is deleted?
The bot outputs text on its behalf to the chat and deletes my message
import discord
from discord.ext import commands
TOKEN = 'token'
bot = commands.Bot(command_prefix='!')
@bot.command(pass_context=True)
async def say (ctx, *arg):
await ctx.send(' '.join(arg))
bot.run(TOKEN)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question