yGuy / chatgpt-mattermost-bot

A very simple implementation of a service for a mattermost bot that uses ChatGPT in the backend.
MIT License
145 stars 50 forks source link

Plugins don't work unless the 'plugins' variable is set #48

Closed yGuy closed 1 year ago

yGuy commented 1 year ago

In code the plugins environment variable is checked, however the Dockerfile uses PLUGINS as the default, so by default neither the image nor the graph plugin are enabled.

https://github.com/yGuy/chatgpt-mattermost-bot/blob/dab85a8777229b92d3d9d950407fce5e41c13b52/src/plugins/GraphPlugin.ts#L37

https://github.com/yGuy/chatgpt-mattermost-bot/blob/dab85a8777229b92d3d9d950407fce5e41c13b52/Dockerfile#L18

We should be using the upper case names in the code, too.

Workaround for now is to use plugin as environment variable name.

yGuy commented 1 year ago

More specifically, the graph-plugin and the image-plugin use the wrong env.plugins code :-( so by default they are disabled.

yGuy commented 1 year ago

OK - this has to do with the upgrade to node 18. MM and FormData don't like Node 18

I guess we'll just have to rollback to node 16.

https://github.com/form-data/form-data/issues/533