X
X
xis22482020-05-23 00:39:43
Python
xis2248, 2020-05-23 00:39:43

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)
5ec84696303aa277747633.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question