📜  Discord bot 客户端登录 - Javascript 代码示例

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

代码示例4
const Discord = require ('discord.js')
const bot = new Discord.Client(753656086132949064)

bot.on("ready", async (go online) => {
    console.log("the bot is ready")
})

client.on(say, msg => {
  if (msg.content === copy user text)
    msg.reply(
      paste into chat
    )
});


//put here the token
bot.login(NzUzNjU2MDg2MTMyOTQ5MDY0.X1pW7Q.kys7D_fE0kfELmhOp11pvM5GC7s);