mirror of
https://github.com/Alee14/AleeBot.git
synced 2025-01-22 11:11:46 -05:00
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
This commit is contained in:
parent
c8b8ba0bc5
commit
dcec0212db
48 changed files with 477 additions and 1166 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -15,3 +15,7 @@ userData.sqlite
|
|||
.vs/slnx.sqlite
|
||||
.vs/slnx.sqlite-journal
|
||||
json.sqlite
|
||||
|
||||
yarn.lock
|
||||
|
||||
package-lock.json
|
3
.idea/.gitignore
vendored
Normal file
3
.idea/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
# Default ignored files
|
||||
/workspace.xml
|
12
.idea/AleeBot.iml
Normal file
12
.idea/AleeBot.iml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
9
.idea/discord.xml
Normal file
9
.idea/discord.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DiscordProjectSettings">
|
||||
<option name="show" value="true" />
|
||||
</component>
|
||||
<component name="ProjectNotificationSettings">
|
||||
<option name="askShowProject" value="false" />
|
||||
</component>
|
||||
</project>
|
6
.idea/misc.xml
Normal file
6
.idea/misc.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
</project>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/AleeBot.iml" filepath="$PROJECT_DIR$/.idea/AleeBot.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
11
.travis.yml
11
.travis.yml
|
@ -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
|
|
@ -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`.
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
<div align="center">
|
||||
<h1>AleeBot</h1>
|
||||
<p>A bot that's made from the Discord.JS api! This bot is made for discord servers.</p>
|
||||
<p>Project by Alee Productions</p>
|
||||
<a href="https://discordbots.org/bot/282547024547545109"><img src="https://discordbots.org/api/widget/status/282547024547545109.svg" alt="AleeBot Status Widget" />
|
||||
</a><a href="https://discord.gg/EFhRDqG"><img src="https://img.shields.io/discord/243022206437687296.svg?colorB=7289DA&label=discord" alt="Discord Badge"> </a><a href="https://travis-ci.org/AleeCorp/AleeBot"><img src="https://travis-ci.org/AleeCorp/AleeBot.svg?branch=master" alt="Travis CI Build Status" /></a>
|
||||
|
||||
<p>AleeBot: A bot that's made for the discord app</p>
|
||||
<br>
|
||||
<p>PROJECT ANNOUNCEMENT: WE WILL NO LONGER DEVELOP THIS.</a></p>
|
||||
</a><a href="https://discord.gg/EFhRDqG"><img src="https://img.shields.io/discord/243022206437687296.svg?colorB=7289DA&label=discord" alt="Discord Badge"> </a>
|
||||
</div>
|
||||
<br>
|
||||
<h1>What features does AleeBot have?</h1>
|
||||
|
|
|
@ -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;
|
||||
|
|
68
build/config.gypi
Normal file
68
build/config.gypi
Normal file
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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');
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
};
|
||||
|
|
@ -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)"
|
||||
}
|
||||
],
|
||||
|
|
|
@ -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',
|
||||
};
|
||||
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
};
|
||||
|
|
@ -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!")
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
907
package-lock.json
generated
907
package-lock.json
generated
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
package.json
12
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"
|
||||
},
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
echo 'Welcome to AleeBot!'
|
||||
for (( ; ; ))
|
||||
do
|
||||
git pull
|
||||
|
|
|
@ -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/"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
260
storage/quotes.json.bak
Normal file
260
storage/quotes.json.bak
Normal file
|
@ -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/"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"abVersion": "2.11.4",
|
||||
"abVersion": "2.12.0",
|
||||
"prefix": "ab:"
|
||||
}
|
||||
|
|
174
test.js
174
test.js
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* *************************************/
|
||||
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);
|
||||
});
|
|
@ -1,6 +1,6 @@
|
|||
@echo off
|
||||
title Installing/Updating Dependencies
|
||||
git pull
|
||||
npm install --save
|
||||
yarn install
|
||||
pause
|
||||
exit
|
||||
|
|
Loading…
Reference in a new issue