diff options
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/addquote.js | 8 | ||||
| -rw-r--r-- | commands/ask.js | 2 | ||||
| -rw-r--r-- | commands/avatarurl.js | 2 | ||||
| -rw-r--r-- | commands/balance.js | 2 | ||||
| -rw-r--r-- | commands/ban.js | 2 | ||||
| -rw-r--r-- | commands/buy.js | 118 | ||||
| -rw-r--r-- | commands/daily.js | 59 | ||||
| -rw-r--r-- | commands/eval.js | 2 | ||||
| -rw-r--r-- | commands/git.js | 4 | ||||
| -rw-r--r-- | commands/help.js | 8 | ||||
| -rw-r--r-- | commands/info.js | 2 | ||||
| -rw-r--r-- | commands/interrogate.js | 4 | ||||
| -rw-r--r-- | commands/invite.js | 4 | ||||
| -rw-r--r-- | commands/jail.js | 4 | ||||
| -rw-r--r-- | commands/kick.js | 2 | ||||
| -rw-r--r-- | commands/leaveguild.js | 2 | ||||
| -rw-r--r-- | commands/pay.js | 2 | ||||
| -rw-r--r-- | commands/ping.js | 2 | ||||
| -rw-r--r-- | commands/poweroff.js | 3 | ||||
| -rw-r--r-- | commands/purge.js | 2 | ||||
| -rw-r--r-- | commands/quote.js | 4 | ||||
| -rw-r--r-- | commands/say.js | 2 | ||||
| -rw-r--r-- | commands/setprefix.js | 2 | ||||
| -rw-r--r-- | commands/suggest.js | 8 | ||||
| -rw-r--r-- | commands/suggestfeature.js | 6 | ||||
| -rw-r--r-- | commands/uptime.js | 2 | ||||
| -rw-r--r-- | commands/userinfo.js | 2 | ||||
| -rw-r--r-- | commands/vtquote.js | 2 |
28 files changed, 43 insertions, 219 deletions
diff --git a/commands/addquote.js b/commands/addquote.js index 1de8809..04df3f4 100644 --- a/commands/addquote.js +++ b/commands/addquote.js @@ -1,7 +1,7 @@ /**************************************** * * AddQuote: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ * * *************************************/ module.exports.run = async (client, message, args) => { - /* + /* const moment = require('moment'); const log = message => { @@ -26,7 +26,7 @@ module.exports.run = async (client, message, args) => { }; const fs = require('fs'); - if(!args[0]) return message.reply(`Usage: ab:addquote [author] [authorImage] [quote] [year]`) + if(!args[0]) return message.reply(`Usage: ab:addquote [author] [authorImage] [quote] [year]`); let quotes = JSON.parse(fs.readFileSync("./storage/quotes.json", "utf8")); @@ -43,7 +43,7 @@ module.exports.run = async (client, message, args) => { message.reply(`You just added a new quote!`); log(`[i] A quote has been added to quotes.json...`) - */ +*/ message.reply('Command is broken for now'); }; diff --git a/commands/ask.js b/commands/ask.js index d589e9c..db9e10e 100644 --- a/commands/ask.js +++ b/commands/ask.js @@ -1,7 +1,7 @@ /**************************************** * * Ask: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/avatarurl.js b/commands/avatarurl.js index e8fb7a6..018bc7a 100644 --- a/commands/avatarurl.js +++ b/commands/avatarurl.js @@ -1,7 +1,7 @@ /**************************************** * * AvatarURL: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/balance.js b/commands/balance.js index e0b87e5..ae575cc 100644 --- a/commands/balance.js +++ b/commands/balance.js @@ -1,7 +1,7 @@ /**************************************** * * Balance: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/ban.js b/commands/ban.js index c1129de..6331347 100644 --- a/commands/ban.js +++ b/commands/ban.js @@ -1,7 +1,7 @@ /**************************************** * * Ban: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/buy.js b/commands/buy.js deleted file mode 100644 index e5b8fee..0000000 --- a/commands/buy.js +++ /dev/null @@ -1,118 +0,0 @@ -/**************************************** - * - * Buy: Command for AleeBot - * Copyright (C) 2018 AleeCorp - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * *************************************/ -module.exports.run = async (client, message, args) => { -/* -const Discord = require('discord.js'); -const fs = require('fs') -const db = require('quick.db'); -const items = JSON.parse(fs.readFileSync('./storage/items.json', 'utf8')); - - let categories = []; - - if (!args.join(" ")) { - - - for (var i in items) { - - - if (!categories.includes(items[i].type)) { - categories.push(items[i].type) - } - - } - - - const embed = new Discord.RichEmbed() - .setDescription(`Available Items`) - .setColor('#1fd619') - - for (var i = 0; i < categories.length; i++) { - - var tempDesc = ''; - - for (var c in items) { - if (categories[i] === items[c].type) { - - tempDesc += `${items[c].name} - ${items[c].price}$ - ${items[c].desc}\n`; - - } - - } - - embed.addField(categories[i], tempDesc); - - } - - - return message.channel.send({ - embed - }); - - - } - - let itemName = ''; - let itemPrice = 0; - let itemDesc = ''; - - for (var i in items) { - if (args.join(" ").trim().toUpperCase() === items[i].name.toUpperCase()) { - itemName = items[i].name; - itemPrice = items[i].price; - itemDesc = items[i].desc; - } - } - - - if (itemName === '') { - return message.channel.send(`Item ${args.join(" ").trim()} not found.`) - } - - let selfBalance = await db.fetch(`userBalance_${message.author.id}`); - - if (selfBalance === null) { - db.set(`userBalance_${message.author.id}`, 0); - selfBalance = 0 - } - - if (itemPrice > selfBalance) return message.reply('You don\'t have enough money for this item.') - - db.subtract(`userBalance_${message.author.id}`, itemPrice); - - if (itemName === 'Programmer Role') { - message.guild.members.get(message.author.id).addRole(message.guild.roles.find("name", "Programmers")); - } - - message.channel.send('You bought ' + itemName + '!'); - */ - message.reply('Command is broken for now'); -}; - -exports.conf = { - aliases: [], - guildOnly: false, -}; -exports.help = { - name: 'buy', - description: 'Buy things.', - usage: 'buy [item]', - category: '- Economy Commands', -}; -
\ No newline at end of file diff --git a/commands/daily.js b/commands/daily.js deleted file mode 100644 index 0d844a2..0000000 --- a/commands/daily.js +++ /dev/null @@ -1,59 +0,0 @@ -/**************************************** - * - * Daily: Command for AleeBot - * Copyright (C) 2018 AleeCorp - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * *************************************/ -const db = require('quick.db'); - ms = require('parse-ms'); - -module.exports.run = async (client, message) => { - - let cooldown = 8.64e+7, - amount = 100; - - let lastDaily = await db.fetch(`lastDaily_${message.author.id}`); - - if (lastDaily !== null && cooldown - (Date.now() - lastDaily) > 0) { - let timeObj = ms(cooldown - (Date.now() - lastDaily)); - - message.reply(`You already collected your money, please wait **${timeObj.hours}h ${timeObj.minutes}m**!`) - } else { - message.channel.send(`You have successfully collected $${amount} dollars!`); - - let balance = await db.fetch(`userBalance_${message.author.id}`); - - if (balance == null) { - db.set(`userBalance_${message.author.id}`, 0); - } - - db.set(`lastDaily_${message.author.id}`, Date.now()); - db.add(`userBalance_${message.author.id}`, 100); - } - - }; - - exports.conf = { - aliases: [], - guildOnly: false, - }; - exports.help = { - name: 'daily', - description: 'This gives you money everyday.', - usage: 'daily', - category: '- Economy Commands', - }; -
\ No newline at end of file diff --git a/commands/eval.js b/commands/eval.js index 0e3541c..90b7030 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -1,7 +1,7 @@ /**************************************** * * Eval: Command for AleeBot - * Copyright (C) 2018 AleeCorp & jtsshieh + PokeWorld + * Copyright (C) 2017-2020 Alee Productions & jtsshieh + PokeWorld * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/git.js b/commands/git.js index 60d7d7e..d6bed8b 100644 --- a/commands/git.js +++ b/commands/git.js @@ -1,7 +1,7 @@ /****************************************
*
* Git: Command for AleeBot
- * Copyright (C) 2018 AleeCorp
+ * Copyright (C) 2017-2020 Alee Productions
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ module.exports.run = async (client, message) => { git.getLastCommit(function(err, commit) {
const embed = new Discord.RichEmbed()
.setTitle('GitHub Information')
- .addField('**Repository:**', 'https://github.com/AleeCorp/AleeBot')
+ .addField('**Repository:**', 'https://github.com/aleeproductions/AleeBot-JS')
.addField('**Last Commit:**', commit.subject)
.addField('**Commited By:**', commit.author.name)
.setColor('#1fd619')
diff --git a/commands/help.js b/commands/help.js index dd4a85f..eb53b40 100644 --- a/commands/help.js +++ b/commands/help.js @@ -1,7 +1,7 @@ /****************************************
*
* Help: Command for AleeBot
- * Copyright (C) 2018 AleeCorp
+ * Copyright (C) 2017-2020 Alee Productions
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ const fs = require('fs'); module.exports.run = async (client, message) => {
const categories = [];
const commands = Array.from(client.commands.keys());
- const settings = require('../storage/settings.json')
+ const settings = require('../storage/settings.json');
commands.forEach(function(x) {
if (!categories.includes(client.commands.get(x).help.category)) {
categories.push(client.commands.get(x).help.category);
@@ -41,9 +41,9 @@ module.exports.run = async (client, message) => { if (!message.guild.member(client.user).hasPermission('EMBED_LINKS')) return message.reply('ERROR: AleeBot doesn\'t have the permission to send embed links please enable them to use the full help.');
const embed = new Discord.RichEmbed()
.setAuthor('AleeBot ' + require('../storage/settings.json').abVersion + ` Help and on ${client.guilds.size} servers`, client.user.avatarURL)
- .setDescription('Every command you input into AleeBot is `' + prefix + '`\n\nATTENTION ALL: ALEEBOT WILL BE CONTINUING BUT ALEE WON\'T BE DEVELOPING IT MUCH...')
+ .setDescription('Every command you input into AleeBot is `' + prefix + '`')
.setColor('#1fd619')
- .setFooter('AleeCorp Copyright 2018, Licensed with GPL-3.0');
+ .setFooter('© Copyright 2017-2020 Alee Productions, Licensed with GPL-3.0');
categories.forEach(function(x) {
let cat = '';
diff --git a/commands/info.js b/commands/info.js index 83f4e6e..162a1cf 100644 --- a/commands/info.js +++ b/commands/info.js @@ -1,7 +1,7 @@ /**************************************** * * Info: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/interrogate.js b/commands/interrogate.js index 24a37e4..5630114 100644 --- a/commands/interrogate.js +++ b/commands/interrogate.js @@ -1,7 +1,7 @@ /**************************************** * * Interrogate: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,6 +38,6 @@ exports.conf = { name: 'interrogate', description: 'Interrogates a member', usage: 'interrogate [user]', - category: '- ACN Exclusive Commands', + category: '- ALP Exclusive Commands', };
\ No newline at end of file diff --git a/commands/invite.js b/commands/invite.js index ef7a840..b0d3ec3 100644 --- a/commands/invite.js +++ b/commands/invite.js @@ -1,7 +1,7 @@ /**************************************** * * Invite: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,7 +28,7 @@ module.exports.run = async (client, message) => { value: "[Invite AleeBot to your server.](https://discordapp.com/api/oauth2/authorize?client_id=282547024547545109&permissions=2080375863&scope=bot)" }, { - name: "Join Alee Community", + name: "Join the Alee Productions Community", value: "[If there's any bugs you can join Alee Community guild and explain the bug...](https://discord.gg/EFhRDqG)" } ], diff --git a/commands/jail.js b/commands/jail.js index a3ef0c6..18cbfb1 100644 --- a/commands/jail.js +++ b/commands/jail.js @@ -1,7 +1,7 @@ /**************************************** * * Jail: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,6 +38,6 @@ exports.conf = { name: 'jail', description: 'Jails a member', usage: 'jail [user]', - category: '- ACN Exclusive Commands', + category: '- ALP Exclusive Commands', };
\ No newline at end of file diff --git a/commands/kick.js b/commands/kick.js index 2cf596e..dbb1eb1 100644 --- a/commands/kick.js +++ b/commands/kick.js @@ -1,7 +1,7 @@ /**************************************** * * Kick: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/leaveguild.js b/commands/leaveguild.js index ee0be0e..4a77b0c 100644 --- a/commands/leaveguild.js +++ b/commands/leaveguild.js @@ -1,7 +1,7 @@ /**************************************** * * LeaveGuild: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/pay.js b/commands/pay.js index 5a2a836..633e4db 100644 --- a/commands/pay.js +++ b/commands/pay.js @@ -1,7 +1,7 @@ /**************************************** * * Pay: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/ping.js b/commands/ping.js index 47c82e1..fa1fd10 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -1,7 +1,7 @@ /****************************************
*
* Ping: Command for AleeBot
- * Copyright (C) 2018 AleeCorp
+ * Copyright (C) 2017-2020 Alee Productions
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/commands/poweroff.js b/commands/poweroff.js index ed85202..9011567 100644 --- a/commands/poweroff.js +++ b/commands/poweroff.js @@ -1,7 +1,7 @@ /**************************************** * * Poweroff: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,6 +20,7 @@ module.exports.run = async (client, message, args) => { if (!['242775871059001344',].includes(message.author.id)) return message.reply('Nope! You need the person who created this bot to use this command.'); await message.reply(':warning: AleeBot will now exit!'); + client.destroy(); process.exit(0); }; diff --git a/commands/purge.js b/commands/purge.js index b3bf129..9a510f9 100644 --- a/commands/purge.js +++ b/commands/purge.js @@ -1,7 +1,7 @@ /**************************************** * * Purge: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/quote.js b/commands/quote.js index 14995c3..9aa9be0 100644 --- a/commands/quote.js +++ b/commands/quote.js @@ -1,7 +1,7 @@ /**************************************** * * Quote: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ let NewQuote; function GetNewQuote(quoteNum = -1) { NewQuote = new Discord.RichEmbed(); - let quo = require('../storage/quotes.json').quotes + let quo = require('../storage/quotes.json').quotes; if (quoteNum == -1) { quoteNum = Math.floor(Math.random() * 1000) % quo.length; diff --git a/commands/say.js b/commands/say.js index 425971a..4f25aec 100644 --- a/commands/say.js +++ b/commands/say.js @@ -1,7 +1,7 @@ /**************************************** * * Say: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/setprefix.js b/commands/setprefix.js index 7a2dc96..f9aac08 100644 --- a/commands/setprefix.js +++ b/commands/setprefix.js @@ -1,7 +1,7 @@ /**************************************** * * SetPrefix: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/suggest.js b/commands/suggest.js index 621ed82..1b2d814 100644 --- a/commands/suggest.js +++ b/commands/suggest.js @@ -1,7 +1,7 @@ /**************************************** * * Suggest: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ * * *************************************/ module.exports.run = async (client, message, args) => { - if (message.guild.id != '243022206437687296') return message.reply ('This is a ACN exclusive command.'); + if (message.guild.id != '243022206437687296') return message.reply ('This is a ALP exclusive command.'); const { RichEmbed } = require('discord.js'); client.channels.find('id', '427495678390960148').send( new RichEmbed() @@ -30,7 +30,7 @@ module.exports.run = async (client, message, args) => { message.react('\u2705'); message.react('\u274E'); }); - message.reply("Alright, your suggestion has been shown now.") + message.reply("Your suggestion has been shown in the suggestions channel.") }; exports.conf = { @@ -41,6 +41,6 @@ module.exports.run = async (client, message, args) => { name: 'suggest', description: 'Suggest a feature in ACN.', usage: 'suggest [suggestion]', - category: '- ACN Exclusive Commands', + category: '- ALP Exclusive Commands', };
\ No newline at end of file diff --git a/commands/suggestfeature.js b/commands/suggestfeature.js index dbafc98..95e1c2d 100644 --- a/commands/suggestfeature.js +++ b/commands/suggestfeature.js @@ -1,7 +1,7 @@ /**************************************** * * SuggestFeature: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,10 +23,10 @@ module.exports.run = async (client, message, args) => { new RichEmbed() .setColor ('#1fd619') .setTitle('AleeBot Feature Suggestion') - .setDescription(`This is a AleeBot feature suggestion from `+ message.author.username +` and from the guild ${message.guild.name}.`) + .setDescription(`This is an AleeBot feature suggestion from `+ message.author.username +` sending from ${message.guild.name}.`) .addField('Suggestion Contents', args.join(' ')) ) - await message.reply("Alright, your suggestion has been shown to the ACN guild.") + await message.reply("Your suggestion has been shown to the ALP discord server!") }; diff --git a/commands/uptime.js b/commands/uptime.js index 0548cc4..7c8d9fe 100644 --- a/commands/uptime.js +++ b/commands/uptime.js @@ -1,7 +1,7 @@ /****************************************
*
* Uptime: Command for AleeBot
- * Copyright (C) 2018 AleeCorp & OfficialRain
+ * Copyright (C) 2017-2020 Alee Productions & OfficialRain
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/commands/userinfo.js b/commands/userinfo.js index 6917ad4..2eebd8b 100644 --- a/commands/userinfo.js +++ b/commands/userinfo.js @@ -1,7 +1,7 @@ /**************************************** * * UserInfo: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/vtquote.js b/commands/vtquote.js index aedee86..e21db08 100644 --- a/commands/vtquote.js +++ b/commands/vtquote.js @@ -1,7 +1,7 @@ /**************************************** * * VTQuote: Command for AleeBot - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by |
