Removed economy features

This commit is contained in:
Andrew Lee 2018-05-27 18:14:42 -04:00
parent 7d1cb659df
commit 39e713d2da
11 changed files with 17 additions and 1063 deletions

View file

@ -8,7 +8,6 @@
<br>
<h1>What features does AleeBot have?</h1>
<ul>
<li>Economy</li>
<li>Customizable Prefix</li>
<li>Moderation</li>
<li>Fun features</li>

View file

@ -18,7 +18,6 @@
*
* *************************************/
const Discord = require('discord.js');
const economy = require('discord-eco');
const moment = require('moment');
const readline = require('readline');
const DBL = require("dblapi.js");

View file

@ -1,119 +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 economy = require('discord-eco')
const Discord = require('discord.js');
const fs = require('fs')
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.`)
}
economy.fetchBalance(message.author.id + message.guild.id).then((i) => {
if (i.money <= itemPrice) {
return message.channel.send(`You don't have enough money for this item.`);
}
economy.updateBalance(message.author.id + message.guild.id, parseInt(`-${itemPrice}`)).then((i) => {
message.channel.send('You bought ' + itemName + '!');
if (itemName === 'Programmer Role') {
message.guild.members.get(message.author.id).addRole(message.guild.roles.find("name", "Programmers"));
}
})
})
};
exports.conf = {
aliases: [],
guildOnly: false,
};
exports.help = {
name: 'buy',
description: 'Buy things.',
usage: 'buy [item]',
category: '- Economy Commands',
};

View file

