I've been trying to figure this out for a while, but nothing seems to be working. Whenever someone tries to use the command pqtimer in the 1 hour period of the timer, I want it to be ignored, since the user should only be allowed to activate the timer when it's finished.
I've read some stuff about async functions, but I couldn't get that to work so I'm not sure if that's even the correct way to solve it.
Would love to get some help on this!
if(command === 'pqtimer') {
message.channel.send('Patreon quest timer started! (1hr)');
setTimeout(function(){
message.channel.send('Time for a new quest!');
message.author.send(`Time for a new quest!`);
}, 3600000);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…