This commit is contained in:
parent
e7703d83d0
commit
52a7a1c48d
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ module.exports = class sayCommand extends Command {
|
||||||
text = text.replace(/\[adjective\]/, adjective[randNumber(adjective)])
|
text = text.replace(/\[adjective\]/, adjective[randNumber(adjective)])
|
||||||
text = text.replace(/\[member\]/, message.guild.members.random().user.username)
|
text = text.replace(/\[member\]/, message.guild.members.random().user.username)
|
||||||
text = text.replace(/\[number\]/, Math.floor((Math.random() * 10) + 1))
|
text = text.replace(/\[number\]/, Math.floor((Math.random() * 10) + 1))
|
||||||
} while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]') || text.includes('[member]' || text.includes('[number]')) )
|
} while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]') || text.includes('[member]') || text.includes('[number]') )
|
||||||
|
|
||||||
// Send the final text
|
// Send the final text
|
||||||
message.say(text);
|
message.say(text);
|
||||||
|
|
Loading…
Reference in a new issue