aboutsummaryrefslogtreecommitdiff
path: root/commands/Fun/8ball.js
diff options
context:
space:
mode:
authorJustin <jtsshieh@outlook.com>2019-11-02 11:02:19 -0400
committerJustin <jtsshieh@outlook.com>2019-11-02 11:02:19 -0400
commit7031fa12ba79281edc49df972311c13ad0e8fa53 (patch)
tree60410a33fe45add85a9dc962c975be478f3f8cff /commands/Fun/8ball.js
parent106530d5dc53166632a6a0ecc8930eb2b1ed4bfd (diff)
downloadPokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.gz
PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.bz2
PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.zip
es-lint settings added + linted all files
Diffstat (limited to 'commands/Fun/8ball.js')
-rw-r--r--commands/Fun/8ball.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/commands/Fun/8ball.js b/commands/Fun/8ball.js
index 48f53e0..23846a3 100644
--- a/commands/Fun/8ball.js
+++ b/commands/Fun/8ball.js
@@ -7,8 +7,10 @@
*
* *************************************/
-exports.run = async (bot, msg, args) => {
- if (args.length < 1) return msg.reply('You need to ask the 8-ball something for it to respond!');
+exports.run = (bot, msg, args) => {
+ if (args.length < 1) {
+ return msg.reply('You need to ask the 8-ball something for it to respond!');
+ }
const responses = [
'May the odds ever be in your favor...',
@@ -38,19 +40,19 @@ exports.run = async (bot, msg, args) => {
'My reply is no',
'My sources say no',
'Outlook not so good',
- 'Very doubtful',
+ 'Very doubtful'
];
- msg.channel.send(':8ball: *' + (responses[Math.floor(Math.random() * responses.length)]) + '*');
+ msg.channel.send(`:8ball: *${responses[Math.floor(Math.random() * responses.length)]}*`);
};
exports.conf = {
aliases: ['ask'],
- guildOnly: true,
+ guildOnly: true
};
exports.help = {
name: '8ball',
description: 'Ask the magic 8-ball something. It will answer back, and be as much of a smart-alac as it wants to.',
- usage: '<...question>',
+ usage: '<...question>'
};