diff options
| author | Alee <alee14498@gmail.com> | 2018-08-01 22:46:19 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-08-01 22:46:19 -0400 |
| commit | 5881cae922e44a93cff005f497dd02e7bbdfaee9 (patch) | |
| tree | 247648ba71df8afe844795e39448a64c2df4ceb8 /commands | |
| parent | 8187456565b286e8e9fd2402c999fbe34db16604 (diff) | |
| download | PokeBot-5881cae922e44a93cff005f497dd02e7bbdfaee9.tar.gz PokeBot-5881cae922e44a93cff005f497dd02e7bbdfaee9.tar.bz2 PokeBot-5881cae922e44a93cff005f497dd02e7bbdfaee9.zip | |
Added features from AleeBot
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Owners Only/leaveguild.js | 25 | ||||
| -rw-r--r-- | commands/Universe Exclusive/interrogate.js | 32 | ||||
| -rw-r--r-- | commands/Universe Exclusive/jail.js | 32 | ||||
| -rw-r--r-- | commands/Utility/info.js | 32 | ||||
| -rw-r--r-- | commands/Utility/quote.js | 54 | ||||
| -rw-r--r-- | commands/Utility/vtquote.js | 54 |
6 files changed, 229 insertions, 0 deletions
diff --git a/commands/Owners Only/leaveguild.js b/commands/Owners Only/leaveguild.js new file mode 100644 index 0000000..a28b442 --- /dev/null +++ b/commands/Owners Only/leaveguild.js @@ -0,0 +1,25 @@ +/**************************************** + * + * LeaveGuild: Plugin for Galaxy that leaves a guild + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ +module.exports.run = async (client, message) => { + if (!['242775871059001344', '247221105515823104', '236279900728721409', message.guild.owner.user.id].includes(message.author.id)) return message.reply('Nope! You need the person who created this bot or the owner of this guild to use this command.'); + message.channel.send('Alright, I\'m leaving the server now. Bye everyone!') + message.guild.leave(); + }; + + exports.conf = { + aliases: [], + guildOnly: false, + }; + exports.help = { + name: 'leaveguild', + description: 'Makes the bot leave the server', + usage: 'leaveguild', + category: '- Owners Only', + }; +
\ No newline at end of file diff --git a/commands/Universe Exclusive/interrogate.js b/commands/Universe Exclusive/interrogate.js new file mode 100644 index 0000000..faf888f --- /dev/null +++ b/commands/Universe Exclusive/interrogate.js @@ -0,0 +1,32 @@ +/**************************************** + * + * Interrogate: Plugin for Galaxy that interrogates users + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ +module.exports.run = async (client, message, args) => { + if (message.guild.id != '243022206437687296') return message.reply ('This is a ACN exclusive command.'); + + if (!message.member.hasPermission('BAN_MEMBERS')) return message.reply('It looks like that you don\'t have the permissions to jail members.'); + if (!message.guild.member(client.user).hasPermission('MANAGE_ROLES')) return message.reply('Uhh... I don\'t have permission to jail members.'); + + const member = message.mentions.members.first(); + if (!member) return await message.reply('Uhh... Please mention a member first.'); + + member.addRole(message.guild.roles.find('name', 'Interrogation')); + message.reply(`Alright, I just interrogated ${member.user.tag}.`) +}; + +exports.conf = { + aliases: [], + guildOnly: false, + }; + exports.help = { + name: 'interrogate', + description: 'Interrogates a member', + usage: 'interrogate [user]', + category: '- ACN Exclusive Commands', + }; +
\ No newline at end of file diff --git a/commands/Universe Exclusive/jail.js b/commands/Universe Exclusive/jail.js new file mode 100644 index 0000000..f78e9e3 --- /dev/null +++ b/commands/Universe Exclusive/jail.js @@ -0,0 +1,32 @@ +/**************************************** + * + * Jail: Plugin for Galaxy that Jails users + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ +module.exports.run = async (client, message, args) => { + if (message.guild.id != '243022206437687296') return message.reply ('This is a ACN exclusive command.'); + + if (!message.member.hasPermission('BAN_MEMBERS')) return message.reply('It looks like that you don\'t have the permissions to jail members.'); + if (!message.guild.member(client.user).hasPermission('MANAGE_ROLES')) return message.reply('Uhh... I don\'t have permission to jail members.'); + + const member = message.mentions.members.first(); + if (!member) return await message.reply('Uhh... Please mention a member first.'); + + member.addRole(message.guild.roles.find('name', 'Jail')); + message.reply(`Alright, I just jailed ${member.user.tag}.`) +}; + +exports.conf = { + aliases: [], + guildOnly: false, + }; + exports.help = { + name: 'jail', + description: 'Jails a member', + usage: 'jail [user]', + category: '- ACN Exclusive Commands', + }; +
\ No newline at end of file diff --git a/commands/Utility/info.js b/commands/Utility/info.js new file mode 100644 index 0000000..d75e399 --- /dev/null +++ b/commands/Utility/info.js @@ -0,0 +1,32 @@ +/**************************************** + * + * Info: Plugin for Galaxy that tells you about the server host info. + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ +module.exports.run = async (client, message) => { + const Discord = require('discord.js'); + const os = require('os'); + const embed = new Discord.RichEmbed() + .setTitle('Information on AleeBot\'s Host') + .addField('OS Hostname: ', os.hostname() , true) + .addField('NodeJS Version: ', process.versions.node , true) + .addField('OS Platform: ', os.platform() , true) + .addField('OS Version: ', os.release() , true) + .setColor('#1fd619'); + message.channel.send({embed}); + }; + + exports.conf = { + aliases: [], + guildOnly: false, + }; + exports.help = { + name: 'info', + description: 'Tells you information about the bot', + usage: 'info', + category: '- Information Commands', + }; +
\ No newline at end of file diff --git a/commands/Utility/quote.js b/commands/Utility/quote.js new file mode 100644 index 0000000..8098400 --- /dev/null +++ b/commands/Utility/quote.js @@ -0,0 +1,54 @@ +/**************************************** + * + * Quote: Plugin for Galaxy that gives you quotes. + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ +module.exports.run = async (client, message) => { +const Discord = require('discord.js'); + +let NewQuote; + + function GetNewQuote(quoteNum = -1) { + NewQuote = new Discord.RichEmbed(); + + let quo = require('../assets/quotes.json').quotes + + if (quoteNum == -1) { + quoteNum = Math.floor(Math.random() * 1000) % quo.length; + quo=quo[quoteNum]; + } + + const author = quo.author; + const authorImage = quo.authorImage; + const quote = quo.quote; + const year = quo.year; + const url = quo.url; + + NewQuote.setAuthor(author, authorImage); + NewQuote.setColor('#1fd619'); + NewQuote.setDescription(quote); + NewQuote.setFooter('- ' + year); + NewQuote.setURL(url); + + return NewQuote; + } + + const newquote = GetNewQuote(); + message.reply('Alright, here\'s your quote.') + message.channel.send(newquote); +}; + +exports.conf = { + aliases: [], + guildOnly: false, + }; + exports.help = { + name: 'quote', + description: 'Tells you quotes', + usage: 'quote', + category: '- Quote Commands', + }; +
\ No newline at end of file diff --git a/commands/Utility/vtquote.js b/commands/Utility/vtquote.js new file mode 100644 index 0000000..ec85888 --- /dev/null +++ b/commands/Utility/vtquote.js @@ -0,0 +1,54 @@ +/**************************************** + * + * VTQuote: Plugin for Galaxy that tells you VT quotes. + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ +module.exports.run = async (client, message) => { + const Discord = require('discord.js'); + + let VictorQuote; + + function GetVictorQuote(quoteNum = -1) { + VictorQuote = new Discord.RichEmbed(); + + let quo = require('../assets/vtquotes.json').quotes + + if (quoteNum == -1) { + quoteNum = Math.floor(Math.random() * 1000) % quo.length; + quo=quo[quoteNum]; + } + + const author = quo.author; + const authorImage = quo.authorImage; + const quote = quo.quote; + const year = quo.year; + const url = quo.url; + + VictorQuote.setAuthor(author, authorImage); + VictorQuote.setColor('#1fd619'); + VictorQuote.setDescription(quote); + VictorQuote.setFooter('- ' + year); + VictorQuote.setURL(url); + + return VictorQuote; + } + + const victorquote = GetVictorQuote(); + message.reply('Alright, here\'s your Victor quote.') + message.channel.send(victorquote); + }; + + exports.conf = { + aliases: [], + guildOnly: false, + }; + exports.help = { + name: 'vtquote', + description: 'Tells you quotes when victor accidentaly swore.', + usage: 'vtquote', + category: '- Quote Commands', + }; +
\ No newline at end of file |
