-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Antares-Network/development
Update version to 1.3.2
- Loading branch information
Showing
9 changed files
with
409 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
const { Command } = require('discord.js-commando'); | ||
const { MessageEmbed } = require('discord.js'); | ||
const channelCheck = require('../../functions/channelCheck') | ||
const logToConsole = require('../../actions/logToConsole') | ||
|
||
|
||
module.exports = class EightBallCommand extends Command { | ||
constructor(client) { | ||
super(client, { | ||
name: '8ball', | ||
aliases: ['8-ball', 'ask', 'why'], | ||
group: 'user', | ||
memberName: '8ball', | ||
description: 'Answers all of the questions you might have', | ||
examples: ['8ball Am i a looser'], | ||
args: [ | ||
{ | ||
key: 'text', | ||
prompt: 'Please ask me a question', | ||
type: 'string' | ||
} | ||
], | ||
guildOnly: true | ||
}); | ||
} | ||
|
||
async run(message, { text }) { | ||
|
||
if (await channelCheck.check(message) == true) { | ||
let eightball = [ | ||
'It is certain.', | ||
'It is decidedly so.', | ||
'Without a doubt.', | ||
'Yes definitely.', | ||
'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.', | ||
'No way.', | ||
'Maybe', | ||
'The answer is hiding inside you', | ||
'No.', | ||
'Depends on the mood of the CS god', | ||
'Hang on', | ||
'It\'s over', | ||
'It\'s just the beginning', | ||
'Good Luck', | ||
]; | ||
let index = (Math.floor(Math.random() * Math.floor(eightball.length))); | ||
//message.channel.send(eightball[index]); | ||
const EightBallEmbed = new MessageEmbed() | ||
.setColor('#ff3505') | ||
.setURL('https://discord.gg//6pZ2wtGANP') | ||
.setTitle('Get an answer to all your questions') | ||
.setThumbnail(`https://cdn.discordapp.com/avatars/${message.author.id}/${message.author.avatar}.jpeg`) | ||
.setDescription(`${message.author.username} asks:\n ${text}\n\n **My Answer:**\n ${eightball[index]}`,) | ||
.setFooter(`Delivered in: ${Date.now() - message.createdTimestamp}ms | Antares Bot | ${botVersion}`, 'https://cdn.discordapp.com/icons/649703068799336454/1a7ef8f706cd60d62547d2c7dc08d6f0.png'); | ||
message.channel.send(EightBallEmbed); | ||
} | ||
//send to the console that this command was run | ||
logToConsole.command(message.guild, message); | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.