Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gs1068/slack-gpt-bot
Slack GPT Bot
https://github.com/gs1068/slack-gpt-bot
go openai slack-bot
Last synced: 26 days ago
JSON representation
Slack GPT Bot
- Host: GitHub
- URL: https://github.com/gs1068/slack-gpt-bot
- Owner: gs1068
- License: mit
- Created: 2024-12-01T06:03:15.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-01T10:04:25.000Z (about 1 month ago)
- Last Synced: 2024-12-01T11:18:51.025Z (about 1 month ago)
- Topics: go, openai, slack-bot
- Language: Go
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slack GPT Bot
## ディレクトリ構成
```
├── Dockerfile
├── Makefile
├── README.md
├── config
│ └── load_env.go
├── domain
│ ├── model
│ │ ├── gpt.go
│ │ ├── slack.go
│ │ ├── slack_test.go
│ │ ├── spreadsheet.go
│ │ └── spreadsheet_test.go
│ └── repository
│ ├── gpt.go
│ ├── slack.go
│ └── spreadsheet.go
├── go.mod
├── go.sum
├── infrastructure
│ ├── gpt
│ │ └── gpt.go
│ ├── slack
│ │ └── slack.go
│ └── spreadsheet
│ └── spreadsheet.go
├── interfaces
│ ├── gpt.go
│ └── slack.go
├── main.go
├── router
│ └── router.go
└── usecase
├── gpt.go
└── slack.go
```## インフラ構成
![インフラ構成](./images/001.jpg)
### 使用技術
- **言語**: Go
- **API**:
- Slack API
- OpenAI GPT API
- Google Spreadsheet API
- **インフラ**:
- Docker
- ECR
- AWS App Runner## 環境設定
### `.env` ファイル
以下の環境変数を設定してください。
```plaintext
SLACK_BOT_TOKEN="xoxb-xxxx-xxxx-xxxx-xxxx"
OPENAI_API_KEY="sk-xxxx-xxxx-xxxx-xxxx"
SPREADSHEET_ID="xxxx-xxxx-xxxx-xxxx-xxxx"
```GCP から取得した `credentials.json` ファイルを `./` ディレクトリに配置してください。