Commit graph

21 commits

Author SHA1 Message Date
murm
db9b70bf66 initial update 2023-03-15 10:09:09 -04:00
5ba0336837
Simplify flag, fix togif crash, update license 2023-01-03 22:03:51 -06:00
bjcscat
330dd67063
Partial natives rework (#325)
* natve code reworking

* Whoops

* remove old code

* Make gc callback instead of do thing that causes segfault
2022-11-27 13:03:07 -06:00
1cafef76d7
Added nowplaying alias, update lava-xm-plugin, only require natives when processing images locally, reimplement cache limit 2022-08-22 12:44:25 -05:00
da6f95aad8
Migrate to undici, try new method for getting image size/type/data 2022-08-11 11:46:56 -05:00
6bf0537c29
Add initial Azure Functions support, clean up gitignore 2022-04-17 10:40:56 -05:00
5b2b3549b4
Small tweaks 2022-03-09 13:30:18 -06:00
bjcscat
b17611917f Add support for string gravity + speechbubble command 2022-03-08 23:24:48 +00:00
6aa1bf7ff6
Some image fixes, updated packages 2022-01-29 15:04:41 -06:00
SwanX1
ee01986479
Minor code improvements in image-runner.js 2022-01-16 23:04:30 +02:00
2db49e65e0
Check for the article embed type 2022-01-15 10:47:41 -06:00
39ebae8cd7
Refactor image job object, fixed image commands that don't require an existing image 2021-12-09 22:31:52 -06:00
e179b923f0
Update packages 2021-11-20 00:55:25 -06: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
79bc36759c
Added support for DEBUG environment variable with image runner, make freeze use a similar method to speed 2021-05-13 17:11:13 -05:00
61758fa3bb
Pass an image buffer into the native functions instead of a URL 2021-05-11 14:25:02 -05:00
6cecd4b9d6 Make all native image functions synchronous 2021-04-24 17:54:47 -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
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
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
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