Commit Graph

23 Commits

Author SHA1 Message Date
Essem d36ff74326
why did it take me 3 goddamn months to realize this was missing 2023-03-09 10:10:52 -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
Essem cee458cef1
Fix sqlite guild registration, fix starting status 2022-09-28 23:11:05 -05:00
Essem 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
Essem 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
Essem 9f36a79a2b
Added command, reverted database service split 2021-08-12 22:28:09 -05:00
Essem b2c7a43baa
Convert database handler into service, fix skip issue with sound player 2021-08-10 16:34:29 -05:00
Essem 299663adf8
Port to eris-fleet 2021-07-04 23:15:27 -05:00
TheEssem 19922858f2 Fixed some issues regarding eris-sharder and newer eris versions 2021-04-29 16:56:32 -05:00
Essem 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
TheEssem 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
TheEssem 0600cf230f Caption now supports more unicode characters, more api work, fixed multiple bugs 2020-11-05 15:40:18 -06:00
TheEssem 1c686016bb Allow changing default prefix in config 2020-09-03 17:48:28 -05:00
TheEssem e0d7ea7a57 Added ability to disable tags for a server, added way to remove warnings 2020-09-03 14:26:39 -05:00
TheEssem 6eee7c6058 Moved back to MongoDB, added some extra flags to flag 2020-07-26 19:52:13 -05:00
TheEssem 2a67b76169 Migrated database to PostgreSQL, updated packages 2020-07-10 12:07:24 -05:00
TheEssem 628a002205 Added channel, allow using a mention on hackban and snowflake 2020-04-09 21:40:52 -05:00
TheEssem 903130dce1 Added warn 2020-02-27 09:49:32 -06:00
TheEssem 1a1f21628b Missed a spot while removing the xp system 2019-12-20 10:03:22 -06:00
TheEssem 171253c52c Added snowflake and experimental xp system, made logger easier to use 2019-11-05 09:52:46 -06:00
TheEssem 606c1ea1dc Moved from Enmap/SQLite to MongoDB 2019-10-28 15:21:06 -05:00
TheEssem 5a08ed57cc Added stats, fixed some bugs, removed unneeded dependencies 2019-09-14 23:22:29 -05:00
TheEssem c33a86eb4c Initial commit 2019-09-13 15:02:41 -05:00