Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fukata/openai-slack-bot


https://github.com/fukata/openai-slack-bot

Last synced: 29 days ago
JSON representation

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_PASSWORD

env:
secret:
- SLACK_SIGNING_SECRET
- SLACK_BOT_TOKEN
- OPENAI_API_KEY

healthcheck:
path: /up
port: 3000

```

## デプロイ

```
mrsk deploy
```