Commit Graph

311 Commits

Author SHA1 Message Date
TheEssem 620212257d Changed 8MB image embed 2020-12-07 20:42:36 -06:00
Jake Stanger c6b7e6629c
Add docker-compose file (#27)
* feat: add docker-compose file

* refactor: lower docker-compose version

* feat(docker-compose): add help docs and image dir, fix lavalink

* fix(docker): missing ffmpeg dependency

* fix(docker): compile imagemagick with pango support

This fixes commands such as `meme` causing the bot to crash, since Alpine does not have a pango-enabled version of IM7 in its repos.

* feat(docker): cache npm dependencies

By copying just the `package-(lock).json` and installing dependencies, Docker will cache the deps on subsequent builds.

* fix(docker-compose): need to adjust connection addresses

The MongoDB and Chrome addresses are automatically passed through with the correct value. A separate `servers.json` file specifically for docker-compose is used with the correct container addresses.

Each container has a static ip - this is due to an unfortunate limitation of the Chrome remote debugger, which needs either an IP or `localhost`, and refuses connections to a hostname.

* refactor(docker): do not include servers.json for compose

Compose will use the normal `servers.json` and users will have to change the hostnames to `lavalink` and `api` respectively.
2020-12-07 20:40:17 -06:00
TheEssem 3deb2b4986 Added warning message for Win32, fixed api not getting env data 2020-12-03 10:30:33 -06:00
TheEssem 59dec7f857 Made image functions run on a worker thread when the API is disabled 2020-11-26 11:48:19 -06:00
TheEssem 94b0bc19a4 Added reply support to image detection, added stealth plugin to screenshot, made credits static, more fixes 2020-11-26 09:31:24 -06:00
TheEssem ca6cffa67c Some security fixes 2020-11-20 15:16:52 -06:00
Essem fe051afdb0
even more pain 2020-11-20 13:51:28 -06:00
Essem 94135aa914
pain 2020-11-20 13:36:39 -06:00
Essem 1d04404eaf
Update codeql-analysis.yml 2020-11-20 13:24:25 -06:00
Essem 7e597d1d2d
Create codeql-analysis.yml 2020-11-20 13:20:01 -06:00
TheEssem ad149156ad Switched to an image API implementation by Terradice 2020-11-17 08:52:12 -06:00
TheEssem 6761e39d70 A little bit of cleanup 2020-11-09 22:09:57 -06:00
Essem 02bd4c6fd8
Merge pull request #23 from samhza/fix-gettype
utils/image.js: fix getType on local files
2020-11-09 22:08:22 -06:00
TheEssem 940e16b232 Fixed caption font sizing 2020-11-09 22:04:29 -06:00
Samuel Hernandez 66cf9dc518
utils/image.js: fix getType on local files 2020-11-07 20:50:32 -05:00
TheEssem 0600cf230f Caption now supports more unicode characters, more api work, fixed multiple bugs 2020-11-05 15:40:18 -06:00
TheEssem a03d3a5e79 Fixed GIF commands for real (lol) 2020-10-19 20:24:53 -05:00
TheEssem 5e34e45ac4 Fixed GIF-only commands 2020-10-19 18:48:43 -05:00
TheEssem cf5c649384 Heavy work on the image detection code, fixed mention prefixes not being properly registered 2020-10-18 16:53:35 -05:00
TheEssem 6cd9878632 Remove warnings while building image commands 2020-10-06 15:21:39 -05:00
TheEssem ac4e1f5dd8 Simplified and fixed image API, updated packages 2020-10-06 14:48:22 -05:00
TheEssem f1404a8393 Fixed compatibility with Eris 0.13, get patron list dynamically 2020-10-06 10:18:33 -05:00
TheEssem 8393f599b0 Added Dockerfile for api, allow bot to be run via npm start 2020-09-26 11:23:27 -05:00
TheEssem 6e8473d784 Only delete messages if they exist, removes errors in console 2020-09-23 14:12:39 -05:00
TheEssem 7047081f98 Fixed some music player stuff 2020-09-22 15:33:07 -05:00
TheEssem 925eb387dd Fixed issue with skip vote counts, added headless chrome IP to config, other fixes 2020-09-18 19:54:52 -05:00
TheEssem bc59550625 Fixed commands in DMs 2020-09-13 15:49:18 -05:00
TheEssem 719fdf5871 Changed include dirs, updated readme/packages, use more efficient command checking, fixed reverse 2020-09-12 13:57:25 -05:00
TheEssem 58613d60ee Merge branch 'master' of https://github.com/esmBot/esmBot into master 2020-09-12 11:16:24 -05:00
Essem 4dc714f30a
Merge pull request #17 from esmBot/dependabot/npm_and_yarn/node-fetch-2.6.1
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-12 08:11:36 -05:00
dependabot[bot] e7b9a04692
Bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-12 08:19:11 +00:00
TheEssem 17b347761d Reverted qrread native module 2020-09-11 15:22:25 -05:00
TheEssem 81c291ffa7 Apparently some other commands had the same issue 2020-09-10 21:04:09 -05:00
TheEssem ecef687ed8 Fixed issue with speed on gifvs 2020-09-10 20:50:52 -05:00
TheEssem 7f5c6ab8f9 Fixed some commands not running 2020-09-10 13:31:41 -05:00
TheEssem 4caec5aefa Fixed characters not being properly encoded, fixed images not being properly appended, more fixes 2020-09-09 21:36:20 -05:00
TheEssem 0bd8905829 Don't read database on every message (why the hell did i think this was even remotely good design) 2020-09-09 20:14:01 -05:00
TheEssem 0d8e14ed90 Fixed invert (?) 2020-09-07 15:11:52 -05: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 e0d7ea7a57 Added ability to disable tags for a server, added way to remove warnings 2020-09-03 14:26:39 -05:00
TheEssem 8b346240e9 Removed env stuff from API 2020-09-02 22:52:01 -05:00
TheEssem a6137436d2 The bot can now actually interact with the API, fixed issues relating to leaving voice channels 2020-09-01 21:52:12 -05:00
TheEssem fdc08575f3 Another readme update 2020-09-01 17:23:43 -05:00
TheEssem c471bd8af8 Preliminary DM support, update URLs to point to new repo link 2020-09-01 17:10:19 -05:00
TheEssem 631cdc5ef6 Initial API work 2020-08-31 17:15:34 -05:00
TheEssem f415b3bb09 Changed image function syntax, improved dice, switched to fs.promises, might have also done other stuff but idk 2020-08-27 21:34:12 -05:00
TheEssem 95846d32d4 Fixed some issues with the sound player, search images in original message first, add max limit to dice 2020-08-16 11:48:37 -05:00
TheEssem a82341ea4f Change readme to reflect switch back to MongoDB 2020-08-13 08:51:18 -05:00
TheEssem ba664fd19a Reject feedback messages if they contain links, increased image request timeout, some other fixes 2020-08-13 08:47:41 -05:00