Skip to content

Commit

Permalink
Merge pull request #25 from Antares-Network/development
Browse files Browse the repository at this point in the history
Update version to 1.3.2
  • Loading branch information
nathen418 authored Feb 10, 2021
2 parents d085f61 + 68d83b8 commit c994977
Show file tree
Hide file tree
Showing 9 changed files with 409 additions and 4 deletions.
3 changes: 2 additions & 1 deletion commands/admin/say.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = class SayCommand extends Command {
constructor(client) {
super(client, {
name: 'say',
aliases: ['echo',],
group: 'admin',
memberName: 'say',
description: 'Replies with the text you provide.',
Expand All @@ -17,7 +18,7 @@ module.exports = class SayCommand extends Command {
}
],
guildOnly: true,
userPermissions: ['ADMINISTRATOR']
userPermissions: ['MANAGE_MESSAGES'],
});
}

Expand Down
75 changes: 75 additions & 0 deletions commands/user/8ball.js
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);
}
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const piiModel = require('./models/pii');
const piiCreate = require('./actions/piiCreate');
const counting = require('./functions/counting');
const messageLog = require('./actions/messageLog')
global.botVersion = "1.3.1";
global.botVersion = "1.3.2";


global.bot = new CommandoClient({
Expand Down
21 changes: 21 additions & 0 deletions node_modules/module-alias/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

224 changes: 224 additions & 0 deletions node_modules/module-alias/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c994977

Please sign in to comment.