标签: discord.js node-cron
我有一个 Discord 机器人,计划在每年 7 月 1 日发送一条消息(以及其他一些内容)。然而,它不是发送消息,而是发送其他东西。提前致谢。
这是它不发送消息的特定行:
cron.schedule('*0 0 0 1 7 *', () => { client.channels.cache.get('CHANNEL ID').send('Happy 1st of July!');
cron.schedule('*0 0 0 1 7 *', () => {
client.channels.cache.get('CHANNEL ID').send('Happy 1st of July!');
});