📌  相关文章
📜  如何将 falix 节点用于不和谐机器人 - Javascript 代码示例

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

代码示例1
//first you must install dicord.js by running the command: npm install discord.js
//once u do that copy and paste this into your main file
const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () =>{
    client.user.setStatus('your status')
    console.log('Connected!')
})
//rest of your code

//always remember to never share your token with anyone
client.login('your-token-here')