这是相关代码:
var Started = "no";
// other stuff
// HERE IS WHERE THE CODE IS
client.on('ready', () => {
var channel = client.channels.find(channel => channel.id === '740342329973538858');
console.log("we in bois");
setInterval(() => {
channel.send({
embed: {
meesage
}
});
}, 10000);
});
// other stuff
if (msg.content === "start") {
var Started = 'yes';
console.log = 'no';
}
// another one of the above for no
我无法弄清楚如何制作一个 if 语句来始终检查是否启动是或否。我需要在是的时候开始,在不是的时候停止(我说的代码是HERE IS WHERE THE CODE IS)
森林海
喵喵时光机
眼眸繁星
随时随地看视频慕课网APP
相关分类