forked from Supositware/Haha-Yes
can also choose random user
This commit is contained in:
parent
986b76bd35
commit
319c45b0f0
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +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)])
|
||||
} while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]') )
|
||||
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]')) )
|
||||
|
||||
// Send the final text
|
||||
message.say(text);
|
||||
|
|
Loading…
Reference in a new issue