From dcec0212db88a775967f975c9c1d32dec7f63ec8 Mon Sep 17 00:00:00 2001 From: Alee Date: Thu, 2 Jan 2020 14:46:06 -0500 Subject: Beta (#20) * 2.12.0 Beta * 2020 changes and tweaked some stuff * remove lock * more copyright update * Service status, updating readme files * readme changes * readme changes x2 * 2.12.0 release --- .gitignore | 10 +- .idea/.gitignore | 3 + .idea/AleeBot.iml | 12 + .idea/discord.xml | 9 + .idea/misc.xml | 6 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .travis.yml | 11 - CONTRIBUTING.md | 8 +- README.md | 8 +- bot_discord.js | 11 +- build/config.gypi | 68 ++++ commands/addquote.js | 8 +- commands/ask.js | 2 +- commands/avatarurl.js | 2 +- commands/balance.js | 2 +- commands/ban.js | 2 +- commands/buy.js | 118 ------ commands/daily.js | 59 --- commands/eval.js | 2 +- commands/git.js | 4 +- commands/help.js | 8 +- commands/info.js | 2 +- commands/interrogate.js | 4 +- commands/invite.js | 4 +- commands/jail.js | 4 +- commands/kick.js | 2 +- commands/leaveguild.js | 2 +- commands/pay.js | 2 +- commands/ping.js | 2 +- commands/poweroff.js | 4 +- commands/purge.js | 2 +- commands/quote.js | 4 +- commands/say.js | 2 +- commands/setprefix.js | 2 +- commands/suggest.js | 8 +- commands/suggestfeature.js | 6 +- commands/uptime.js | 2 +- commands/userinfo.js | 2 +- commands/vtquote.js | 2 +- deprecated/buy.js | 118 ++++++ deprecated/daily.js | 59 +++ package-lock.json | 907 --------------------------------------------- package.json | 12 +- run_linux.sh | 1 + storage/quotes.json | 39 +- storage/quotes.json.bak | 260 +++++++++++++ storage/settings.json | 2 +- test.js | 174 --------- update_dep.bat | 2 +- 50 files changed, 654 insertions(+), 1343 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/AleeBot.iml create mode 100644 .idea/discord.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml delete mode 100644 .travis.yml create mode 100644 build/config.gypi delete mode 100644 commands/buy.js delete mode 100644 commands/daily.js create mode 100644 deprecated/buy.js create mode 100644 deprecated/daily.js delete mode 100644 package-lock.json create mode 100644 storage/quotes.json.bak delete mode 100644 test.js diff --git a/.gitignore b/.gitignore index feb5b9b..fb6a084 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,10 @@ ffprobe.exe .directory userData.sqlite -.vs/slnx.sqlite -.vs/slnx.sqlite-journal -json.sqlite +.vs/slnx.sqlite +.vs/slnx.sqlite-journal +json.sqlite + +yarn.lock + +package-lock.json \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..0e40fe8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ + +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/.idea/AleeBot.iml b/.idea/AleeBot.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/AleeBot.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..59b11d1 --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..28a804d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..7221f33 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 59d3cb3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: node_js -node_js: -- "node" -after_success: - - wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh - - chmod +x send.sh - - ./send.sh success $WEBHOOK_URL -after_failure: - - wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh - - chmod +x send.sh - - ./send.sh failure $WEBHOOK_URL \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 70518ab..576f325 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,11 +1,11 @@ # Contributing to AleeBot If you want to help me make AleeBot you must get NodeJS to make AleeBot work. Include the GPL-3.0 license too and follow the following format when you create a new file: -``` +```js /**************************************** * * [Command/Plugin]: (Command or Plugin) for AleeBot - * Copyright (C) 2018 AleeCorp & (your name here) + * Copyright (C) 2017-2020 Alee Productions & (your name here) * * 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 @@ -40,10 +40,10 @@ exports.help = { # Testing the bot -First get NodeJS then clone this repo then do `npm install` in the AleeBot folder. Now add a file called `tokens.json` then copy and paste this follow code. +First get NodeJS then clone this repo then do `npm install` or `yarn install` in the AleeBot folder. Now add a file called `tokens.json` then copy and paste this follow code. ``` { "abtoken": "token" } ``` -Then get your token from discord and replace `token` with your token and finally run this in linux `./run_linux.sh` or for windows `run_win.bat`. +Then get your token from discord and replace `token` with your token and finally run this in linux `./run_linux.sh` or for windows `run_win.bat` or `npm/yarn start`. diff --git a/README.md b/README.md index 6b1c381..4b8c69e 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@

AleeBot

+

A bot that's made from the Discord.JS api! This bot is made for discord servers.

+

Project by Alee Productions

AleeBot Status Widget - Discord Badge Travis CI Build Status - -

AleeBot: A bot that's made for the discord app

-
-

PROJECT ANNOUNCEMENT: WE WILL NO LONGER DEVELOP THIS.

+ Discord Badge

What features does AleeBot have?

diff --git a/bot_discord.js b/bot_discord.js index 405cd4c..e0f94a1 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -1,7 +1,7 @@ /**************************************** * * AleeBot: Made for discord servers - * 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 @@ -27,7 +27,6 @@ const client = new Discord.Client({ }); const settings = require('./storage/settings.json') const fs = require('fs'); -const db = require('quick.db'); const api = require('./tokens.json'); const dbl = new DBL(api.dbltoken, client); const active = new Map(); @@ -45,7 +44,7 @@ const rl = readline.createInterface({ prompt: '> '.gray }); -console.log(`AleeBot ${settings.abVersion}: Copyright (C) 2018 AleeCorp`.gray); +console.log(`AleeBot ${settings.abVersion}: Copyright (C) 2017-2020 Alee Productions`.gray); console.log('This program comes with ABSOLUTELY NO WARRANTY; for details type `show w\'.'.gray); console.log ('This is free software, and you are welcome to redistribute it'.gray); console.log ('under certain conditions; type `show c\' for details.\n'.gray) @@ -161,6 +160,7 @@ rl.on('line', function(cmd){ break; case "exit": console.log('[i] AleeBot will now exit!'.blue) + client.destroy(); process.exit(0); break; case "help": @@ -210,6 +210,7 @@ client.on('ready', () => { }); }, 200000); client.user.setStatus('online'); + client.channels.find('id', '606602551634296968').send("**AleeBot Status:** AleeBot has started."); rl.prompt(); }); @@ -228,11 +229,11 @@ client.on('guildDelete', guild => { dbl.on('posted', () => { log('Server count posted!'.blue); -}) +}); dbl.on('error', e => { log(`[X | DBL ERROR] ${e}`.red); -}) +}); client.on('message', (msg) => { if (msg.author.bot) return; diff --git a/build/config.gypi b/build/config.gypi new file mode 100644 index 0000000..aff4b3b --- /dev/null +++ b/build/config.gypi @@ -0,0 +1,68 @@ +# Do not edit. File was generated by node-gyp's "configure" step +{ + "target_defaults": { + "cflags": [], + "default_configuration": "Release", + "defines": [], + "include_dirs": [], + "libraries": [] + }, + "variables": { + "asan": 0, + "build_v8_with_gn": "false", + "coverage": "false", + "debug_nghttp2": "false", + "enable_lto": "false", + "enable_pgo_generate": "false", + "enable_pgo_use": "false", + "force_dynamic_crt": 0, + "host_arch": "x64", + "icu_gyp_path": "tools/icu/icu-system.gyp", + "icu_small": "false", + "llvm_version": 0, + "node_byteorder": "little", + "node_debug_lib": "false", + "node_enable_d8": "false", + "node_enable_v8_vtunejit": "false", + "node_experimental_http_parser": "false", + "node_install_npm": "false", + "node_module_version": 67, + "node_no_browser_globals": "false", + "node_prefix": "/usr", + "node_release_urlbase": "", + "node_shared": "false", + "node_shared_cares": "true", + "node_shared_http_parser": "true", + "node_shared_libuv": "true", + "node_shared_nghttp2": "true", + "node_shared_openssl": "true", + "node_shared_zlib": "true", + "node_tag": "", + "node_target_type": "executable", + "node_use_bundled_v8": "true", + "node_use_dtrace": "false", + "node_use_etw": "false", + "node_use_large_pages": "false", + "node_use_openssl": "true", + "node_use_pch": "false", + "node_use_v8_platform": "true", + "node_with_ltcg": "false", + "node_without_node_options": "false", + "openssl_fips": "", + "shlib_suffix": "so.67", + "target_arch": "x64", + "v8_enable_gdbjit": 0, + "v8_enable_i18n_support": 1, + "v8_enable_inspector": 1, + "v8_no_strict_aliasing": 1, + "v8_optimized_debug": 1, + "v8_promise_internal_field_count": 1, + "v8_random_seed": 0, + "v8_trace_maps": 0, + "v8_typed_array_max_size_in_heap": 0, + "v8_use_snapshot": "true", + "want_separate_host_toolset": 0, + "nodedir": "/home/andrew/.node-gyp/11.2.0", + "standalone_static_library": 1 + } +} 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 . - * - * *************************************/ -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 . - * - * *************************************/ -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..f336bed 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 @@ -19,7 +19,9 @@ * *************************************/ 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 client.channels.find('id', '606602551634296968').send("**AleeBot Status:** AleeBot is now going offline."); 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 diff --git a/deprecated/buy.js b/deprecated/buy.js new file mode 100644 index 0000000..e5b8fee --- /dev/null +++ b/deprecated/buy.js @@ -0,0 +1,118 @@ +/**************************************** + * + * 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 . + * + * *************************************/ +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/deprecated/daily.js b/deprecated/daily.js new file mode 100644 index 0000000..0d844a2 --- /dev/null +++ b/deprecated/daily.js @@ -0,0 +1,59 @@ +/**************************************** + * + * 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 . + * + * *************************************/ +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/package-lock.json b/package-lock.json deleted file mode 100644 index 1480897..0000000 --- a/package-lock.json +++ /dev/null @@ -1,907 +0,0 @@ -{ - "name": "aleebot", - "version": "2.0.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "accepts": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", - "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", - "requires": { - "mime-types": "~2.1.18", - "negotiator": "0.6.1" - } - }, - "after": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", - "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=" - }, - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" - }, - "arraybuffer.slice": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", - "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==" - }, - "async-limiter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", - "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" - }, - "backo2": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", - "integrity": "sha1-MasayLEpNjRj41s+u2n038+6eUc=" - }, - "base64-arraybuffer": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", - "integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg=" - }, - "base64id": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/base64id/-/base64id-1.0.0.tgz", - "integrity": "sha1-R2iMuZu2gE8OBtPnY7HDLlfY5rY=" - }, - "better-assert": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", - "integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=", - "requires": { - "callsite": "1.0.0" - } - }, - "better-sqlite3": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-4.1.4.tgz", - "integrity": "sha512-Y11HN9PQ9YUeKFMrmiHyOLAKElk2ATJzBZJvuzNwTMxoS7vUEEyLnUCtcBFqViLwbomr0RQwp2MBy/ogxF50PA==", - "requires": { - "bindings": "^1.3.0", - "integer": "^1.0.5" - } - }, - "bindings": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz", - "integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==" - }, - "blessed": { - "version": "0.1.81", - "resolved": "https://registry.npmjs.org/blessed/-/blessed-0.1.81.tgz", - "integrity": "sha1-+WLWh+wsNpVwrnGvhDJW5tDKESk=" - }, - "blob": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz", - "integrity": "sha1-vPEwUspURj8w+fx+lbmkdjCpSSE=" - }, - "body-parser": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz", - "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=", - "requires": { - "bytes": "3.0.0", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "~1.1.1", - "http-errors": "~1.6.2", - "iconv-lite": "0.4.19", - "on-finished": "~2.3.0", - "qs": "6.5.1", - "raw-body": "2.3.2", - "type-is": "~1.6.15" - } - }, - "bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" - }, - "callsite": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", - "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=" - }, - "colors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.0.tgz", - "integrity": "sha512-EDpX3a7wHMWFA7PUHWPHNWqOxIIRSJetuwl0AS5Oi/5FMV8kWm69RTlgm00GKjBO1xFHMtBbL49yRtMMdticBw==" - }, - "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==" - }, - "component-bind": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz", - "integrity": "sha1-AMYIq33Nk4l8AAllGx06jh5zu9E=" - }, - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" - }, - "component-inherit": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz", - "integrity": "sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM=" - }, - "content-disposition": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", - "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=" - }, - "content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" - }, - "cookie": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", - "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" - }, - "dblapi.js": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/dblapi.js/-/dblapi.js-2.1.0.tgz", - "integrity": "sha512-oz7obgPbQj4MB2sXVXYQ7L+ES6GurVwQoMQ6gP2xPovMIwSZJuyh5QkvjVN+5HiOk3U/SCTcqV9ehWVBMvjmrA==", - "requires": { - "snekfetch": "^4.0.2" - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" - }, - "destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" - }, - "discord.js": { - "version": "11.3.2", - "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.0.0" - }, - "dependencies": { - "snekfetch": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-3.6.4.tgz", - "integrity": "sha512-NjxjITIj04Ffqid5lqr7XdgwM7X61c/Dns073Ly170bPQHLm6jkmelye/eglS++1nfTWktpP6Y2bFXjdPlQqdw==" - } - } - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" - }, - "engine.io": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.2.0.tgz", - "integrity": "sha512-mRbgmAtQ4GAlKwuPnnAvXXwdPhEx+jkc0OBCLrXuD/CRvwNK3AxRSnqK4FSqmAMRRHryVJP8TopOvmEaA64fKw==", - "requires": { - "accepts": "~1.3.4", - "base64id": "1.0.0", - "cookie": "0.3.1", - "debug": "~3.1.0", - "engine.io-parser": "~2.1.0", - "ws": "~3.3.1" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - }, - "ws": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", - "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", - "requires": { - "async-limiter": "~1.0.0", - "safe-buffer": "~5.1.0", - "ultron": "~1.1.0" - } - } - } - }, - "engine.io-client": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.2.1.tgz", - "integrity": "sha512-y5AbkytWeM4jQr7m/koQLc5AxpRKC1hEVUb/s1FUAWEJq5AzJJ4NLvzuKPuxtDi5Mq755WuDvZ6Iv2rXj4PTzw==", - "requires": { - "component-emitter": "1.2.1", - "component-inherit": "0.0.3", - "debug": "~3.1.0", - "engine.io-parser": "~2.1.1", - "has-cors": "1.1.0", - "indexof": "0.0.1", - "parseqs": "0.0.5", - "parseuri": "0.0.5", - "ws": "~3.3.1", - "xmlhttprequest-ssl": "~1.5.4", - "yeast": "0.1.2" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - }, - "ws": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", - "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", - "requires": { - "async-limiter": "~1.0.0", - "safe-buffer": "~5.1.0", - "ultron": "~1.1.0" - } - } - } - }, - "engine.io-parser": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.2.tgz", - "integrity": "sha512-dInLFzr80RijZ1rGpx1+56/uFoH7/7InhH3kZt+Ms6hT8tNx3NGW/WNSA/f8As1WkOfkuyb3tnRyuXGxusclMw==", - "requires": { - "after": "0.8.2", - "arraybuffer.slice": "~0.0.7", - "base64-arraybuffer": "0.1.5", - "blob": "0.0.4", - "has-binary2": "~1.0.2" - } - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" - }, - "express": { - "version": "4.16.3", - "resolved": "https://registry.npmjs.org/express/-/express-4.16.3.tgz", - "integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=", - "requires": { - "accepts": "~1.3.5", - "array-flatten": "1.1.1", - "body-parser": "1.18.2", - "content-disposition": "0.5.2", - "content-type": "~1.0.4", - "cookie": "0.3.1", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "~1.1.2", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.1.1", - "fresh": "0.5.2", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "~2.3.0", - "parseurl": "~1.3.2", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.3", - "qs": "6.5.1", - "range-parser": "~1.2.0", - "safe-buffer": "5.1.1", - "send": "0.16.2", - "serve-static": "1.13.2", - "setprototypeof": "1.1.0", - "statuses": "~1.4.0", - "type-is": "~1.6.16", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" - } - } - }, - "finalhandler": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", - "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.2", - "statuses": "~1.4.0", - "unpipe": "~1.0.0" - } - }, - "forwarded": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", - "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" - }, - "fs": { - "version": "0.0.1-security", - "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", - "integrity": "sha1-invTcYa23d84E/I4WLV+yq9eQdQ=" - }, - "git-last-commit": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/git-last-commit/-/git-last-commit-0.3.0.tgz", - "integrity": "sha1-zHcBrcYpt0f9OzOuXddTp0as6d8=" - }, - "has-binary2": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.3.tgz", - "integrity": "sha512-G1LWKhDSvhGeAQ8mPVQlqNcOB2sJdwATtZKl2pDKKHfpf/rYj24lkinxf69blJbnsvtqqNU+L3SL50vzZhXOnw==", - "requires": { - "isarray": "2.0.1" - } - }, - "has-cors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz", - "integrity": "sha1-XkdHk/fqmEPRu5nCPu9J/xJv/zk=" - }, - "html-entities": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.2.1.tgz", - "integrity": "sha1-DfKTUfByEWNRXfueVUPl9u7VFi8=" - }, - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - } - }, - "iconv-lite": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", - "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==" - }, - "indexof": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", - "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=" - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "integer": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/integer/-/integer-1.0.5.tgz", - "integrity": "sha512-3jqqAHL1gwgl3y0YzFLU0E1fECboNMz9RON8ycqRr3P/cAZN6kcMWWn35UybkYNuB1VjhpSf5WnAqmN0WpKP1Q==", - "requires": { - "bindings": "^1.3.0" - } - }, - "ipaddr.js": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.6.0.tgz", - "integrity": "sha1-4/o1e3c9phnybpXwSdBVxyeW+Gs=" - }, - "isarray": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", - "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=" - }, - "lodash.get": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" - }, - "lodash.set": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" - }, - "lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=" - }, - "long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "m3u8stream": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/m3u8stream/-/m3u8stream-0.2.2.tgz", - "integrity": "sha512-R/xWLXBtVr0m9sPruRL4p9uO01JyHxhcQ4nhqQhVgyT802OZyVW+dn+fWHvTnbfE6YMLc65TksZZut+Mh2OVMQ==", - "requires": { - "miniget": "^1.1.0" - } - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" - }, - "merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" - }, - "mime": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", - "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" - }, - "mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==" - }, - "mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", - "requires": { - "mime-db": "~1.33.0" - } - }, - "miniget": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/miniget/-/miniget-1.2.0.tgz", - "integrity": "sha1-ADY3Oia71S2+aUX85sjAOR6eEkE=" - }, - "moment": { - "version": "2.22.2", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz", - "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=" - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - }, - "nan": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", - "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==" - }, - "negotiator": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", - "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" - }, - "node-opus": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/node-opus/-/node-opus-0.3.0.tgz", - "integrity": "sha512-Hih2TCi/vQUY4D9PBiATT6fluJSjMJPLBfCNgAxJx03v6jT+UlVmXUKR62RXYWyijhXNghsFJMyeBe7MBm3cmQ==", - "requires": { - "bindings": "~1.2.1", - "commander": "^2.9.0", - "nan": "^2.10.0", - "ogg-packet": "^1.0.0" - }, - "dependencies": { - "bindings": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz", - "integrity": "sha1-FK1hE4EtLTfXLme0ystLtyZQXxE=" - } - } - }, - "object-component": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", - "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=" - }, - "ogg-packet": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ogg-packet/-/ogg-packet-1.0.0.tgz", - "integrity": "sha1-RbiFchrI991c8iOR1CEGrlM6xng=", - "optional": true, - "requires": { - "ref-struct": "*" - } - }, - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", - "requires": { - "ee-first": "1.1.1" - } - }, - "os": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/os/-/os-0.1.1.tgz", - "integrity": "sha1-IIhF6J4ZOtTZcUdLk5R3NqVtE/M=" - }, - "parse-ms": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-1.0.1.tgz", - "integrity": "sha1-VjRtR0nXjyNDDKDHE4UK75GqNh0=" - }, - "parseqs": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", - "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", - "requires": { - "better-assert": "~1.0.0" - } - }, - "parseuri": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz", - "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", - "requires": { - "better-assert": "~1.0.0" - } - }, - "parseurl": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", - "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=" - }, - "path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" - }, - "prism-media": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/prism-media/-/prism-media-0.0.2.tgz", - "integrity": "sha512-L6yc8P5NVG35ivzvfI7bcTYzqFV+K8gTfX9YaJbmIFfMXTs71RMnAupvTQPTCteGsiOy9QcNLkQyWjAafY/hCQ==" - }, - "proxy-addr": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.3.tgz", - "integrity": "sha512-jQTChiCJteusULxjBp8+jftSQE5Obdl3k4cnmLA6WXtK6XFuWRnvVL7aCiBqaLPM8c4ph0S4tKna8XvmIwEnXQ==", - "requires": { - "forwarded": "~0.1.2", - "ipaddr.js": "1.6.0" - } - }, - "qs": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", - "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" - }, - "quick.db": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/quick.db/-/quick.db-6.3.1.tgz", - "integrity": "sha512-6SV9kOUqTurrFRMdsGMuk0ZEw/n0YPHDC8aD7HVWh+9ZcNP2B03uHRaRbw8OvRtJpm7OZgzV5HnYYZ/+ptKAaA==", - "requires": { - "better-sqlite3": "^4.1.0", - "express": "^4.16.3", - "lodash.get": "^4.4.2", - "lodash.set": "^4.3.2", - "lodash.sortby": "^4.7.0", - "socket.io": "^2.1.0" - } - }, - "range-parser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", - "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=" - }, - "raw-body": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz", - "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=", - "requires": { - "bytes": "3.0.0", - "http-errors": "1.6.2", - "iconv-lite": "0.4.19", - "unpipe": "1.0.0" - }, - "dependencies": { - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=" - }, - "http-errors": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", - "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", - "requires": { - "depd": "1.1.1", - "inherits": "2.0.3", - "setprototypeof": "1.0.3", - "statuses": ">= 1.3.1 < 2" - } - }, - "setprototypeof": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", - "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=" - } - } - }, - "readline": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/readline/-/readline-1.3.0.tgz", - "integrity": "sha1-xYDXfvLPyHUrEySYBg3JeTp6wBw=" - }, - "ref": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ref/-/ref-1.3.5.tgz", - "integrity": "sha512-2cBCniTtxcGUjDpvFfVpw323a83/0RLSGJJY5l5lcomZWhYpU2cuLdsvYqMixvsdLJ9+sTdzEkju8J8ZHDM2nA==", - "optional": true, - "requires": { - "bindings": "1", - "debug": "2", - "nan": "2" - } - }, - "ref-struct": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ref-struct/-/ref-struct-1.1.0.tgz", - "integrity": "sha1-XV7mWtQc78Olxf60BYcmHkee3BM=", - "optional": true, - "requires": { - "debug": "2", - "ref": "1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "send": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", - "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", - "requires": { - "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "~1.6.2", - "mime": "1.4.1", - "ms": "2.0.0", - "on-finished": "~2.3.0", - "range-parser": "~1.2.0", - "statuses": "~1.4.0" - } - }, - "serve-static": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", - "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.2", - "send": "0.16.2" - } - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" - }, - "snekfetch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-4.0.4.tgz", - "integrity": "sha512-dyycG9fvwtSJqKPfMVOpXt+60qvMGe7vWLwOJDiSJaiAx+hs2EnFChG2bXCWn7ulz+zGzrHdN9/yeEb0YqEPww==" - }, - "socket.io": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.1.1.tgz", - "integrity": "sha512-rORqq9c+7W0DAK3cleWNSyfv/qKXV99hV4tZe+gGLfBECw3XEhBy7x85F3wypA9688LKjtwO9pX9L33/xQI8yA==", - "requires": { - "debug": "~3.1.0", - "engine.io": "~3.2.0", - "has-binary2": "~1.0.2", - "socket.io-adapter": "~1.1.0", - "socket.io-client": "2.1.1", - "socket.io-parser": "~3.2.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - } - } - }, - "socket.io-adapter": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz", - "integrity": "sha1-KoBeihTWNyEk3ZFZrUUC+MsH8Gs=" - }, - "socket.io-client": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.1.1.tgz", - "integrity": "sha512-jxnFyhAuFxYfjqIgduQlhzqTcOEQSn+OHKVfAxWaNWa7ecP7xSNk2Dx/3UEsDcY7NcFafxvNvKPmmO7HTwTxGQ==", - "requires": { - "backo2": "1.0.2", - "base64-arraybuffer": "0.1.5", - "component-bind": "1.0.0", - "component-emitter": "1.2.1", - "debug": "~3.1.0", - "engine.io-client": "~3.2.0", - "has-binary2": "~1.0.2", - "has-cors": "1.1.0", - "indexof": "0.0.1", - "object-component": "0.0.3", - "parseqs": "0.0.5", - "parseuri": "0.0.5", - "socket.io-parser": "~3.2.0", - "to-array": "0.1.4" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - } - } - }, - "socket.io-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.2.0.tgz", - "integrity": "sha512-FYiBx7rc/KORMJlgsXysflWx/RIvtqZbyGLlHZvjfmPTPeuD/I8MaW7cfFrj5tRltICJdgwflhfZ3NVVbVLFQA==", - "requires": { - "component-emitter": "1.2.1", - "debug": "~3.1.0", - "isarray": "2.0.1" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - } - } - }, - "statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" - }, - "to-array": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz", - "integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA=" - }, - "tweetnacl": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.0.tgz", - "integrity": "sha1-cT2LgY2kIGh0C/aDhtBHnmb8ins=" - }, - "type-is": { - "version": "1.6.16", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", - "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.18" - } - }, - "ultron": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", - "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==" - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" - }, - "ws": { - "version": "4.1.0", - "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.0" - } - }, - "xmlhttprequest-ssl": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz", - "integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4=" - }, - "yeast": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/yeast/-/yeast-0.1.2.tgz", - "integrity": "sha1-AI4G2AlDIMNy28L47XagymyKxBk=" - }, - "ytdl-core": { - "version": "0.20.4", - "resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-0.20.4.tgz", - "integrity": "sha512-d+jthiJxSQ6yqCeCwwMggXYOjFSOJsD7ahvAAE1sFW9nVNnsA/roz91SFH1FzaMGS7/y7AnJfhVgpE9i8uYjJQ==", - "requires": { - "html-entities": "^1.1.3", - "m3u8stream": "^0.2.1", - "miniget": "^1.1.0", - "sax": "^1.1.3" - } - } - } -} diff --git a/package.json b/package.json index 7764612..25c377a 100644 --- a/package.json +++ b/package.json @@ -4,18 +4,19 @@ "description": "A chat bot for discord written in discord.js.", "main": "src/bot.js", "scripts": { - "test": "node test.js" + "start": "node bot_discord.js", + "dev": "node bot_discord.js --beta" }, "repository": { "type": "git", - "url": "git+https://github.com/AleeCorp/AleeBot.git" + "url": "git+https://github.com/aleeproductions/AleeBot-JS.git" }, - "author": "AleeCorp", + "author": "Alee Productions", "license": "GPL-3.0", "bugs": { - "url": "https://github.com/AleeCorp/AleeBot/issues" + "url": "https://github.com/aleeproductions/AleeBot-JS/issues" }, - "homepage": "https://github.com/AleeCorp/AleeBot#readme", + "homepage": "https://github.com/aleeproductions/AleeBot-JS#readme", "dependencies": { "blessed": "^0.1.81", "colors": "^1.3.0", @@ -27,7 +28,6 @@ "node-opus": "^0.3.0", "os": "^0.1.1", "parse-ms": "^1.0.1", - "quick.db": "^6.3.1", "readline": "^1.3.0", "ytdl-core": "^0.20.4" }, diff --git a/run_linux.sh b/run_linux.sh index 4fe9b97..fedf8fb 100644 --- a/run_linux.sh +++ b/run_linux.sh @@ -1,4 +1,5 @@ #!/bin/bash +echo 'Welcome to AleeBot!' for (( ; ; )) do git pull diff --git a/storage/quotes.json b/storage/quotes.json index 1391658..78c76a4 100644 --- a/storage/quotes.json +++ b/storage/quotes.json @@ -1,6 +1,7 @@ { "quotes" :[ { + "id": 0, "author": "Victor Tran", "authorImage": "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", "quote": "A letter says a whole video!", @@ -8,6 +9,7 @@ "url": "https://cdn.discordapp.com/attachments/278874966542385152/280566273992032258/Screenshot_20170213-160944.png" }, { + "id": 1, "author" : "Prince Hamlet: William Shakespeare", "authorImage" : "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Shakespeare.jpg/468px-Shakespeare.jpg", "quote" : "To be, or not to be, that is the question", @@ -15,6 +17,7 @@ "url" : "https://en.wikipedia.org/wiki/To_be,_or_not_to_be" }, { + "id": 2, "author" : "Diana Adams / Mitsubishi Mirage", "authorImage" : "https://yt3.ggpht.com/-tQLg1M-3org/AAAAAAAAAAI/AAAAAAAAAAA/-kkOvupMHXQ/s88-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "Dialing 000...\nNOOO!!!", @@ -22,6 +25,7 @@ "url" : "https://youtu.be/jDy57c7Y-4A?t:11m52s" }, { + "id": 3, "author" : "Diana Adams / Mitsubishi Mirage", "authorImage" : "https://yt3.ggpht.com/-tQLg1M-3org/AAAAAAAAAAI/AAAAAAAAAAA/-kkOvupMHXQ/s88-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "You'd have a crash by now!\nPardon?", @@ -29,6 +33,7 @@ "url" : "https://youtu.be/jDy57c7Y-4A?t:15m5s" }, { + "id": 4, "author" : "Ivoponop Pena", "authorImage" : "https://yt3.ggpht.com/-hZJxXIFsfB8/AAAAAAAAAAI/AAAAAAAAAAA/c_mjVjQWvTw/s48-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "i buy tablets for the bubble plastic", @@ -36,6 +41,7 @@ "url" : "https://www.youtube.com/watch?v:AqFDn0TxwH4" }, { + "id": 5, "author" : "The Mill on the Floss: George Eliot", "authorImage" : "https://upload.wikimedia.org/wikipedia/commons/8/81/George_Eliot_at_30_by_François_D%27Albert_Durade.jpg", "quote" : "Don't judge a book by its cover", @@ -43,6 +49,7 @@ "url" : "https://en.wikipedia.org/wiki/Don't_judge_a_book_by_its_cover" }, { + "id": 6, "author" : "tostoday", "authorImage" : "https://yt3.ggpht.com/-gNRclMiHzN4/AAAAAAAAAAI/AAAAAAAAAAA/BNEDEUakd4A/s48-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "I don't know why but Visopsys sounds like a medical condition", @@ -50,6 +57,7 @@ "url" : "https://www.youtube.com/watch?v:5T-vEZeY2v0" }, { + "id": 7, "author" : "Diana Adams", "authorImage" : "https://yt3.ggpht.com/-tQLg1M-3org/AAAAAAAAAAI/AAAAAAAAAAA/-kkOvupMHXQ/s88-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "4 × 1 000 000!? 4 000 000! It's not that hard...", @@ -57,6 +65,7 @@ "url" : "https://youtu.be/5T-vEZeY2v0?t:9m28s" }, { + "id": 8, "author" : "Victor Tran", "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", "quote" : "Yes! I'm not *just* a blue happy face!", @@ -64,6 +73,7 @@ "url" : "https://youtu.be/2E21oad5pWQ" }, { + "id": 9, "author" : "ItsDeckyah", "authorImage" : "https://yt3.ggpht.com/-t70ZI-25A1k/AAAAAAAAAAI/AAAAAAAAAAA/uGrVakleFIM/s48-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "Always remember, don't let those who are bullying you ruin your life, they are out to do just that. And that's probably all they'll do their whole lives", @@ -71,6 +81,7 @@ "url" : "https://www.example.com/" }, { + "id": 10, "author" : "Mighty_Eagle073", "authorImage" : "https://yt3.ggpht.com/-Q5IvX3eEGl8/AAAAAAAAAAI/AAAAAAAAAAA/LspLd8v-PR8/s100-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "Spamming : Damning", @@ -78,6 +89,7 @@ "url" : "https://www.example.com/" }, { + "id": 11, "author" : "Nibble", "authorImage" : "https://yt3.ggpht.com/-SUPNlJ8a7qA/AAAAAAAAAAI/AAAAAAAAAAA/R_I4z7057_w/s100-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "AUTO CORRECF!!!", @@ -85,6 +97,7 @@ "url" : "https://www.example.com/" }, { + "id": 12, "author" : "Alee", "authorImage" : "https://cdn.discordapp.com/avatars/242775871059001344/b8a995d836bbb8529ae35dc12c2289de.png?size:2048", "quote" : "IS THERE A GOOOOOGALIE HERE!!!!", @@ -92,6 +105,7 @@ "url" : "https://youtu.be/Ap6fUlMx90A?t:2m30s" }, { + "id": 13, "author" : "143malliw", "authorImage" : "https://yt3.ggpht.com/-SUPNlJ8a7qA/AAAAAAAAAAI/AAAAAAAAAAA/R_I4z7057_w/s100-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "but i can't write a quote, for I am the quote", @@ -99,6 +113,7 @@ "url" : "https://www.example.com/" }, { + "id": 14, "author" : "AstralMod", "authorImage" : "https://cdn.discordapp.com/avatars/282048599574052864/56d2d99bf763df5a05f5d157108edbdc.png?size:2048", "quote" : "Welcome to the weekly chat chat!", @@ -106,6 +121,7 @@ "url" : "https://www.example.com/" }, { + "id": 15, "author" : "AstralPhaser", "authorImage" : "https://cdn.discordapp.com/avatars/230480971084988417/32f46a9671c6ceedc54b369ea73be178.png?size:2048", "quote" : "Ok the shrimp is now on the barbie", @@ -113,6 +129,7 @@ "url" : "https://media.discordapp.net/attachments/277922530973581312/355882401546764289/d300-123-6379-orton-wp.png" }, { + "id": 16, "author" : "Victor Tran", "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", "quote" : ":joy: It's Cameron's Birthday!\nJoy!!!11!!111!!!!", @@ -120,6 +137,7 @@ "url" : "https://www.example.com/" }, { + "id": 17, "author" : "Steve Jobs", "authorImage" : "http://media.syracuse.com/news/photo/2011/01/9177328-large.jpg", "quote" : "It's really hard to design products by focus groups. A lot of times, people don't know what they want until you show it to them.", @@ -127,6 +145,7 @@ "url" : "https://www.huffingtonpost.com/gregory-ciotti/why-steve-jobs-didnt-list_b_5628355.html" }, { + "id": 18, "author" : "arencllc", "authorImage" : "https://cdn.discordapp.com/avatars/191290329985581069/e4d6ee5c8836f5c79c51611d0ba536eb.png?size:2048", "quote" : "Coding for uwp is as hard as using a UWP program.", @@ -134,6 +153,7 @@ "url" : "https://www.example.com/" }, { + "id": 19, "author" : "FloppyDiskDrive", "authorImage" : "https://cdn.discordapp.com/avatars/228271067821506560/a_0122b441972a6edfa6201ee871fad2a7.gif?size:2048", "quote" : "Victor would be a champ at synchronized thinking.", @@ -141,6 +161,7 @@ "url" : "https://www.example.com/" }, { + "id": 20, "author" : "Tembot", "authorImage" : "https://cdn.discordapp.com/avatars/361202413165608962/fba99664eb0aeec8a47db3a74a2029d5.png?size:2048", "quote" : "Why are u stocking me", @@ -148,6 +169,7 @@ "url" : "https://www.example.com/" }, { + "id": 21, "author" : "PieLover12", "authorImage" : "https://cdn.discordapp.com/avatars/344630031303311371/d84ae603ee53a5b54f7b78bcb4f733f2.png?size:2048", "quote" : "DIE YOU LOOK LIKE TINY GIRL", @@ -155,6 +177,7 @@ "url" : "https://www.example.com/" }, { + "id": 22, "author" : "AstralPhaser", "authorImage" : "https://cdn.discordapp.com/avatars/230480971084988417/32f46a9671c6ceedc54b369ea73be178.png?size:2048", "quote" : "anyway, I've gotta go now, I'll be back in 3 \"year\"s", @@ -162,6 +185,7 @@ "url" : "https://www.example.com/" }, { + "id": 23, "author" : "Victor Tran", "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", "quote" : "Zero electric cars means they don't sell electric cards here", @@ -169,6 +193,7 @@ "url" : "https://www.example.com/" }, { + "id": 24, "author" : "Victor Tran", "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", "quote" : "Unless you're living in like Denland or something", @@ -176,6 +201,7 @@ "url" : "https://www.example.com/" }, { + "id": 25, "author" : "Victor Tran", "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", "quote" : "[goes and cries in a corner]\nWAAA\nWAAAAAAAAAA\nWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -183,6 +209,7 @@ "url" : "https://cdn.discordapp.com/attachments/373884824034869249/374564169678061568/unknown.png" }, { + "id": 26, "author" : "OSFirstTimer", "authorImage" : "https://yt3.ggpht.com/-tQLg1M-3org/AAAAAAAAAAI/AAAAAAAAAAA/-kkOvupMHXQ/s88-c-k-no-mo-rj-c0xffffff/photo.jpg", "quote" : "The most popular version of Linux ever called Abuncho. Abuncho 12.10.", @@ -190,6 +217,7 @@ "url" : "https://youtu.be/PgGbZfR6Vec?t:6s" }, { + "id": 27, "author" : "Vat19", "authorImage" : "https://s3.amazonaws.com/images1.vat19.com/branding/vat19-mobile-logo-2x.png", "quote" : "VAAAAT NINETEEEEEEN! dot com ._.", @@ -197,6 +225,7 @@ "url" : "https://youtu.be/tnvcxBns_uQ?t:3m17s" }, { + "id": 28, "author" : "Steve Jobs", "authorImage" : "http://media.syracuse.com/news/photo/2011/01/9177328-large.jpg", "quote" : "Sometimes life is going to hit you in the head with a brick. Don't lose faith.", @@ -204,6 +233,7 @@ "url" : "https://www.example.com/" }, { + "id": 29, "author" : "Alee", "authorImage" : "https://cdn.discordapp.com/avatars/242775871059001344/b9814f1117027993d46cd5ae9ce2dd48.png?size=2048", "quote" : "Victor finally swore\nAnd I was like \"HOLY SHIT\"", @@ -211,6 +241,7 @@ "url" : "https://www.example.com/" }, { + "id": 30, "author" : "Zac Bowden", "authorImage" : "https://pbs.twimg.com/profile_images/963331874503430144/NTv0Dlaj_400x400.jpg", "quote" : "We can happily move on to Windows 11, Windows 10 is now done and dusted", @@ -218,18 +249,12 @@ "url" : "https://www.example.com/" }, { + "id": 31, "author" : "Victor Tran", "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", "quote" : "WHAT THE - IS THAT\nMAN I JUST CAME BACK TO MY ROOM\nAND THEN I SEE YOU WITH A GUY IN IT", "year" : "2018", "url" : "https://www.example.com/" - }, - { - "author" : "Alee", - "authorImage" : "https://cdn.discordapp.com/avatars/242775871059001344/b9814f1117027993d46cd5ae9ce2dd48.png?size=2048", - "quote" : "Oh man, discord is going to look at my horrible back :notlikeblob:\n..\nPAST", - "year" : "2018", - "url" : "https://www.example.com/" } ] } diff --git a/storage/quotes.json.bak b/storage/quotes.json.bak new file mode 100644 index 0000000..78c76a4 --- /dev/null +++ b/storage/quotes.json.bak @@ -0,0 +1,260 @@ +{ + "quotes" :[ + { + "id": 0, + "author": "Victor Tran", + "authorImage": "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", + "quote": "A letter says a whole video!", + "year": "2017", + "url": "https://cdn.discordapp.com/attachments/278874966542385152/280566273992032258/Screenshot_20170213-160944.png" + }, + { + "id": 1, + "author" : "Prince Hamlet: William Shakespeare", + "authorImage" : "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Shakespeare.jpg/468px-Shakespeare.jpg", + "quote" : "To be, or not to be, that is the question", + "year" : "circa. 1600", + "url" : "https://en.wikipedia.org/wiki/To_be,_or_not_to_be" + }, + { + "id": 2, + "author" : "Diana Adams / Mitsubishi Mirage", + "authorImage" : "https://yt3.ggpht.com/-tQLg1M-3org/AAAAAAAAAAI/AAAAAAAAAAA/-kkOvupMHXQ/s88-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "Dialing 000...\nNOOO!!!", + "year" : "2017", + "url" : "https://youtu.be/jDy57c7Y-4A?t:11m52s" + }, + { + "id": 3, + "author" : "Diana Adams / Mitsubishi Mirage", + "authorImage" : "https://yt3.ggpht.com/-tQLg1M-3org/AAAAAAAAAAI/AAAAAAAAAAA/-kkOvupMHXQ/s88-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "You'd have a crash by now!\nPardon?", + "year" : "2017", + "url" : "https://youtu.be/jDy57c7Y-4A?t:15m5s" + }, + { + "id": 4, + "author" : "Ivoponop Pena", + "authorImage" : "https://yt3.ggpht.com/-hZJxXIFsfB8/AAAAAAAAAAI/AAAAAAAAAAA/c_mjVjQWvTw/s48-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "i buy tablets for the bubble plastic", + "year" : "2016", + "url" : "https://www.youtube.com/watch?v:AqFDn0TxwH4" + }, + { + "id": 5, + "author" : "The Mill on the Floss: George Eliot", + "authorImage" : "https://upload.wikimedia.org/wikipedia/commons/8/81/George_Eliot_at_30_by_François_D%27Albert_Durade.jpg", + "quote" : "Don't judge a book by its cover", + "year" : "1860", + "url" : "https://en.wikipedia.org/wiki/Don't_judge_a_book_by_its_cover" + }, + { + "id": 6, + "author" : "tostoday", + "authorImage" : "https://yt3.ggpht.com/-gNRclMiHzN4/AAAAAAAAAAI/AAAAAAAAAAA/BNEDEUakd4A/s48-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "I don't know why but Visopsys sounds like a medical condition", + "year" : "circa. 2015", + "url" : "https://www.youtube.com/watch?v:5T-vEZeY2v0" + }, + { + "id": 7, + "author" : "Diana Adams", + "authorImage" : "https://yt3.ggpht.com/-tQLg1M-3org/AAAAAAAAAAI/AAAAAAAAAAA/-kkOvupMHXQ/s88-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "4 × 1 000 000!? 4 000 000! It's not that hard...", + "year" : "2014", + "url" : "https://youtu.be/5T-vEZeY2v0?t:9m28s" + }, + { + "id": 8, + "author" : "Victor Tran", + "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", + "quote" : "Yes! I'm not *just* a blue happy face!", + "year" : "2016", + "url" : "https://youtu.be/2E21oad5pWQ" + }, + { + "id": 9, + "author" : "ItsDeckyah", + "authorImage" : "https://yt3.ggpht.com/-t70ZI-25A1k/AAAAAAAAAAI/AAAAAAAAAAA/uGrVakleFIM/s48-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "Always remember, don't let those who are bullying you ruin your life, they are out to do just that. And that's probably all they'll do their whole lives", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 10, + "author" : "Mighty_Eagle073", + "authorImage" : "https://yt3.ggpht.com/-Q5IvX3eEGl8/AAAAAAAAAAI/AAAAAAAAAAA/LspLd8v-PR8/s100-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "Spamming : Damning", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 11, + "author" : "Nibble", + "authorImage" : "https://yt3.ggpht.com/-SUPNlJ8a7qA/AAAAAAAAAAI/AAAAAAAAAAA/R_I4z7057_w/s100-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "AUTO CORRECF!!!", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 12, + "author" : "Alee", + "authorImage" : "https://cdn.discordapp.com/avatars/242775871059001344/b8a995d836bbb8529ae35dc12c2289de.png?size:2048", + "quote" : "IS THERE A GOOOOOGALIE HERE!!!!", + "year" : "2014", + "url" : "https://youtu.be/Ap6fUlMx90A?t:2m30s" + }, + { + "id": 13, + "author" : "143malliw", + "authorImage" : "https://yt3.ggpht.com/-SUPNlJ8a7qA/AAAAAAAAAAI/AAAAAAAAAAA/R_I4z7057_w/s100-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "but i can't write a quote, for I am the quote", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 14, + "author" : "AstralMod", + "authorImage" : "https://cdn.discordapp.com/avatars/282048599574052864/56d2d99bf763df5a05f5d157108edbdc.png?size:2048", + "quote" : "Welcome to the weekly chat chat!", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 15, + "author" : "AstralPhaser", + "authorImage" : "https://cdn.discordapp.com/avatars/230480971084988417/32f46a9671c6ceedc54b369ea73be178.png?size:2048", + "quote" : "Ok the shrimp is now on the barbie", + "year" : "2017", + "url" : "https://media.discordapp.net/attachments/277922530973581312/355882401546764289/d300-123-6379-orton-wp.png" + }, + { + "id": 16, + "author" : "Victor Tran", + "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", + "quote" : ":joy: It's Cameron's Birthday!\nJoy!!!11!!111!!!!", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 17, + "author" : "Steve Jobs", + "authorImage" : "http://media.syracuse.com/news/photo/2011/01/9177328-large.jpg", + "quote" : "It's really hard to design products by focus groups. A lot of times, people don't know what they want until you show it to them.", + "year" : "1998", + "url" : "https://www.huffingtonpost.com/gregory-ciotti/why-steve-jobs-didnt-list_b_5628355.html" + }, + { + "id": 18, + "author" : "arencllc", + "authorImage" : "https://cdn.discordapp.com/avatars/191290329985581069/e4d6ee5c8836f5c79c51611d0ba536eb.png?size:2048", + "quote" : "Coding for uwp is as hard as using a UWP program.", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 19, + "author" : "FloppyDiskDrive", + "authorImage" : "https://cdn.discordapp.com/avatars/228271067821506560/a_0122b441972a6edfa6201ee871fad2a7.gif?size:2048", + "quote" : "Victor would be a champ at synchronized thinking.", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 20, + "author" : "Tembot", + "authorImage" : "https://cdn.discordapp.com/avatars/361202413165608962/fba99664eb0aeec8a47db3a74a2029d5.png?size:2048", + "quote" : "Why are u stocking me", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 21, + "author" : "PieLover12", + "authorImage" : "https://cdn.discordapp.com/avatars/344630031303311371/d84ae603ee53a5b54f7b78bcb4f733f2.png?size:2048", + "quote" : "DIE YOU LOOK LIKE TINY GIRL", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 22, + "author" : "AstralPhaser", + "authorImage" : "https://cdn.discordapp.com/avatars/230480971084988417/32f46a9671c6ceedc54b369ea73be178.png?size:2048", + "quote" : "anyway, I've gotta go now, I'll be back in 3 \"year\"s", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 23, + "author" : "Victor Tran", + "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", + "quote" : "Zero electric cars means they don't sell electric cards here", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 24, + "author" : "Victor Tran", + "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", + "quote" : "Unless you're living in like Denland or something", + "year" : "2017", + "url" : "https://www.example.com/" + }, + { + "id": 25, + "author" : "Victor Tran", + "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", + "quote" : "[goes and cries in a corner]\nWAAA\nWAAAAAAAAAA\nWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "year" : "2017", + "url" : "https://cdn.discordapp.com/attachments/373884824034869249/374564169678061568/unknown.png" + }, + { + "id": 26, + "author" : "OSFirstTimer", + "authorImage" : "https://yt3.ggpht.com/-tQLg1M-3org/AAAAAAAAAAI/AAAAAAAAAAA/-kkOvupMHXQ/s88-c-k-no-mo-rj-c0xffffff/photo.jpg", + "quote" : "The most popular version of Linux ever called Abuncho. Abuncho 12.10.", + "year" : "2012", + "url" : "https://youtu.be/PgGbZfR6Vec?t:6s" + }, + { + "id": 27, + "author" : "Vat19", + "authorImage" : "https://s3.amazonaws.com/images1.vat19.com/branding/vat19-mobile-logo-2x.png", + "quote" : "VAAAAT NINETEEEEEEN! dot com ._.", + "year" : "2017", + "url" : "https://youtu.be/tnvcxBns_uQ?t:3m17s" + }, + { + "id": 28, + "author" : "Steve Jobs", + "authorImage" : "http://media.syracuse.com/news/photo/2011/01/9177328-large.jpg", + "quote" : "Sometimes life is going to hit you in the head with a brick. Don't lose faith.", + "year" : "circa. 2000", + "url" : "https://www.example.com/" + }, + { + "id": 29, + "author" : "Alee", + "authorImage" : "https://cdn.discordapp.com/avatars/242775871059001344/b9814f1117027993d46cd5ae9ce2dd48.png?size=2048", + "quote" : "Victor finally swore\nAnd I was like \"HOLY SHIT\"", + "year" : "2018", + "url" : "https://www.example.com/" + }, + { + "id": 30, + "author" : "Zac Bowden", + "authorImage" : "https://pbs.twimg.com/profile_images/963331874503430144/NTv0Dlaj_400x400.jpg", + "quote" : "We can happily move on to Windows 11, Windows 10 is now done and dusted", + "year" : "2018", + "url" : "https://www.example.com/" + }, + { + "id": 31, + "author" : "Victor Tran", + "authorImage" : "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg", + "quote" : "WHAT THE - IS THAT\nMAN I JUST CAME BACK TO MY ROOM\nAND THEN I SEE YOU WITH A GUY IN IT", + "year" : "2018", + "url" : "https://www.example.com/" + } + ] +} diff --git a/storage/settings.json b/storage/settings.json index cf34201..05117e9 100644 --- a/storage/settings.json +++ b/storage/settings.json @@ -1,4 +1,4 @@ { - "abVersion": "2.11.4", + "abVersion": "2.12.0", "prefix": "ab:" } diff --git a/test.js b/test.js deleted file mode 100644 index 49849f7..0000000 --- a/test.js +++ /dev/null @@ -1,174 +0,0 @@ -/**************************************** - * - * AleeBot: Made for discord servers - * 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 . - * - * *************************************/ -const Discord = require('discord.js'); -const moment = require('moment'); -const readline = require('readline'); -const colors = require('colors'); -const DBL = require("dblapi.js"); -const client = new Discord.Client({ - disableEveryone: true -}); -const settings = require('./storage/settings.json') -const fs = require('fs'); -const db = require('quick.db'); - -const log = message => { - - console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] ${message}`.white); - -}; - -console.log(`AleeBot ${settings.abVersion}: Copyright (C) 2018 AleeCorp`.gray); -console.log('This program comes with ABSOLUTELY NO WARRANTY; for details type `show w\'.'.gray); -console.log ('This is free software, and you are welcome to redistribute it'.gray); -console.log ('under certain conditions; type `show c\' for details.\n'.gray) - -if (process.argv.indexOf("--debug") == -1) { - console.log("Running AleeBot without --debug command line flag. Debug output disabled.\n".yellow); -} else { - console.log('[!] Entering debug mode...'.yellow) - client.on('debug', function(info) { - log(info.gray); - }); - client.on('warn', function(info) { - log(info.red); - }); -} - -client.commands = new Discord.Collection(); -client.aliases = new Discord.Collection(); - -fs.readdir('./commands', (err, files) => { - if (err) console.error(err); - log(`[!] Attempting to load a total of ${files.length} commands into the memory.`.cyan); - files.forEach(file => { - try { - const command = require(`./commands/${file}`); - log(`[!] Attempting to load the command "${command.help.name}".`.cyan); - client.commands.set(command.help.name, command); - command.conf.aliases.forEach(alias => { - client.aliases.set(alias, command.help.name); - log(`[!] Attempting to load "${alias}" as an alias for "${command.help.name}"`.cyan); - }); - } - catch (err) { - log('[X] An error has occured trying to load a command. Here is the error.'.red); - console.log(err.stack); - } - }); - log('[>] Command Loading complete!'.green); - console.log('\n'); -}); - -client.on('ready', () => { - log('[>] AleeBot is now ready!'.green); - log(`[i] Logged in as ${client.user.tag}`.green); - log(`[i] Default Prefix: ${settings.prefix}`.green) - log(`[i] Bot ID: ${client.user.id}`.green); - log(`[i] Token: ${api.abtoken}`.green); - log(`[i] Running version ${settings.abVersion} and in ${client.guilds.size} guilds`.green); - - client.setInterval(function() { - const games = [ - 'AleeBot ' + settings.abVersion + ' | ' + settings.prefix + 'help', - 'Annoying Alee', - 'Coding stuff', - 'Drawing shapes', - 'Fighting AstralMod', - ]; - setInterval(() => { - dbl.postStats(client.guilds.size, client.shards.Id, client.shards.total); - }, 1800000); - db.createWebview('password', 3000); - client.user.setPresence({ - status: 'online', - afk: false, - game: { - type: 0, - name: games[Math.floor(Math.random() * games.length)], - }, - }); - }, 200000); - client.user.setStatus('online'); -}); - -client.on('guildCreate', guild => { - - log(`[i] New guild joined: ${guild.name} (id: ${guild.id}). This guild has ${guild.memberCount} members!`.blue); - -}); - - -client.on('guildDelete', guild => { - - log(`[i] I have been removed from: ${guild.name} (id: ${guild.id})`.red); - -}); - - -client.on('message', (msg) => { - if (msg.author.bot) return; - - let prefixes = JSON.parse(fs.readFileSync("./storage/prefixes.json", "utf8")); - - if(!prefixes[msg.guild.id]){ - prefixes[msg.guild.id] = { - prefixes: settings.prefix - }; - } - - let prefix = prefixes[msg.guild.id].prefixes - - - if (!msg.content.startsWith(prefix)) return; - const args = msg.content.slice(prefix.length).trim().split(/ +/g); - const command = args.shift(); - let cmd; - - if (client.commands.has(command)) { - cmd = client.commands.get(command); - } else if (client.aliases.has(command)) { - cmd = client.commands.get(client.aliases.get(command)); - } - - if (cmd) { - if (cmd.conf.guildOnly == true) { - if (!msg.channel.guild) { - return msg.channel.createMessage('This command can only be ran in a guild.'); - } - } - try { - cmd.run(client, msg, args); - } - catch (e) { - console.error(e); - } - } -}); - -process.on('unhandledRejection', function(err, p) { - -log("[X | UNCAUGHT PROMISE] " + err.stack.red); - -}); - -process.on('uncaughtException', function (exception) { - log(exception.red); -}); diff --git a/update_dep.bat b/update_dep.bat index 26c9f44..a90f20d 100644 --- a/update_dep.bat +++ b/update_dep.bat @@ -1,6 +1,6 @@ @echo off title Installing/Updating Dependencies git pull -npm install --save +yarn install pause exit -- cgit v1.2.3 From c6ef47b7e27488082b34bc6561936b4c08ea53b3 Mon Sep 17 00:00:00 2001 From: Alee Date: Thu, 2 Jan 2020 20:06:56 -0500 Subject: Delete config.gypi --- build/config.gypi | 68 ------------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 build/config.gypi diff --git a/build/config.gypi b/build/config.gypi deleted file mode 100644 index aff4b3b..0000000 --- a/build/config.gypi +++ /dev/null @@ -1,68 +0,0 @@ -# Do not edit. File was generated by node-gyp's "configure" step -{ - "target_defaults": { - "cflags": [], - "default_configuration": "Release", - "defines": [], - "include_dirs": [], - "libraries": [] - }, - "variables": { - "asan": 0, - "build_v8_with_gn": "false", - "coverage": "false", - "debug_nghttp2": "false", - "enable_lto": "false", - "enable_pgo_generate": "false", - "enable_pgo_use": "false", - "force_dynamic_crt": 0, - "host_arch": "x64", - "icu_gyp_path": "tools/icu/icu-system.gyp", - "icu_small": "false", - "llvm_version": 0, - "node_byteorder": "little", - "node_debug_lib": "false", - "node_enable_d8": "false", - "node_enable_v8_vtunejit": "false", - "node_experimental_http_parser": "false", - "node_install_npm": "false", - "node_module_version": 67, - "node_no_browser_globals": "false", - "node_prefix": "/usr", - "node_release_urlbase": "", - "node_shared": "false", - "node_shared_cares": "true", - "node_shared_http_parser": "true", - "node_shared_libuv": "true", - "node_shared_nghttp2": "true", - "node_shared_openssl": "true", - "node_shared_zlib": "true", - "node_tag": "", - "node_target_type": "executable", - "node_use_bundled_v8": "true", - "node_use_dtrace": "false", - "node_use_etw": "false", - "node_use_large_pages": "false", - "node_use_openssl": "true", - "node_use_pch": "false", - "node_use_v8_platform": "true", - "node_with_ltcg": "false", - "node_without_node_options": "false", - "openssl_fips": "", - "shlib_suffix": "so.67", - "target_arch": "x64", - "v8_enable_gdbjit": 0, - "v8_enable_i18n_support": 1, - "v8_enable_inspector": 1, - "v8_no_strict_aliasing": 1, - "v8_optimized_debug": 1, - "v8_promise_internal_field_count": 1, - "v8_random_seed": 0, - "v8_trace_maps": 0, - "v8_typed_array_max_size_in_heap": 0, - "v8_use_snapshot": "true", - "want_separate_host_toolset": 0, - "nodedir": "/home/andrew/.node-gyp/11.2.0", - "standalone_static_library": 1 - } -} -- cgit v1.2.3 From 41971a1b3a7023dfda39d73932f25e91c5d9b49b Mon Sep 17 00:00:00 2001 From: Alee Date: Fri, 3 Jan 2020 01:41:56 -0500 Subject: Update bot_discord.js --- bot_discord.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot_discord.js b/bot_discord.js index e0f94a1..e8d18e1 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -210,7 +210,7 @@ client.on('ready', () => { }); }, 200000); client.user.setStatus('online'); - client.channels.find('id', '606602551634296968').send("**AleeBot Status:** AleeBot has started."); + //client.channels.find('id', '606602551634296968').send("**AleeBot Status:** AleeBot has started."); rl.prompt(); }); -- cgit v1.2.3 From 9519602e73a53931be10438dcd990becea7989d9 Mon Sep 17 00:00:00 2001 From: Alee Date: Sat, 4 Jan 2020 00:02:28 -0500 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b8c69e..07f7027 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

AleeBot

-

A bot that's made from the Discord.JS api! This bot is made for discord servers.

+

An all-in-one bot that's made from the Discord.JS api! This bot is made for discord servers.

Project by Alee Productions

AleeBot Status Widget Discord Badge -- cgit v1.2.3