📜  不和谐删除消息 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:07.727000             🧑  作者: Mango

代码示例4
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)