Commit graph

394 commits

Author SHA1 Message Date
murm
52ba089e43 me when discord 2023-03-15 10:55:29 -04:00
murm
db9b70bf66 initial update 2023-03-15 10:09:09 -04:00
c6dd21addd
Fix pagination jump setting a NaN page number 2023-01-07 17:01:23 -06:00
5ba0336837
Simplify flag, fix togif crash, update license 2023-01-03 22:03:51 -06:00
47b2d9fcff
Finish converting natives 2022-12-28 00:20:17 -06:00
5a4553e17c
Fix comma escape 2022-12-18 19:19:53 -06:00
14d5965caa
god dammit 2022-12-12 11:36:08 -06:00
samhza
ed25116851
Assorted db changes (#333)
* postgres: use transaction-scoped sql for upgrade

* database: combine fixGuild and addGuild into getGuild

* postgres, sqlite: simplify upgrade()

* allow running commands in DMs without prefix

this functionality was broken in
16095c0256 but is now fixed

* allow running esmBot without a database

Before this change, the only way to run esmBot without a database is to use the
dummy database driver which is broken but fails silently. THis can lead to a
confusing user experience. For instance, using `&command disable` with the
dummy database driver will tell you that the command has been disabled even
though it has not been.

This change adds support for running esmBot with no database driver by leaving
the DB= config option empty, and explicitly telling the user that some
functionality is now unavailable rather than failing silently like the dummy
driver.

* remove dummy database driver
2022-12-12 11:15:10 -06:00
345b525188
Properly ack Select Image requests, add client key to Tenor request, update packages 2022-12-12 11:07:58 -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
samhza
c00d518f6e
simplify postgres and sqlite database initialization, remove psqlinit.sh (#331)
Before this change, uninitialized databases would be initialized with the old
schema and then migrated to the latest version. After this change, unintialized
databases are initizialized with the latest database schema immediately, without
having to run any of the migrations. This change has no effect on existing
databases.

Before this change, Postgres database initialization was done manually using
utils/psqlinit.sh. This is inconsistent with SQLite, which the bot initializes
itself. It also requires shell access to the server running the Postgres
instance, which means it cannot be used on managed Postgres instances. After
this change, the bot initializes Postgres databases as it does with SQLite, and
utils/psqlinit.sh has been removed as it is now unecessary.
2022-11-26 15:31:00 -06:00
1830db6282
Remove Top.gg integration 2022-11-26 15:27:59 -06:00
3ed65c3c86
Update readme, attempt some things, update packages 2022-11-26 13:31:40 -06:00
ede7b65b6a
Fixed stats 2022-11-01 01:41:45 -05:00
21f3047ad4
please work god dammit 2022-10-31 13:09:21 -05:00
b098499c67
oh god help 2022-10-31 12:49:19 -05:00
c3b97c121e
Properly detect PM2 manager process instead of using a hardcoded ID 2022-10-30 23:16:03 -05:00
fa3d7b3772
Fix PostgreSQL broadcast column upgrade, make some changes to followup message handling 2022-10-30 00:17:36 -05:00
a67c2b9884
sqlite multi-statement upgrade fix 2022-10-25 15:38:20 -05:00
5d679dbb7a
Make broadcasts persistent, fix Postgres database upgrades, fix image slash commands with text not working in DMs 2022-10-25 12:37:55 -05:00
5d8ecbf90a
Attempt to fix sound player disconnect issue 2022-10-24 22:03:57 -05:00
8144a7a115
Fix image slash commands with text input 2022-10-24 17:12:10 -05:00
3662a2e51d
Refactor message prefix handling, lessen reliance on member caching, fix adding guilds in postgresql 2022-10-23 20:27:32 -05:00
6fdc345f47
Fix imagedetect on a single reply message 2022-10-12 22:23:16 -05:00
e5fd71b388
Remove "requires" command field, overhaul Lavalink connection, fix message objects not being properly sent 2022-10-11 10:46:10 -05:00
4309f358e7
Fix command count table not being properly registered 2022-10-10 17:23:16 -05:00
a0bb11dabb
Update psqlinit.sh 2022-10-10 16:13:51 -05:00
ba46701589
Added option to disable YouTube support 2022-10-10 11:53:45 -05:00
7c9f22cd34
Fix interaction response object issue, fix soundplayer voice state detection 2022-10-04 13:23:23 -05:00
ab2d6e2ef0
Implement pm2 shard management 2022-10-04 12:10:06 -05:00
cfb5cb506f
Properly log Lavalink connection errors, fix large file fallback message, actions changes 2022-10-02 13:28:43 -05:00
cee458cef1
Fix sqlite guild registration, fix starting status 2022-09-28 23:11:05 -05:00
c70f86607f
Fixes for thread channels, voice commands, image handling, and snowflake, update packages 2022-09-27 14:46:07 -05:00
d68ff19e4d
Fix playing statuses, fix large image posting, fix music slash command 2022-09-24 11:26:56 -05:00
49a60bba96
Fix some permission checks, fix avatar URLs 2022-09-23 23:50:59 -05:00
888f2f8b4a
Initial Oceanic port (still unfinished), update packages, remove serverinfo and userinfo 2022-09-23 22:25:16 -05:00
bf90ae108a
info/stats fixes 2022-09-23 17:41:28 -05:00
7a88f6b693
Fix emoji font stack, change sonic font, fix job ID not being sent on jobs that don't require image input, some error handling fixes 2022-09-23 17:24:28 -05:00
4f66519aa7
Load fonts directly from assets directory, fix image buffer issues 2022-09-22 23:44:54 -05:00
4d3e34cd8f
Fix stat counts 2022-09-21 11:31:39 -05:00
113f790888
Move Prometheus metrics 2022-09-21 10:18:59 -05:00
db0decf71a
Replace eris-fleet with a pm2-based cluster system, overhaul image handling, removed azure image api 2022-09-21 00:05:03 -05:00
121615df63
Replace pg with postgres, add swirl alias, await ping edit, added debug scripts to package.json 2022-09-12 16:45:32 -05:00
3eae453de3
Centralize text encoding 2022-09-10 23:48:44 -05:00
20f4849fee
Convert unnecessary async functions 2022-09-10 23:18:44 -05:00
239d69d6d3
Refactor command reloading 2022-09-10 23:06:40 -05:00
86f6811e6e
Fix message command counts 2022-09-10 17:51:00 -05:00
e474d838b0
Allow classic commands in DMs even when disabled, add channel name to music end message, better check for API_TYPE, update docs 2022-09-09 14:55:03 -05:00
6b1991a200
Fix Tenor .gif links 2022-09-06 16:25:13 -05:00
603e732704
Remove creation date from mkdocs, added ability to limit owner commands to certain server, don't append help command to end of playing message if classic commands are disabled, fix interaction upload size 2022-09-01 10:40:55 -05:00