
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
GolangでSlackの技術的質問の投稿に回答がゼロだったらChatGPTが回答してくれるBotをつくった - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
GolangでSlackの技術的質問の投稿に回答がゼロだったらChatGPTが回答してくれるBotをつくった - Qiita
package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" "os" "sort" "strconv" "string... package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" "os" "sort" "strconv" "strings" "time" "github.com/joho/godotenv" ) const ( slackApiBaseUrl = "https://slack.com/api/" chatGptApiUrl = "https://api.openai.com/v1/chat/completions" AnswerLimit = 10 ) var slackBotToken string var chatGptApiKey string type SlackMessage struct { Type string `json:"type"` User string `json:"user"` Text