You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For testing, you could now just runPlugin`npm install` and `npm runPlugin start` or `node src/botservice.js` directly, but be sure to set the [environment variables](#options) or pass them to the node process, first!
64
+
For testing, you could now just run`npm install` and `npm run start` or `node src/botservice.js` directly, but be sure to set the [environment variables](#options) or pass them to the node process, first!
65
65
66
-
For production use, in order to create a service on a docker container that will always provide the service without you having to runPlugin it on your own PC, you can do the following:
66
+
For production use, in order to create a service on a docker container that will always provide the service without you having to run it on your own PC, you can do the following:
67
67
68
68
Build the docker image from the [Dockerfile](./Dockerfile):
69
69
```bash
70
70
docker build . -t yguy/chatgpt-mattermost-bot
71
71
```
72
72
73
-
Create and runPlugin a container from the image
73
+
Create and run a container from the image
74
74
```bash
75
-
docker runPlugin -d --restart unless-stopped \
75
+
docker run -d --restart unless-stopped \
76
76
-e MATTERMOST_URL=https://mattermost.server \
77
77
-e MATTERMOST_TOKEN=abababacdcdcd \
78
78
-e OPENAI_API_KEY=234234234234234234 \
@@ -87,7 +87,7 @@ will need to provide the CA's public root to the container for validation.
87
87
If the root certificate is located at `/absolutepath/to/certfile.crt`, then you
88
88
can mount that file into the container at a fixed position and specify the [node environment variable](https://nodejs.org/api/cli.html#node_extra_ca_certsfile) accordingly:
If you want to runPlugin docker compose (maybe even merge it with your mattermost docker stack), you can use this
111
+
If you want to run docker compose (maybe even merge it with your mattermost docker stack), you can use this
112
112
as a starting point: First adjust the environment variables in `docker-compose.yml`.
113
113
114
114
### Required Environment Variables
@@ -172,7 +172,7 @@ Here's an example chat that I just had with our bot:
172
172
>chatgpt (BOT):
173
173
>>Hello there! I'm @chatgpt, a friendly and reliable Mattermost bot designed to make your communication experience smoother and more efficient. I'm honored to be part of the team at yWorks, where I help employees get things done faster and with less hassle. With my advanced machine learning algorithms, I'm capable of understanding complex natural language queries and providing succinct and accurate responses in a matter of seconds. Whether you're a developer looking for information on your codebase or a manager seeking to streamline your team's workflows, I'm here to help. Installing a Mattermost chatbot like me is a must for any organization looking to boost its productivity and enjoy a more pleasant communication experience. So what are you waiting for? Let's chat!
174
174
175
-
I built this tool as a quick hack on a rainy Saturday afternoon, but we are using the bot in production in our Mattermost instance at our office at [yworks](https://www.yworks.com) and the bot has proved to be very helpful for many simple tasks. Give it a try and provide feedback if you like! It's really not very expensive: We had it runnning for about 30 users for two weeks and that cost us less than half a dollar for the ChatGPT service!
175
+
I built this tool as a quick hack on a rainy Saturday afternoon, but we are using the bot in production in our Mattermost instance at our office at [yworks](https://www.yworks.com) and the bot has proved to be very helpful for many simple tasks. Give it a try and provide feedback if you like! It's really not very expensive: We had it running for about 30 users for two weeks and that cost us less than half a dollar for the ChatGPT service!
176
176
177
177
I will also accept helpful pull requests if you find an issue or have an idea for an improvement.
0 commit comments