From 3cdfb88ae316a05ebbdd6009ce21fed9f696ce42 Mon Sep 17 00:00:00 2001 From: rainbownapkin Date: Mon, 6 Dec 2021 19:59:30 -0500 Subject: [PATCH] init commit --- CHANGELOG.md | 43 + LICENSE | 22 + README.md | 95 +- config.example.js | 296 +++ config.js | 296 +++ errors/.gitignore | 3 + index.js | 87 + lib/.gitignore | 4 + lib/api.js | 251 +++ lib/bot.js | 2060 +++++++++++++++++++++ lib/chatcommands.js | 2785 +++++++++++++++++++++++++++++ lib/classes.js | 97 + lib/clicommands.js | 175 ++ lib/customchatcommands-m4c.js | 79 + lib/customchatcommands-toke.js | 145 ++ lib/customchatcommands-v4c.js | 181 ++ lib/customchatcommands.example.js | 52 + lib/db.js | 462 +++++ lib/discordbot.js | 47 + lib/eventhandlers.js | 1148 ++++++++++++ lib/strings.js | 287 +++ lib/utils.js | 792 ++++++++ logs/.gitignore | 3 + package.json | 19 + settings-afterparty.json | 1 + settings.example.json | 1 + start.bat | 28 + start.sh | 25 + 28 files changed, 9406 insertions(+), 78 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 config.example.js create mode 100644 config.js create mode 100644 errors/.gitignore create mode 100644 index.js create mode 100644 lib/.gitignore create mode 100644 lib/api.js create mode 100644 lib/bot.js create mode 100644 lib/chatcommands.js create mode 100644 lib/classes.js create mode 100644 lib/clicommands.js create mode 100644 lib/customchatcommands-m4c.js create mode 100644 lib/customchatcommands-toke.js create mode 100644 lib/customchatcommands-v4c.js create mode 100644 lib/customchatcommands.example.js create mode 100644 lib/db.js create mode 100644 lib/discordbot.js create mode 100644 lib/eventhandlers.js create mode 100644 lib/strings.js create mode 100644 lib/utils.js create mode 100644 logs/.gitignore create mode 100644 package.json create mode 100644 settings-afterparty.json create mode 100644 settings.example.json create mode 100644 start.bat create mode 100644 start.sh diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2b82744 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,43 @@ +# Changelog + - **0.9961a - October 21, 2021** + - Shortened the permission checks for bot.queueMedia, forgot that the permission check function already does most of the work.. + - ..and fixed bot.queueMedia, thought I removed something before pushing it + - **0.996a - October 21, 2021** + - Added bot.queueMedia function to allow the bot to add things to the queue + - This doesn't have any command associated with it, though. It's there if you'd like to make your own commands. There's a little JSDoc thing above the function definition for reference. + - An example for adding a simple temporary YouTube video would be: `bot.queueMedia("end", "youtube_video_url", true);` + - You can also use `"next"` instead of `"end"` to place it next in the queue assuming the bot has permission to. + - Custom embeds should work too. `bot.queueMedia("end", "customembed", true, "