Created
September 17, 2018 18:19
-
-
Save Illizion/fe254169d826a2ccebeabba1924acb56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const responses = [ | |
'It is certain', | |
'It is decidedly so', | |
'Without a doubt', | |
'Yes, definetly', | |
'You may rely on it', | |
'As I see it, yes', | |
'Most likely', | |
'Outlook good', | |
'Yes', | |
'Signs point to yes', | |
'Reply hazy try again', | |
'Ask again later', | |
'Better not tell you now', | |
'Cannot predict now', | |
'Concentrate and ask again', | |
'Don\'t count on it', | |
'My reply is no', | |
'My sources say no', | |
'Outlook not so good', | |
'Very doubtful' | |
] | |
exports.run = (client, message, args) => { | |
if (args.length < 1) return message.channel.createMessage(':question: │ Missing `<question>` option.') | |
if (!(args[args.length - 1].endsWith('?'))) return message.channel.createMessage(':question: │ Missing a `?`.') // optional | |
message.channel.createMessage(':crystal_ball: │ ' + responses[Math.floor(Math.random() * responses.length)]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment