Commit graph

402 commits

Author SHA1 Message Date
eca5c58af7
Refactor URL handling in play 2022-01-26 23:02:18 -06:00
7248621048
Specify that image commands also work on GIFs 2022-01-26 12:53:20 -06:00
afa9482ee8
Make some edits to damndaniel 2022-01-26 12:34:26 -06:00
Seif
bbfbbd6e08 Add damn daniel command and ogg file 2022-01-23 20:40:11 -08:00
92926e04a2
Added alias for soos, check if loaded commands end in .js, updated packages 2022-01-23 20:57:11 -06:00
715ed3bb7b
Added quality option to jpeg, adjusted CMakeLists, more tweaks 2022-01-20 22:52:29 -06:00
76fe5b6aa6
Added banner, added host 2022-01-18 13:05:39 -06:00
e1cfbff5a8
Improved pagination, empty value checks, and bigints 2022-01-14 23:26:38 -06:00
72efad0928
Adjusted serverinfo, added message on premature image request end 2022-01-12 19:48:58 -06:00
64462f2202
Revert qrcreate/qrread removal
The impact wasn't too bad in retrospect
2022-01-12 19:47:36 -06:00
25e2ac088f
Replace deprecated image service functions 2022-01-08 13:26:04 -06:00
fd77ace48e
Added node version check, some cleanup 2022-01-07 11:44:18 -06:00
fb0c8ffae1
Handle specific edge case in stop 2022-01-05 18:55:42 -06:00
3234688929
Fixed pause message, handle blank names better 2022-01-05 18:48:08 -06:00
6d1bc63352
Fixed image server sorting, fixed improper imstat job counts 2022-01-05 10:17:59 -06:00
33c00f2954
Update to latest eris-fleet, fixed reload bug 2022-01-04 14:05:24 -06:00
1a76d4d0c4
Fixed avatar arg issue, fixed motivate bottom text 2021-12-30 14:27:18 -06:00
f71f18fc5d
Added grayscale and sepia 2021-12-14 01:16:23 -06:00
6494dcdcb4
Get user info over REST if it's not cached 2021-12-13 17:09:05 -06:00
5acd2b1113
Properly await more functions 2021-12-13 16:09:12 -06:00
5d89d78b44
Merge branch 'image-api-logic' 2021-12-10 00:13:46 -06:00
30bcb7a969
Added extra font support to some other commands, handle overflow on image api 2021-12-06 01:25:38 -06:00
c4ac08f40a
Remove bing results from image 2021-12-03 20:23:04 -06:00
2644ce2d4a
Merge branch 'master' into image-api-logic 2021-12-02 18:13:49 -06:00
fbefd0f10a
Tweak zamn, switch Eris to stable, added playing message, fix ping sending multiple messages 2021-12-02 18:12:42 -06:00
ItsODRJR
98b812e0d3
ZAMN Image Command (#195)
* Add files via upload

* Add files via upload

* Update image.cc

* Add files via upload
2021-12-02 18:05:52 -06:00
fe321e00b4
Some fixes 2021-11-26 23:24:13 -06:00
a98601e2e8
this sucks i hate the british 2021-11-25 17:38:42 -06:00
6689e7d709
Added support for British flags to flag, updated region-flags repo URL 2021-11-25 17:14:41 -06:00
a91215a0c4
Fix embed style 2021-11-21 23:27:08 -06:00
EarTensifier
49a1d434c7 Allow tags with more than 2000 characters to be displayed in embeds 2021-11-21 20:10:36 -08:00
514166c79f
Added remove, fixed reload and broadcast 2021-11-21 14:23:25 -06:00
e179b923f0
Update packages 2021-11-20 00:55:25 -06:00
636857e20f
Fixed pagination issues, merged forceskip into skip 2021-11-16 14:40:17 -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
dx9er
8431a3ab95
Make the play command play the first attachment if there is one and no arguments are given (#174) 2021-11-10 18:14:37 -06:00
fae75db44a
Switched to content.embeds 2021-11-09 22:09:10 -06:00
ef5023b639
Made seek more precise, added notice to readme 2021-11-09 17:42:18 -06:00
0aafe950f7
Added seek 2021-11-09 10:49:17 -06:00
340ef45b17
Allow for multiple bot owners to be set 2021-11-02 19:43:37 -05:00
fa14ce7c35
Added case special arg to meme, added new playing messages 2021-10-29 22:48:50 -05:00
kemal
1cf53f9584
fix up transgender and pirate flag comparisons in flag.js (#170)
solves issue #169
tested on a self-host by my friend
2021-10-28 11:49:09 -05:00
c8d8973d7b
Fixed bots being counted as users in voice channels 2021-10-07 23:58:24 -05:00
d42c67cde2
Added the ability for sticker to check for stickers previously posted in a channel 2021-10-05 16:48:26 -05:00
1b4348fcb3
Removed qrcreate/qrread 2021-09-27 00:47:48 -05:00
264b59ba59
Added fartreverb, added shuffle, fixed reload error messages, fixed some possible bugs 2021-09-20 12:26:40 -05:00
b07c0e389e
Added forceskip, fixed blank title tracks some more 2021-09-19 18:06:09 -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
abfbfe14fe
Added commit hash to info/stats, point readme/info to steel's current twitter 2021-09-16 21:37:36 -05:00
963d5247f6
Added check to make sure help list isn't generated multiple times 2021-09-16 15:34:46 -05:00
8d5cd12a45
oops haha 2021-09-16 00:01:54 -05:00
f62775df61
Check if cluster entry exists before showing memory usage in stats 2021-09-15 23:42:29 -05:00
4caad42240
Added support for youtube playlists, replaced multiple fetch requests with lavacord rest helpers 2021-09-14 19:14:44 -05:00
531d7915bb
Removed some disabled events, filter out more data URIs 2021-08-27 21:38:33 -05:00
f0e19d6ad3
Added sticker, reimplemented reload, removed user count from stats 2021-08-23 00:37:09 -05:00
7009ff339f
Fixed help not working with page generator disabled 2021-08-19 16:49:58 -05:00
cb895900d5
Fixed sqlite, disabled reload 2021-08-19 15:31:51 -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
4684db06e8
Acommodate for possible missing stats 2021-08-17 23:45:41 -05:00
5e8c587c41
Improved tag retrieval, blacklisted a ton of events, fixed skip issue for real 2021-08-14 08:00:16 -05:00
fd573415f1
Remove all references to reactions 2021-08-13 21:36:13 -05:00
e3fca9f4e9
Fixed pagination and typing in DMs 2021-08-13 21:34:44 -05:00
a75c55a1ca
Fixed disabled commands on SQLite 2021-08-13 14:24:26 -05:00
2fbd2e3016
Set tag content limit, fixed new pagination showing buttons on single-page messages 2021-08-13 00:09:30 -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
a75ceb41f2
Move tags to separate table 2021-08-10 20:25:29 -05:00
b2c7a43baa
Convert database handler into service, fix skip issue with sound player 2021-08-10 16:34:29 -05:00
4dc1b9f5a9
Removed link from image title, handle undefined guilds 2021-08-09 11:12:47 -05:00
cbc2918228
Fixed deepfry 2021-08-08 22:46:10 -05:00
14855f2a07
Fixed restart 2021-08-07 15:50:47 -05:00
e44f5ba59d
Added font flag to caption 2021-08-06 22:27:50 -05:00
4ee7f65a04
how do I keep making these mistakes 2021-08-06 15:42:43 -05:00
f2ace6ee52
Fixed durations 2021-08-06 15:39:04 -05:00
ac1242f74b
Revert "well crap"
This reverts commit 2ba46172b8.
2021-08-06 12:06:49 -05:00
2ba46172b8
well crap 2021-08-06 12:05:19 -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
a1e4920c4d
Added image timeout message 2021-08-05 20:41:30 -05:00
b24982a298
my suffering never ends 2021-08-01 07:16:43 -05:00
65c4dbae6a
Reverted the last revert and actually fixed the issues with the timestamp format 2021-08-01 06:42:42 -05:00
ac1ff1e923
Reverted timestamp changes 2021-08-01 06:31:11 -05:00
7b07f82285
Added broadcast 2021-07-31 00:04:38 -05:00
5fa457958b
Added ancient (thanks to ioletsgo for the idea and the image collection) 2021-07-30 12:07:57 -05:00
f77def1c0e
Added permission check to help, increase image safesearch level 2021-07-26 14:43:10 -05:00
7f0f2fb789
Replaced raw date text with Discord formatted dates, added flag info to help, added note to cat 2021-07-23 11:13:43 -05:00
ef0e1bcf95
Fixed getting users 2021-07-17 18:48:07 -05:00
d03967212e
Added more command flags, start documenting command flags, removed args argument from params function 2021-07-14 17:23:50 -05:00
08e49537f9
Added whisper 2021-07-12 16:02:00 -05:00
e725c4d1eb
Merge branch 'fleet' 2021-07-08 21:21:54 -05:00
a91720c598
Some fixes 2021-07-06 07:53:09 -05:00
bbc9e99737
Add tags create as alias for tags add 2021-07-05 20:01:52 -05:00
97050f0cf1
Attempt to move image processing to an eris-fleet service 2021-07-05 19:20:21 -05:00
299663adf8
Port to eris-fleet 2021-07-04 23:15:27 -05:00
0af6533276
Fixed info/stats not properly getting owner 2021-07-03 23:33:28 -05:00
93d2b0e5ce
Renamed gif to raw and fixed message, removed GOOGLE variable from .env.example 2021-07-03 22:05:00 -05:00
ecc6d98aec
Added sqlite database support, connect new argument parser to message handler 2021-07-01 23:42:12 -05:00
2da505a778
Added deepfry, make jpeg work on GIFs 2021-06-29 17:26:22 -05:00
ae8b121d03
Added server/user count to stats, fixed message not showing on tenor/large image errors 2021-06-29 14:10:22 -05:00
41c8be04cf Added gif, detect if any image servers are disconnected 2021-06-28 17:59:05 -05:00
4cdd59dfcd
Made youtube use searx for results, fall back to dummy db when none is specified, added cluster to stats, more QOL changes 2021-06-26 15:56:02 -05:00
b7a847b612
Add instance owner info to stats/info commands 2021-06-21 17:12:17 -05:00
4d3e1655e0
A little bit more image work 2021-06-18 19:10:13 -05:00
52d91b752d
Added snapchat, prevent image queue packet from being sent twice 2021-06-14 22:03:48 -05:00
5afff62677
Fixed speed issue 2021-06-09 22:50:14 -05:00
03ed19d239
how did I overlook this 2021-05-24 14:31:44 -05:00
97012f4087
Eh, why not 2021-05-23 22:46:36 -05:00
3935a7490a
Switched image result provider from DuckDuckGo to Searx 2021-05-22 11:05:21 -05:00
96f8ec6353
Make soundreload apply to all clusters 2021-05-22 10:10:42 -05:00
b4320303ce
Fixed youtube 2021-05-17 10:13:29 -05:00
787eb347f6
Changed Tenor API url, account for ratelimits, switch Member#permission to Member#permissions 2021-05-14 09:31:12 -05:00
ad87722fd2
Changed blurple to reflect the new Discord rebrand 2021-05-13 17:19: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
e8834c072a Properly handle closing an image server connection, switch some "on" instances to "once" 2021-05-06 16:40:05 -05:00
11ab4ad1d4 Fixed flag returning an error on a nonexistent flag 2021-05-06 15:17:34 -05:00
073c337d3d Added uncaption, removed unncecessary log 2021-05-04 16:28:34 -05:00
e5d9388952 Added command counts to Prometheus metrics 2021-05-03 08:49:55 -05:00
56113a1cf8 Fixed some DM command issues, made reload and restart use IPC 2021-04-30 12:31:53 -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
b7fe04c82b Added reddit, catch any errors in native functions 2021-04-26 09:47:03 -05:00
7db1aa880c Added argument support to slow/speed, made video detection also detect images 2021-04-19 20:15:32 -05:00
e00671f0d5 Added argument to freeze for setting the end frame, speed is now aware of variable framerates 2021-04-19 11:04:24 -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
888660434b Changed database used by cat to a custom, dm4catbot-derived database 2021-04-16 17:35:27 -05:00
d1036eb369 Added kinemaster 2021-04-15 17:55:05 -05:00
51e06c256a Some fixes 2021-04-12 16:54:44 -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
2d5eef2c8c Replaced retro with New And Improved™ variant 2021-03-31 21:04:58 -05:00
Lewis Crichton
3dd7fa4ed8
Make processing emoji an environment variable (#83) 2021-03-19 10:26:17 -05:00
5d2e2b5274 Upgraded retrotext and DBL posting packages, fixed mention prefixes and DM commands 2021-03-18 09:29:03 -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
03aa3b3a2b Removed Twitter bot 2021-03-08 10:37:43 -06:00
8c760a527d Removed status section from userinfo 2021-03-08 09:10:31 -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
a8db0a1204 Fixed qrread not being properly sanitized 2021-03-04 08:42:45 -06:00
adroitwhiz
dabf02eb5f
Fix flag command erroring when no flag provided (#67) 2021-02-25 15:10:03 -06:00
443da54298 Updated to Eris 0.14, removed spam, removed unused font 2021-01-27 22:57:13 -06:00
31712edf79 Added YouTube API rate limit message 2021-01-27 11:17:11 -06:00
62346cbae4 Rework image API again, replaced many calls to replace with replaceAll 2021-01-18 14:11:28 -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
9f2bd1fecb Make the bot itself get the image file type again 2021-01-04 20:53:34 -06:00
9ab13f5389 Added "sphere" as an alias for globe 2021-01-03 12:04:41 -06:00
c4c358dcd9 Fixed pango test escape issues 2020-12-30 11:37:41 -06:00
ae1406b518 *final* final changes 2020-12-29 22:26:45 -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
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