slack-gpt-bot

command module
v0.0.0-...-3c06934 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 18 Imported by: 0

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

インフラ構成

インフラ構成

使用技術
  • 言語: 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 ファイルを ./ ディレクトリに配置してください。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
domain
infrastructure
gpt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