Skip to content

Latest commit

 

History

History
70 lines (59 loc) · 1.45 KB

File metadata and controls

70 lines (59 loc) · 1.45 KB

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

インフラ構成

インフラ構成

使用技術

  • 言語: Go
  • API:
    • Slack API
    • OpenAI GPT API
    • Google Spreadsheet API
  • インフラ:
    • Docker
    • ECR
    • AWS App Runner

環境設定

.env ファイル

以下の環境変数を設定してください。

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 ファイルを ./ ディレクトリに配置してください。