1
0
Fork 0

reverted changes beacause it dosent change anything

Commando
Loic Bersier 6 years ago
parent ea3edd900b
commit 06af74b2cf

@ -41,8 +41,8 @@ module.exports = class RandomCommand extends Command {
text = text.replace(/\[adverb\]/, adverb[randNumber(adverb)])
text = text.replace(/\[noun\]/, noun[randNumber(noun)])
text = text.replace(/\[adjective\]/, adjective[randNumber(adjective)])
text = text.replace(/\[member\]/, message.guild.members.filter(member => !member.user.bot).random().user.username)
} while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]' || text.includes('[member]')) )
text = text.replace(/\[member\]/, message.guild.members.random().user.username)
} while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]' || text.includes('[member]' || text-includes('[adjectives]'))) )
// Send the final text
message.say(text);

Loading…
Cancel
Save