📜  不和谐的消息回复 - Javascript 代码示例

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

代码示例1
client.on("message", (message) => {
    if (message.content === "Server active") {
        message.channel.send(`I am Active in ${client.guilds.cache.size} Servers`);
    }
    if (message.content === "Server size") {
        message.channel.send(`I am Active in ${client.guilds.cache.size} Servers`);
    }
    if (message.content === "Server ammount") {
        message.channel.send(`I am Active in ${client.guilds.cache.size} Servers`);
    }
});