Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fukata/openai-slack-bot
https://github.com/fukata/openai-slack-bot
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fukata/openai-slack-bot
- Owner: fukata
- Created: 2023-03-03T17:54:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-04T01:06:11.000Z (over 1 year ago)
- Last Synced: 2024-10-10T12:32:53.421Z (about 1 month ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# openai-slack-bot
発言にchatgptで返信してくれるだけのslack botです。
## セットアップ
### mrsk のインストール
```
$ gem install mrsk
```### .env の作成
```
--
SLACK_SIGNING_SECRET=
SLACK_BOT_TOKEN=
OPENAI_API_KEY=
MRSK_REGISTRY_PASSWORD=
```### config/deploy.yml の作成
```
# Name of your application. Used to uniquely configure containers.
service: openai-slack-bot# Name of the container image.
image: user/my-app# Deploy to these servers.
servers:
- 192.168.0.1# Credentials for your image host.
registry:
# Specify the registry server, if you're not using Docker Hub
# server: registry.digitalocean.com / ghcr.io / ...
username: fukata
password:
- MRSK_REGISTRY_PASSWORDenv:
secret:
- SLACK_SIGNING_SECRET
- SLACK_BOT_TOKEN
- OPENAI_API_KEYhealthcheck:
path: /up
port: 3000```
## デプロイ
```
mrsk deploy
```