Answers for "if message containts bot will delete discordpy"

0

discord bot remove message

import discord.ext

bot = commands.Bot(";")

@bot.event 
async def on_message(message):
    if message.content.upper().startswith(";SAY"):
        args = message.content.split(" ")
        await bot.send_message(message.channel, "%s" % (" ".join(args[1:])))
        await bot.delete_message(message)
Posted by: Guest on January-24-2021
0

discord bot delete messages python

@client.event
async def on_message(message):
    await message.delete(message)
Posted by: Guest on March-12-2021

Code answers related to "if message containts bot will delete discordpy"

Code answers related to "Assembly"

Browse Popular Code Answers by Language