4fb379474b
Port pagination fix from class-commands, replaced a playing message
2021-03-30 17:00:07 -05:00
162bc7c093
I literally can not fix pagination
2021-03-19 15:10:15 -05:00
07e1fa8dc2
Allow user/reply mentions
2021-03-18 21:24:37 -05:00
9f300f763a
Switch to postgres in docker compose
2021-03-18 11:19:08 -05:00
5d2e2b5274
Upgraded retrotext and DBL posting packages, fixed mention prefixes and DM commands
2021-03-18 09:29:03 -05:00
03ddf5c88c
Fixed mention prefix
2021-03-16 15:45:10 -05:00
b0313bc041
wow thanks eris for not blocking these by default
2021-03-16 10:33:16 -05:00
4c83c55344
supposedly async promises are bad lmao
2021-03-15 22:29:48 -05:00
03aa3b3a2b
Removed Twitter bot
2021-03-08 10:37:43 -06:00
7cf9bcca4e
write stable audio queue code challenge (instantly failed)
2021-03-05 22:13:58 -06:00
4419d73d97
soundplayer crash prevention
2021-03-05 15:32:37 -06:00
f6bec828d7
Fixed database thing
2021-03-05 15:20:15 -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
4d5ef3c24f
Added edit date to help page, fixed image command quote
2021-03-04 22:33:03 -06:00
e7ffa23411
Some assorted fixes
2021-02-07 11:08:55 -06:00
adroitwhiz
7167956a76
Stop using ffprobe to read GIF frame delay ( #57 )
...
* Stop using ffprobe to read GIF delay
* Default image delay to 0
2021-01-26 20:30:04 -06:00
62346cbae4
Rework image API again, replaced many calls to replace with replaceAll
2021-01-18 14:11:28 -06:00
b2b8fd643a
Add proper support for gfycat gifs, attempt to handle image errors "better", added some new activity messages
2021-01-17 20:40:52 -06:00
116ed94ca3
Attempt to fix a crash with pagination reaction removal
2021-01-16 23:46:07 -06:00
adroitwhiz
3de4858b5a
Clean up image API code paths ( #49 )
...
* Document image.js a bit
* Close image.js sockets in all code paths
I'm not sure whether sockets get GC'd when the function returns
* Remove getFormat
It was only called from one place, and the object property names were
quite confusing
* Clean up image.js conditional a bit
I had to write out an entire truth table for this and work it all out
Thinking hard
* Move actual ImageMagick calling into separate file
This gets rid of the weird, brain-melting ouroboros of code that
recurses across threads and processes.
* Reduce amount of getType wrangling
This amounted to an awful lot of dead conditionals after the image
commands were all modified to pass in image types anyway. This has also
led to two different implementations diverging, which causes bugs like
GIF commands applied to non-GIFs erroring instead of providing a
user-friendly message.
* Unify image-runner return type, clarify image type
This allows us to remove the fromAPI parameter from image-runner, and
helps greatly clarify the behavior around image types.
* Deduplicate GIF code, fix "not a GIF" handling
The special "nogif" value is now stored as the image type instead of its
value, as the value must always be a Buffer now--no loosely-typed
shenanigans.
2021-01-09 19:50:29 -06:00
c2bd68263b
Made image API node chooser sort by job amount instead of CPU usage, added soundreload
2021-01-08 12:08:10 -06:00
55da0db479
The image API no longer uses a unique thread for each job (due to image processing using its own thread anyway), added dummy DB driver
2021-01-06 16:10:31 -06:00
9f2bd1fecb
Make the bot itself get the image file type again
2021-01-04 20:53:34 -06:00
87e2e56ef0
Fixed help page generator still attempting to register moderation commands
2021-01-04 14:35:24 -06:00
2a3f84f628
Properly request only the first 1024 bytes when getting image type
2021-01-04 11:10:57 -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
3730691ba2
Final fixes
2020-12-29 20:33:51 -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
7a254a5139
Added load-based api node selection
2020-12-25 20:27:45 -06:00
Tzlil
9ada79d1e5
add parseCommand so it shows me on the esmbot github ( #34 )
2020-12-25 18:14: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
d47c7cacbb
Changed DB config settings
2020-12-18 16:05:43 -06:00
3594c4d353
Added proper config options for PostgreSQL
2020-12-18 15:42:34 -06:00
873b3f59bc
More caching stuff, changed info command a bit
2020-12-18 14:46:59 -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
69d8100f23
Actually made screenshot owner-only, made image API interaction more secure
2020-12-14 12:39:18 -06:00
78ae47dbbb
Handle API errors more gracefully, fixed sharpen, restrict screenshot to the bot owner
2020-12-14 10:58:31 -06:00
a1c24ea30d
Allow sound player to start even if some nodes are down, docker maintenance
2020-12-11 16:46:05 -06:00
0566dca06d
Some tweaks to music player commands, added loop, renamed existing loop command to unfreeze
2020-12-11 13:52:02 -06:00
59dec7f857
Made image functions run on a worker thread when the API is disabled
2020-11-26 11:48:19 -06:00
94b0bc19a4
Added reply support to image detection, added stealth plugin to screenshot, made credits static, more fixes
2020-11-26 09:31:24 -06:00
ca6cffa67c
Some security fixes
2020-11-20 15:16:52 -06:00
ad149156ad
Switched to an image API implementation by Terradice
2020-11-17 08:52:12 -06:00
6761e39d70
A little bit of cleanup
2020-11-09 22:09:57 -06:00
Samuel Hernandez
66cf9dc518
utils/image.js: fix getType on local files
2020-11-07 20:50:32 -05:00
0600cf230f
Caption now supports more unicode characters, more api work, fixed multiple bugs
2020-11-05 15:40:18 -06:00
a03d3a5e79
Fixed GIF commands for real (lol)
2020-10-19 20:24:53 -05:00
5e34e45ac4
Fixed GIF-only commands
2020-10-19 18:48:43 -05:00