@ -22,7 +22,7 @@ module.exports.run = async (client, message) => {
const embed = new Discord.RichEmbed()
.setAuthor('AleeBot ' + require('../storage/settings.json').abVersion + ' Changelog', 'https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048')
.setDescription('What\'s new in AleeBot '+ require('../storage/settings.json').abVersion +'?')
.addField('1. Minor changes in ban and kick!', 'We now have embeds in ban and kick...')
.addField('1. Economy features has been removed!', 'Unfortunately, this feature has been removed due to technical problems.')
.setColor('#1fd619');
message.channel.send({embed});

View file

@ -1,44 +0,0 @@
/****************************************
*
* Money: 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) => {
const { RichEmbed } = require('discord.js');
const economy = require('discord-eco')
economy.fetchBalance(message.author.id + message.guild.id).then((i) => {
const embed = new RichEmbed()
.setDescription(`**${message.guild.name} Bank**`)
.addField('Account Holder: ', message.author.username, true)
.addField('Account Balance: ', i.money, true)
.setColor('#1fd619')
message.channel.send({embed})
})
};
exports.conf = {
aliases: ['bal', 'balance'],
guildOnly: false,
};
exports.help = {
name: 'money',
description: 'Displays your balance.',
usage: 'money',
category: '- Economy Commands',
};

View file

@ -1,60 +0,0 @@
/****************************************
*
* SetMoney: 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 { RichEmbed } = require('discord.js');
const economy = require('discord-eco')
if (!message.member.permissions.has('ADMINISTRATOR')) return message.reply("It looks like that you don't have the permissions to set your money.")
// if (!['242775871059001344',].includes(message.author.id))
if (!args[0]) {
message.reply('You need a amount.');
return;
}
if(isNaN(args[0])) {
message.reply("Please make sure it's a number.");
return;
}
let defineduser = '';
if (!args[1]) {
defineduser = message.author.id;
} else {
let firstMentioned = message.mentions.users.first();
defineduser = firstMentioned.id;
}
economy.updateBalance(defineduser + message.guild.id, parseInt(args[0])).then((i) => {
message.reply(`User defined has ${args[0]} dollars added or removed to their account.`)
});
};
exports.conf = {
aliases: [],
guildOnly: false,
};
exports.help = {
name: 'setmoney',
description: 'Sets money.',
usage: 'setmoney [amount] [user]',
category: '- Economy Commands',
};

View file

@ -1,95 +0,0 @@
/****************************************
*
* Slots: Command for AleeBot
* Copyright (C) 2018 AleeCorp & 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
* 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) => {
const economy = require('discord-eco')
const slotNumbers = [
1,
2,
3,
4,
5,
6,
7,
8,
9,
];
economy.fetchBalance(message.author.id + message.guild.id).then((i) => {
if (i.money <= 10) {
return message.channel.send(`You don't have enough money (10) to play this game.`);
}
const number1 = slotNumbers[Math.floor(Math.random() * slotNumbers.length)];
const number2 = slotNumbers[Math.floor(Math.random() * slotNumbers.length)];
const number3 = slotNumbers[Math.floor(Math.random() * slotNumbers.length)];
if (number2 == number1 + 1 && number3 == number2 + 1) {
economy.updateBalance(message.author.id + message.guild.id, parseInt(1000)).then((i) => {
economy.fetchBalance(message.author.id + message.guild.id).then((i) => {
message.channel.send('You won 1000 money!\nCurrent Balance: ' + i.money + ' \n> ' + emojify(number1, number2, number3));
});
});
}
else if (number2 == number3 - 1 && number1 == number2 - 1) {
economy.updateBalance(message.author.id + message.guild.id, parseInt(1050)).then((i) => {
economy.fetchBalance(message.author.id + message.guild.id).then((i) => {
message.channel.send('You won 1050 money!\nCurrent Balance: ' + i.money + ' \n> ' + emojify(number1, number2, number3));
});
});
}
else {
economy.updateBalance(message.author.id + message.guild.id, parseInt(-10)).then((i) => {
economy.fetchBalance(message.author.id + message.guild.id).then((i) => {
message.channel.send('You lost 10 money...\nCurrent Balance: ' + i.money + ' \n> ' + emojify(number1, number2, number3));
});
});
}
});
function emojify(number1, number2, number3) {
return emote(number1) + ' ' + emote(number2) + ' ' + emote(number3);
}
function emote(number) {
if (number == 1) return ':one:';
if (number == 2) return ':two:';
if (number == 3) return ':three:';
if (number == 4) return ':four:';
if (number == 5) return ':five:';
if (number == 6) return ':six:';
if (number == 7) return ':seven:';
if (number == 8) return ':eight:';
if (number == 9) return ':nine:';
}
}
exports.conf = {
aliases: [],
guildOnly: false,
};
exports.help = {
name: 'slots',
description: 'Develop a gambling addiction by playing Slots!',
usage: 'slots',
category: '- Games',
};

753
package-lock.json generated
View file

@ -15,19 +15,11 @@
"integrity": "sha1-+WLWh+wsNpVwrnGvhDJW5tDKESk="
},
"dblapi.js": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/dblapi.js/-/dblapi.js-2.0.0.tgz",
"integrity": "sha512-MRdgIhJZm85K47FMDmC/R5snWbiuo2yTzAe2vwmsnfyAS3bdHyeTIMTtixYf21gVz9Favg1ukqfYo/CZVAzHbA==",
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/dblapi.js/-/dblapi.js-2.0.1.tgz",
"integrity": "sha512-nXNKkp14tUoq4Lko2aTuQrAuerrhUbXlBXDJ+FzvH7HHlCH3jJkFFwyW1UdFaeJNe/eO3FC85WDzg5q2z1lIOA==",
"requires": {
"snekfetch": "3.6.4"
}
},
"discord-eco": {
"version": "0.0.10",
"resolved": "https://registry.npmjs.org/discord-eco/-/discord-eco-0.0.10.tgz",
"integrity": "sha512-8+x7z211xhiDt2kldpuX3FzsKzSyUkZ8CwgFzsr6HV9NSXoRTdWpIoTa5QhgB1foTD0JtFkm7wXV59ihxvwz5Q==",
"requires": {
"sqlite3": "3.1.13"
"snekfetch": "^3.6.4"
}
},
"discord.js": {
@ -35,11 +27,11 @@
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-11.3.2.tgz",
"integrity": "sha512-Abw9CTMX3Jb47IeRffqx2VNSnXl/OsTdQzhvbw/JnqCyqc2imAocc7pX2HoRmgKd8CgSqsjBFBneusz/E16e6A==",
"requires": {
"long": "4.0.0",
"prism-media": "0.0.2",
"snekfetch": "3.6.4",
"tweetnacl": "1.0.0",
"ws": "4.1.0"
"long": "^4.0.0",
"prism-media": "^0.0.2",
"snekfetch": "^3.6.4",
"tweetnacl": "^1.0.0",
"ws": "^4.0.0"
}
},
"fs": {
@ -62,11 +54,6 @@
"resolved": "https://registry.npmjs.org/moment/-/moment-2.22.1.tgz",
"integrity": "sha512-shJkRTSebXvsVqk56I+lkb2latjBs8I+pc2TzWc545y2iFnSjm7Wg0QMh+ZWcdSLQyGEau5jI8ocnmkyTgr9YQ=="
},
"nan": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz",
"integrity": "sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY="
},
"os": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/os/-/os-0.1.1.tgz",
@ -83,727 +70,15 @@
"integrity": "sha1-xYDXfvLPyHUrEySYBg3JeTp6wBw="
},
"safe-buffer": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
},
"snekfetch": {
"version": "3.6.4",
"resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-3.6.4.tgz",
"integrity": "sha512-NjxjITIj04Ffqid5lqr7XdgwM7X61c/Dns073Ly170bPQHLm6jkmelye/eglS++1nfTWktpP6Y2bFXjdPlQqdw=="
},
"sqlite3": {
"version": "3.1.13",
"resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.13.tgz",
"integrity": "sha512-JxXKPJnkZ6NuHRojq+g2WXWBt3M1G9sjZaYiHEWSTGijDM3cwju/0T2XbWqMXFmPqDgw+iB7zKQvnns4bvzXlw==",
"requires": {
"nan": "2.7.0",
"node-pre-gyp": "0.6.38"
},
"dependencies": {
"abbrev": {
"version": "1.1.1",
"bundled": true
},
"ajv": {
"version": "4.11.8",
"bundled": true,
"requires": {
"co": "4.6.0",
"json-stable-stringify": "1.0.1"
}
},
"ansi-regex": {
"version": "2.1.1",
"bundled": true
},
"aproba": {
"version": "1.2.0",
"bundled": true
},
"are-we-there-yet": {
"version": "1.1.4",
"bundled": true,
"requires": {
"delegates": "1.0.0",
"readable-stream": "2.3.3"
}
},
"asn1": {
"version": "0.2.3",
"bundled": true
},
"assert-plus": {
"version": "0.2.0",
"bundled": true
},
"asynckit": {
"version": "0.4.0",
"bundled": true
},
"aws-sign2": {
"version": "0.6.0",
"bundled": true
},
"aws4": {
"version": "1.6.0",
"bundled": true
},
"balanced-match": {
"version": "1.0.0",
"bundled": true
},
"bcrypt-pbkdf": {
"version": "1.0.1",
"bundled": true,
"optional": true,
"requires": {
"tweetnacl": "0.14.5"
}
},
"block-stream": {
"version": "0.0.9",
"bundled": true,
"requires": {
"inherits": "2.0.3"
}
},
"boom": {
"version": "2.10.1",
"bundled": true,
"requires": {
"hoek": "2.16.3"
}
},
"brace-expansion": {
"version": "1.1.8",
"bundled": true,
"requires": {
"balanced-match": "1.0.0",
"concat-map": "0.0.1"
}
},
"caseless": {
"version": "0.12.0",
"bundled": true
},
"co": {
"version": "4.6.0",
"bundled": true
},
"code-point-at": {
"version": "1.1.0",
"bundled": true
},
"combined-stream": {
"version": "1.0.5",
"bundled": true,
"requires": {
"delayed-stream": "1.0.0"
}
},
"concat-map": {
"version": "0.0.1",
"bundled": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true
},
"core-util-is": {
"version": "1.0.2",
"bundled": true
},
"cryptiles": {
"version": "2.0.5",
"bundled": true,
"requires": {
"boom": "2.10.1"
}
},
"dashdash": {
"version": "1.14.1",
"bundled": true,
"requires": {
"assert-plus": "1.0.0"
},
"dependencies": {
"assert-plus": {
"version": "1.0.0",
"bundled": true
}
}
},
"debug": {
"version": "2.6.9",
"bundled": true,
"requires": {
"ms": "2.0.0"
}
},
"deep-extend": {
"version": "0.4.2",
"bundled": true
},
"delayed-stream": {
"version": "1.0.0",
"bundled": true
},
"delegates": {
"version": "1.0.0",
"bundled": true
},
"ecc-jsbn": {
"version": "0.1.1",
"bundled": true,
"optional": true,
"requires": {
"jsbn": "0.1.1"
}
},
"extend": {
"version": "3.0.1",
"bundled": true
},
"extsprintf": {
"version": "1.3.0",
"bundled": true
},
"forever-agent": {
"version": "0.6.1",
"bundled": true
},
"form-data": {
"version": "2.1.4",
"bundled": true,
"requires": {
"asynckit": "0.4.0",
"combined-stream": "1.0.5",
"mime-types": "2.1.17"
}
},
"fs.realpath": {
"version": "1.0.0",
"bundled": true
},
"fstream": {
"version": "1.0.11",
"bundled": true,
"requires": {
"graceful-fs": "4.1.11",
"inherits": "2.0.3",
"mkdirp": "0.5.1",
"rimraf": "2.6.2"
}
},
"fstream-ignore": {
"version": "1.0.5",
"bundled": true,
"requires": {
"fstream": "1.0.11",
"inherits": "2.0.3",
"minimatch": "3.0.4"
}
},
"gauge": {
"version": "2.7.4",
"bundled": true,
"requires": {
"aproba": "1.2.0",
"console-control-strings": "1.1.0",
"has-unicode": "2.0.1",
"object-assign": "4.1.1",
"signal-exit": "3.0.2",
"string-width": "1.0.2",
"strip-ansi": "3.0.1",
"wide-align": "1.1.2"
}
},
"getpass": {
"version": "0.1.7",
"bundled": true,
"requires": {
"assert-plus": "1.0.0"
},
"dependencies": {
"assert-plus": {
"version": "1.0.0",
"bundled": true
}
}
},
"glob": {
"version": "7.1.2",
"bundled": true,
"requires": {
"fs.realpath": "1.0.0",
"inflight": "1.0.6",
"inherits": "2.0.3",
"minimatch": "3.0.4",
"once": "1.4.0",
"path-is-absolute": "1.0.1"
}
},
"graceful-fs": {
"version": "4.1.11",
"bundled": true
},
"har-schema": {
"version": "1.0.5",
"bundled": true
},
"har-validator": {
"version": "4.2.1",
"bundled": true,
"requires": {
"ajv": "4.11.8",
"har-schema": "1.0.5"
}
},
"has-unicode": {
"version": "2.0.1",
"bundled": true
},
"hawk": {
"version": "3.1.3",
"bundled": true,
"requires": {
"boom": "2.10.1",
"cryptiles": "2.0.5",
"hoek": "2.16.3",
"sntp": "1.0.9"
}
},
"hoek": {
"version": "2.16.3",
"bundled": true
},
"http-signature": {
"version": "1.1.1",
"bundled": true,
"requires": {
"assert-plus": "0.2.0",
"jsprim": "1.4.1",
"sshpk": "1.13.1"
}
},
"inflight": {
"version": "1.0.6",
"bundled": true,
"requires": {
"once": "1.4.0",
"wrappy": "1.0.2"
}
},
"inherits": {
"version": "2.0.3",
"bundled": true
},
"ini": {
"version": "1.3.4",
"bundled": true
},
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
"requires": {
"number-is-nan": "1.0.1"
}
},
"is-typedarray": {
"version": "1.0.0",
"bundled": true
},
"isarray": {
"version": "1.0.0",
"bundled": true
},
"isstream": {
"version": "0.1.2",
"bundled": true
},
"jsbn": {
"version": "0.1.1",
"bundled": true,
"optional": true
},
"json-schema": {
"version": "0.2.3",
"bundled": true
},
"json-stable-stringify": {
"version": "1.0.1",
"bundled": true,
"requires": {
"jsonify": "0.0.0"
}
},
"json-stringify-safe": {
"version": "5.0.1",
"bundled": true
},
"jsonify": {
"version": "0.0.0",
"bundled": true
},
"jsprim": {
"version": "1.4.1",
"bundled": true,
"requires": {
"assert-plus": "1.0.0",
"extsprintf": "1.3.0",
"json-schema": "0.2.3",
"verror": "1.10.0"
},
"dependencies": {
"assert-plus": {
"version": "1.0.0",
"bundled": true
}
}
},
"mime-db": {
"version": "1.30.0",
"bundled": true
},
"mime-types": {
"version": "2.1.17",
"bundled": true,
"requires": {
"mime-db": "1.30.0"
}
},
"minimatch": {
"version": "3.0.4",
"bundled": true,
"requires": {
"brace-expansion": "1.1.8"
}
},
"minimist": {
"version": "0.0.8",
"bundled": true
},
"mkdirp": {
"version": "0.5.1",
"bundled": true,
"requires": {
"minimist": "0.0.8"
}
},
"ms": {
"version": "2.0.0",
"bundled": true
},
"node-pre-gyp": {
"version": "0.6.38",
"bundled": true,
"requires": {
"hawk": "3.1.3",
"mkdirp": "0.5.1",
"nopt": "4.0.1",
"npmlog": "4.1.2",
"rc": "1.2.1",
"request": "2.81.0",
"rimraf": "2.6.2",
"semver": "5.4.1",
"tar": "2.2.1",
"tar-pack": "3.4.0"
}
},
"nopt": {
"version": "4.0.1",
"bundled": true,
"requires": {
"abbrev": "1.1.1",
"osenv": "0.1.4"
}
},
"npmlog": {
"version": "4.1.2",
"bundled": true,
"requires": {
"are-we-there-yet": "1.1.4",
"console-control-strings": "1.1.0",
"gauge": "2.7.4",
"set-blocking": "2.0.0"
}
},
"number-is-nan": {
"version": "1.0.1",
"bundled": true
},
"oauth-sign": {
"version": "0.8.2",
"bundled": true
},
"object-assign": {
"version": "4.1.1",
"bundled": true
},
"once": {
"version": "1.4.0",
"bundled": true,
"requires": {
"wrappy": "1.0.2"
}
},
"os-homedir": {
"version": "1.0.2",
"bundled": true
},
"os-tmpdir": {
"version": "1.0.2",
"bundled": true
},
"osenv": {
"version": "0.1.4",
"bundled": true,
"requires": {
"os-homedir": "1.0.2",
"os-tmpdir": "1.0.2"
}
},
"path-is-absolute": {
"version": "1.0.1",
"bundled": true
},
"performance-now": {
"version": "0.2.0",
"bundled": true
},
"process-nextick-args": {
"version": "1.0.7",
"bundled": true
},
"punycode": {
"version": "1.4.1",
"bundled": true
},
"qs": {
"version": "6.4.0",
"bundled": true
},
"rc": {
"version": "1.2.1",
"bundled": true,
"requires": {
"deep-extend": "0.4.2",
"ini": "1.3.4",
"minimist": "1.2.0",
"strip-json-comments": "2.0.1"
},
"dependencies": {
"minimist": {
"version": "1.2.0",
"bundled": true
}
}
},
"readable-stream": {
"version": "2.3.3",
"bundled": true,
"requires": {
"core-util-is": "1.0.2",
"inherits": "2.0.3",
"isarray": "1.0.0",
"process-nextick-args": "1.0.7",
"safe-buffer": "5.1.1",
"string_decoder": "1.0.3",
"util-deprecate": "1.0.2"
}
},
"request": {
"version": "2.81.0",
"bundled": true,
"requires": {
"aws-sign2": "0.6.0",
"aws4": "1.6.0",
"caseless": "0.12.0",
"combined-stream": "1.0.5",
"extend": "3.0.1",
"forever-agent": "0.6.1",
"form-data": "2.1.4",
"har-validator": "4.2.1",
"hawk": "3.1.3",
"http-signature": "1.1.1",
"is-typedarray": "1.0.0",
"isstream": "0.1.2",
"json-stringify-safe": "5.0.1",
"mime-types": "2.1.17",
"oauth-sign": "0.8.2",
"performance-now": "0.2.0",
"qs": "6.4.0",
"safe-buffer": "5.1.1",
"stringstream": "0.0.5",
"tough-cookie": "2.3.3",
"tunnel-agent": "0.6.0",
"uuid": "3.1.0"
}
},
"rimraf": {
"version": "2.6.2",
"bundled": true,
"requires": {
"glob": "7.1.2"
}
},
"safe-buffer": {
"version": "5.1.1",
"bundled": true
},
"semver": {
"version": "5.4.1",
"bundled": true
},
"set-blocking": {
"version": "2.0.0",
"bundled": true
},
"signal-exit": {
"version": "3.0.2",
"bundled": true
},
"sntp": {
"version": "1.0.9",
"bundled": true,
"requires": {
"hoek": "2.16.3"
}
},
"sshpk": {
"version": "1.13.1",
"bundled": true,
"requires": {
"asn1": "0.2.3",
"assert-plus": "1.0.0",
"bcrypt-pbkdf": "1.0.1",
"dashdash": "1.14.1",
"ecc-jsbn": "0.1.1",
"getpass": "0.1.7",
"jsbn": "0.1.1",
"tweetnacl": "0.14.5"
},
"dependencies": {
"assert-plus": {
"version": "1.0.0",
"bundled": true
}
}
},
"string-width": {
"version": "1.0.2",
"bundled": true,
"requires": {
"code-point-at": "1.1.0",
"is-fullwidth-code-point": "1.0.0",
"strip-ansi": "3.0.1"
}
},
"string_decoder": {
"version": "1.0.3",
"bundled": true,
"requires": {
"safe-buffer": "5.1.1"
}
},
"stringstream": {
"version": "0.0.5",
"bundled": true
},
"strip-ansi": {
"version": "3.0.1",
"bundled": true,
"requires": {
"ansi-regex": "2.1.1"
}
},
"strip-json-comments": {
"version": "2.0.1",
"bundled": true
},
"tar": {
"version": "2.2.1",
"bundled": true,
"requires": {
"block-stream": "0.0.9",
"fstream": "1.0.11",
"inherits": "2.0.3"
}
},
"tar-pack": {
"version": "3.4.0",
"bundled": true,
"requires": {
"debug": "2.6.9",
"fstream": "1.0.11",
"fstream-ignore": "1.0.5",
"once": "1.4.0",
"readable-stream": "2.3.3",
"rimraf": "2.6.2",
"tar": "2.2.1",
"uid-number": "0.0.6"
}
},
"tough-cookie": {
"version": "2.3.3",
"bundled": true,
"requires": {
"punycode": "1.4.1"
}
},
"tunnel-agent": {
"version": "0.6.0",
"bundled": true,
"requires": {
"safe-buffer": "5.1.1"
}
},
"tweetnacl": {
"version": "0.14.5",
"bundled": true,
"optional": true
},
"uid-number": {
"version": "0.0.6",
"bundled": true
},
"util-deprecate": {
"version": "1.0.2",
"bundled": true
},
"uuid": {
"version": "3.1.0",
"bundled": true
},
"verror": {
"version": "1.10.0",
"bundled": true,
"requires": {
"assert-plus": "1.0.0",
"core-util-is": "1.0.2",
"extsprintf": "1.3.0"
},
"dependencies": {
"assert-plus": {
"version": "1.0.0",
"bundled": true
}
}
},
"wide-align": {
"version": "1.1.2",
"bundled": true,
"requires": {
"string-width": "1.0.2"
}
},
"wrappy": {
"version": "1.0.2",
"bundled": true
}
}
},
"tweetnacl": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.0.tgz",
@ -814,8 +89,8 @@
"resolved": "https://registry.npmjs.org/ws/-/ws-4.1.0.tgz",
"integrity": "sha512-ZGh/8kF9rrRNffkLFV4AzhvooEclrOH0xaugmqGsIfFgOE/pIz4fMc4Ef+5HSQqTEug2S9JZIWDR47duDSLfaA==",
"requires": {
"async-limiter": "1.0.0",
"safe-buffer": "5.1.1"
"async-limiter": "~1.0.0",
"safe-buffer": "~5.1.0"
}
}
}

View file

@ -19,7 +19,6 @@
"dependencies": {
"blessed": "^0.1.81",
"dblapi.js": "^2.0.0",
"discord-eco": "0.0.10",
"discord.js": "^11.3.1",
"fs": "0.0.1-security",
"git-last-commit": "^0.3.0",

View file

@ -1,4 +1,4 @@
{
"abVersion": "2.9.2",
"abVersion": "2.9.3",
"prefix": "ab:"
}

View file

@ -18,7 +18,6 @@
*
* *************************************/
const Discord = require('discord.js');
const economy = require('discord-eco');
const moment = require('moment');
const readline = require('readline');
const DBL = require("dblapi.js");
@ -111,6 +110,7 @@ client.on('ready', () => {
client.on('guildCreate', guild => {
log(`[i] New guild joined: ${guild.name} (id: ${guild.id}). This guild has ${guild.memberCount} members!`);
message.author.send(':wave: Hello! Thanks for inviting AleeBot!\nFor help type `ab:help`, and if you want to set the prefix `ab:setprefix [prefix]`')
});