I want to set a command that returns 3 or 4 replies over about 5 minutes. This is something I found that is I tried to use but it just hangs up in terminal and won't return the "Ready" indicator.
let botLastSent = false;
let timeBetweenEachCmd = 60000 * 3; //Bot will only respond once every 3 minutes.
client.on('message', message => {
if (message.author.bot) return undefined;
if (message.content === '!french')
channel = client.channels.cache.get('766344174379204622');
channel.send('(。··)_且 would you like a fresh french press sir?(。··)_且');
(botLastSent !== false ? message.createdTimestamp - botLastSent < timeBetweenEachCmd : false);
channel = client.channels.cache.get('766344174379204622');
channel.send('(。··)_且 would you like some milk cubes sir?(。··)_且');
(botLastSent !== false ? message.createdTimestamp - botLastSent < timeBetweenEachCmd : false);
channel = client.channels.cache.get('766344174379204622');
channel.send('(。··)_且 how about some local honey with that sir?(。··)_且');
(botLastSent !== false ? message.createdTimestamp - botLastSent < timeBetweenEachCmd : false);
channel = client.channels.cache.get('766344174379204622');
channel.send('(。··)_且 now for the perfect cup of coffee sir...(。··)_且');
botLastSent = message.createdTimestamp;
});