Skip to content

Instantly share code, notes, and snippets.

@Illizion
Created September 17, 2018 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Illizion/fe254169d826a2ccebeabba1924acb56 to your computer and use it in GitHub Desktop.
Save Illizion/fe254169d826a2ccebeabba1924acb56 to your computer and use it in GitHub Desktop.
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