📜  discord.js 每 x 分钟检查一次 - Javascript 代码示例

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

代码示例1
var checkminutes = 10, checkthe_interval = checkminutes * 60 * 1000; //This checks every 10 minutes, change 10 to whatever minute you'd like
setInterval(function() {
    message.channel.send("hello world");
    //Or anything else
}, checkthe_interval);