這是相關代碼:var Started = "no";// other stuff// HERE IS WHERE THE CODE ISclient.on('ready', () => { var channel = client.channels.find(channel => channel.id === '740342329973538858'); console.log("we in bois"); setInterval(() => { channel.send({ embed: { meesage } }); }, 10000);});// other stuffif (msg.content === "start") { var Started = 'yes'; console.log = 'no';} // another one of the above for no我無法弄清楚如何制作一個 if 語句來始終檢查是否啟動是或否。我需要在是的時候開始,在不是的時候停止(我說的代碼是HERE IS WHERE THE CODE IS)
discord bot if statement only if veriable equals
森林海
2022-12-22 14:36:12