Commit Graph

43 Commits

Author SHA1 Message Date
murm db9b70bf66 initial update 2023-03-15 10:09:09 -04:00
Essem 5a4553e17c
Fix comma escape 2022-12-18 19:19:53 -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 c3b97c121e
Properly detect PM2 manager process instead of using a hardcoded ID 2022-10-30 23:16:03 -05:00
Essem 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
Essem 8144a7a115
Fix image slash commands with text input 2022-10-24 17:12:10 -05:00
Essem 3662a2e51d
Refactor message prefix handling, lessen reliance on member caching, fix adding guilds in postgresql 2022-10-23 20:27:32 -05:00
Essem d68ff19e4d
Fix playing statuses, fix large image posting, fix music slash command 2022-09-24 11:26:56 -05:00
Essem 888f2f8b4a
Initial Oceanic port (still unfinished), update packages, remove serverinfo and userinfo 2022-09-23 22:25:16 -05:00
Essem bf90ae108a
info/stats fixes 2022-09-23 17:41:28 -05:00
Essem 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
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 3eae453de3
Centralize text encoding 2022-09-10 23:48:44 -05:00
Essem 20f4849fee
Convert unnecessary async functions 2022-09-10 23:18:44 -05:00
Essem 81ff5ae0ab
Move config files to new directory 2022-07-26 10:38:42 -05:00
Essem 398ce07bd2
Improve voice connection checking, take advantage of optional chaining operators 2022-07-23 16:02:04 -05:00
Essem 57cd37d1eb
Improve running the bot in a global context 2022-03-11 20:28:35 -06:00
Essem 671ddd8bbe
Check if imageServers exists before cleaning eval/exec output 2022-01-08 13:06:35 -06:00
Essem e66f45ba0f
Fixed clean always resulting in <redacted> 2021-12-26 23:06:05 -06:00
samhza 134eb654d2
allow custom port for API server (#204)
* allow custom port for API server

* add .editorconfig
2021-12-17 22:44:53 -06: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 e44f5ba59d
Added font flag to caption 2021-08-06 22:27:50 -05:00
Essem c0974e2d49
Fixed clean 2021-08-05 13:03:44 -05:00
Essem 77ca0fd344
Improved error handling 2021-07-31 13:36:00 -05:00
TheEssem 753bf84f78
Updated flags, fix true/false being censored in cleaned output 2021-05-17 19:09:30 -05:00
TheEssem ebfab817d7 Added support for multiple processing emojis, fixed issue with local image processing 2021-04-23 15:03:48 -05:00
TheEssem cc82d32840 Fixed slow, changed clean to handle all env variables, changed database handling 2021-04-14 16:37:40 -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 03aa3b3a2b Removed Twitter bot 2021-03-08 10:37:43 -06:00
TheEssem 62346cbae4 Rework image API again, replaced many calls to replace with replaceAll 2021-01-18 14:11:28 -06:00
TheEssem 91b8735203 Attempt to fix clean replacing empty text 2020-09-05 16:33:21 -05:00
TheEssem 1c686016bb Allow changing default prefix in config 2020-09-03 17:48:28 -05:00
TheEssem af8bce1d3e Made image use DuckDuckGo instead of Google Custom Search 2020-04-23 20:54:57 -05:00
TheEssem a7746cc865 Changed some requires 2020-02-19 16:46:50 -06:00
TheEssem 97f2f38d47 Added pagination and proper HTML entity decoding to youtube 2020-02-06 09:00:10 -06:00
TheEssem 38fa8c4629 Fix sanitization with homebrew, changed links to point to the new help link 2019-12-06 08:55:30 -06:00
TheEssem 16927d8667 Don't load commands if env variable doesn't exist, removed catfact/dogfact, many other changes 2019-11-29 20:00:14 -06:00
TheEssem 0920c459d5 Improved twitter bot a bit more, replaced all indexOf checks, fixed xp message bug 2019-11-23 17:23:28 -06:00
TheEssem e1347fcf52 Added proper license, removed unused stuff, more twitter bot work 2019-11-17 19:57:12 -06:00
TheEssem f7756f1b52 Added basic twitter bot and spin, updated readme, other various changes 2019-11-15 10:59:50 -06:00
TheEssem d661b58271 Added leak and exec, moved from a config.json file to a .env file, other changes 2019-11-12 18:09:06 -06:00
TheEssem ef071a39d4 Removed extra image request for image commands, various other tweaks 2019-11-11 14:54:19 -06:00
TheEssem c33a86eb4c Initial commit 2019-09-13 15:02:41 -05:00