if (message.channel.name !== ‘#staff-chat ‘) return message.channel.send(‘Command is still in making!’);
if (talkedRecently.has(message.author.id)) {
message.reply(You need to wait ${config.cooldown} minutes to use this command again!).then(m => {
setTimeout(() => {
m.delete(m)
}, 5000); //5 seconds
})
} else {
fs.readFile(’./origin.txt’, function(err, data){
if(err) throw err;
data = data + ‘’;
var lines = data.split(’\n’);
let random = lines[Math.floor(Math.random()*lines.length)];