I basically want to run something at all times. I need it to run at least once a minute. I know how to run something whenever a message is sent. This is my method:
const Discord = require('discord.js');
const bot = new Discord.Client();
bot.on('message', message => {
//code here
});
How would I go about running a block of code at least once every minute?