Commit graph

177 commits

Author SHA1 Message Date
c5fc1d0b0f
Properly await message deletes, update packages 2021-12-13 15:46:08 -06:00
14046a811a
Add config option to make the bot stay in voice chat 2021-12-11 23:44:49 -06:00
536b931ead
Updated packages, take advantage of new eris-fleet features, fixed issue where messages wouldn't send 2021-11-12 17:21:43 -06:00
fae75db44a
Switched to content.embeds 2021-11-09 22:09:10 -06:00
f5a0fa5f7c
Catch image load warnings, set message limit to 50, don't crash the bot if .git is missing 2021-10-23 13:58:19 -05:00
ab3ae7b9c6
Adapt max image file size to server boost tier, fixes #165 2021-10-15 11:05:58 -05:00
c8d8973d7b
Fixed bots being counted as users in voice channels 2021-10-07 23:58:24 -05:00
59e63065f1
Catch more message deletes 2021-09-21 19:15:19 -05:00
264b59ba59
Added fartreverb, added shuffle, fixed reload error messages, fixed some possible bugs 2021-09-20 12:26:40 -05:00
3517826f46
Set max skip vote amount based on number of users in voice chat, remove skip votes when session ends 2021-09-19 17:49:02 -05:00
c59a0bf0c4
Pause music when everyone leaves the voice channel, try a slightly different approach to voice events 2021-09-13 17:24:15 -05:00
ae2ebe0337
Port to ESM modules (haha funny), removed cache request, many other changes that I forgot about 2021-08-19 09:19:14 -05:00
516570efe4
Add timeouts to many projectlounge requests, fixed command bug 2021-08-18 08:07:55 -05:00
a75c55a1ca
Fixed disabled commands on SQLite 2021-08-13 14:24:26 -05:00
9f36a79a2b
Added command, reverted database service split 2021-08-12 22:28:09 -05:00
da709c485f
Make pagination use interactions instead of reactions, filter out base64 images in image 2021-08-12 18:45:17 -05:00
b2c7a43baa
Convert database handler into service, fix skip issue with sound player 2021-08-10 16:34:29 -05:00
9a1fd3b6f3
Removed unnecessary checks at beginning of messageCreate 2021-08-09 19:09:32 -05:00
4dc1b9f5a9
Removed link from image title, handle undefined guilds 2021-08-09 11:12:47 -05:00
b6f28ece76
Temprarily disable reply on pagination, made a small optimization to prefix handler 2021-08-07 15:28:39 -05:00
e4e633beff
Allow owner to use music commands in production, make cache request to 8MB images 2021-08-06 12:03:44 -05:00
77ca0fd344
Improved error handling 2021-07-31 13:36:00 -05:00
bc2826ccbb
Removed quote detection from normal arguments 2021-07-08 21:03:19 -05:00
299663adf8
Port to eris-fleet 2021-07-04 23:15:27 -05:00
ecc6d98aec
Added sqlite database support, connect new argument parser to message handler 2021-07-01 23:42:12 -05:00
0fbc165154
Delete unfinished jobs on connection close 2021-06-27 17:06:52 -05:00
a0a32c31b9
Switched image API from raw TCP to websockets, removed selective image reading code 2021-06-18 00:10:11 -05:00
bd221d5909
Make command error logs more verbose, image server connection/job error handling changes 2021-06-01 20:27:28 -05:00
364d8bf006 Made command outputs post as replies, fixed status changing on cluster restart, extra stuff 2021-05-11 11:12:01 -05:00
e0e0c9c7d4 More hotfixing 2021-04-29 19:03:03 -05:00
19922858f2 Fixed some issues regarding eris-sharder and newer eris versions 2021-04-29 16:56:32 -05:00
f21cb21d9c Removed error/warn events (handled by eris-sharder) 2021-04-19 10:12:32 -05:00
c67499af9d Added initial support for detecting videos, prevent music messages from showing on soundboard commands, fixed(?) permission checking 2021-04-19 09:31:39 -05:00
3f1b36670b Fixed voice channel switching issue 2021-04-15 13:59:57 -05:00
e209199134 Handle cases where error message can't be sent, added intents, disable private channels collection 2021-04-14 19:57:35 -05:00
b3d3df2cb7 Separate args with any whitespace 2021-04-14 16:42:18 -05:00
40223ec8b5
Class commands, improved sharding, and many other changes (#88)
* Load commands recursively

* Sort commands

* Missed a couple of spots

* missed even more spots apparently

* Ported commands in "fun" category to new class-based format, added babel eslint plugin

* Ported general commands, removed old/unneeded stuff, replaced moment with day, many more fixes I lost track of

* Missed a spot

* Removed unnecessary abort-controller package, add deprecation warning for mongo database

* Added imagereload, clarified premature end message

* Fixed docker-compose path issue, added total bot uptime to stats, more fixes for various parts

* Converted image commands into classes, fixed reload, ignore another WS event, cleaned up command handler and image runner

* Converted music/soundboard commands to class format

* Cleanup unnecessary logs

* awful tag command class port

* I literally somehow just learned that you can leave out the constructor in classes

* Pass client directly to commands/events, cleaned up command handler

* Migrated bot to eris-sharder, fixed some error handling stuff

* Remove unused modules

* Fixed type returning

* Switched back to Eris stable

* Some fixes and cleanup

* might wanna correct this

* Implement image command ratelimiting

* Added Bot token prefix, added imagestats, added running endpoint to API
2021-04-12 11:16:12 -05:00
5d2e2b5274 Upgraded retrotext and DBL posting packages, fixed mention prefixes and DM commands 2021-03-18 09:29:03 -05:00
c0332673bf well crap 2021-03-16 15:59:59 -05:00
03ddf5c88c Fixed mention prefix 2021-03-16 15:45:10 -05:00
74baa29684 Send unsanitized content to commands via content parameter, fixed emote command, removed another async promise 2021-03-16 13:24:21 -05:00
f2e81b7eeb Only check permissions on current channel 2021-03-12 14:42:07 -06:00
03aa3b3a2b Removed Twitter bot 2021-03-08 10:37:43 -06:00
4fac887e22 Pass cleaned message content to commands, could break things but idk 2021-03-05 21:59:13 -06:00
f0c685d8c4 Make soundreload more useful 2021-03-05 15:13:54 -06:00
2499fb2a3b Don't rely on lavacord eris helper package, another pagination fix attempt, make cowsay use a different lib 2021-03-05 12:06:22 -06:00
45bb53d521 Ping the user when a response takes over 3 minutes, added config option for specifying a custom 8mb image domain 2021-03-05 12:03:17 -06:00
443da54298 Updated to Eris 0.14, removed spam, removed unused font 2021-01-27 22:57:13 -06:00
dd114e27b5 Added more activity messages, updated packages, allow any public Lavalink instance to be used via the "local" parameter, added clearer error message for API timeouts 2021-01-04 10:29:18 -06:00
8a2d4e6669 Fixed image API request closing prematurely, disabled music commands in production, various fixes regarding direct messages, fixed reply image checking, and removed yoda 2020-12-26 12:17:10 -06:00
9b4861ae4a Fixed database stop crash, made playing status use the current bot username 2020-12-18 18:57:41 -06:00
5fa5f21289 Moved database driver-specific code to their own files 2020-12-18 18:50:25 -06:00
ef945adf09 Added support for using both MongoDB and PostgreSQL, changed image api timeouts, removed all moderation commands 2020-12-17 20:32:19 -06:00
620212257d Changed 8MB image embed 2020-12-07 20:42:36 -06:00
0600cf230f Caption now supports more unicode characters, more api work, fixed multiple bugs 2020-11-05 15:40:18 -06:00
cf5c649384 Heavy work on the image detection code, fixed mention prefixes not being properly registered 2020-10-18 16:53:35 -05:00
6e8473d784 Only delete messages if they exist, removes errors in console 2020-09-23 14:12:39 -05:00
bc59550625 Fixed commands in DMs 2020-09-13 15:49:18 -05:00
719fdf5871 Changed include dirs, updated readme/packages, use more efficient command checking, fixed reverse 2020-09-12 13:57:25 -05:00
7f5c6ab8f9 Fixed some commands not running 2020-09-10 13:31:41 -05:00
0bd8905829 Don't read database on every message (why the hell did i think this was even remotely good design) 2020-09-09 20:14:01 -05:00
1c686016bb Allow changing default prefix in config 2020-09-03 17:48:28 -05:00
e0d7ea7a57 Added ability to disable tags for a server, added way to remove warnings 2020-09-03 14:26:39 -05:00
a6137436d2 The bot can now actually interact with the API, fixed issues relating to leaving voice channels 2020-09-01 21:52:12 -05:00
c471bd8af8 Preliminary DM support, update URLs to point to new repo link 2020-09-01 17:10:19 -05:00
95846d32d4 Fixed some issues with the sound player, search images in original message first, add max limit to dice 2020-08-16 11:48:37 -05:00
ba664fd19a Reject feedback messages if they contain links, increased image request timeout, some other fixes 2020-08-13 08:47:41 -05:00
70c4ff298f Added command usage count to help, remove nonexistent commands from database, add build method to package.json 2020-07-29 18:06:34 -05:00
f9c8d6b26d A bit of cleanup 2020-07-28 09:38:55 -05:00
6eee7c6058 Moved back to MongoDB, added some extra flags to flag 2020-07-26 19:52:13 -05:00
0ebd0a0cee Added crop and loop, fixed database not properly adding new commands 2020-07-23 17:43:39 -05:00
9555406229 Final Magick++ ports, removed gm module 2020-07-23 15:49:34 -05:00
950ce00a80 Added extra pm2 and sigint handling 2020-07-21 20:29:32 -05:00
f26bade555 why do I keep missing things 2020-07-16 19:54:03 -05:00
617cf01090 Allow server admins to delete tags, don't run ready functions more than needed 2020-07-16 09:28:09 -05:00
2a67b76169 Migrated database to PostgreSQL, updated packages 2020-07-10 12:07:24 -05:00
0760136ded Attempt workaround for Twitter errors crashing the bot, fixed lavalink memory leak 2020-07-07 14:28:16 -05:00
59c2c230fb Added initial music commands and category, moved lavalink node config to separate file 2020-07-06 15:19:30 -05:00
111b177968 Moved gm extensions and lavalink connection to start of ready, removed unused variable in stats 2020-07-02 10:33:27 -05:00
7dbf6fdf2a Automatically disable voice commands if Lavalink is missing 2020-06-27 16:34:31 -05:00
0cc80da8b6 Huge sound player overhaul using Lavalink, added boom, removed prunejuice, boat, and bus, re-encoded audio files with ffmpeg 2020-06-27 12:18:26 -05:00
2f1c37579e Added flag, fixed the command count issue (for real) 2020-06-18 14:02:35 -05:00
f3dd98c293 (hopefully) fixed command count 2020-05-31 15:01:17 -05:00
ba07757d1d Added automatic process to delete stale database entries 2020-05-20 13:24:57 -05:00
de672a341f hotfix 2020-04-26 17:17:32 -05:00
c65a8115aa Added count, added some new playing lines, fixed security issue with hackban 2020-04-26 16:55:33 -05:00
88dd0c6172 Use lean() method on read-only database calls 2020-04-24 15:25:27 -05:00
881dfd34d7 Added toggle for temporary image storage 2020-04-23 21:14:03 -05:00
97c5ee8c05 Added fallback for large images, fixed corrupt xmp profile issue, updated packages 2020-04-20 15:52:22 -05:00
f6425dc294 Refactored image/embed handling to prepare for something, don't use fuzz with sonic 2020-04-12 14:51:48 -05:00
628a002205 Added channel, allow using a mention on hackban and snowflake 2020-04-09 21:40:52 -05:00
6dfba281ef Fixed gifvs not having proper delay 2020-03-15 12:54:51 -05:00
446ba109c7 Optimize checks in messageCreate event 2020-03-14 18:22:09 -05:00
93a7b3fa0d Replace twit with my own module, node-tweet 2020-03-14 18:03:45 -05:00
782073c203 Fixed issue with warns not properly registering 2020-03-05 14:42:32 -06:00
0ff784089b Optimized some things, fixed ifunny not properly appending to image 2020-03-02 17:10:29 -06:00
903130dce1 Added warn 2020-02-27 09:49:32 -06:00
a839b3b9c8 Removed unnecessary logs, added alternative URL for screenshot 2020-02-26 14:58:38 -06:00
b7aeacdf66 Removed format argument from jpeg, modified bufferPromise function a bit 2020-02-26 13:23:18 -06:00
ac47394ca2 Fixed empty buffer issue 2020-02-25 19:57:44 -06:00