slack-chat-gpt

command module
v0.0.0-...-6696d2b Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Slack bot assisted with ChatGPT

Slack bot talks with you via ChatGPT.

Environment Variables

To run this project, you need to install a bot in your workspace and obtain those values below. Don't forget to give permissions and scopes to this bot and enable socket mode.

SLACK_AUTH_TOKEN: OAUTH token you get from installed app settings in slack

SLACK_APP_TOKEN: you get from Settings -> Basic Information -> App-Level tokens

GPT_SECRET_KEY: Api key you get from https://beta.openai.com/account/api-keys

BOT_COLOR: Bot color in hex

Installation

Clone the project

git clone https://github.com/halilylm/slack-chat-gpt

Generate .env file from .env.example and fill in fields.

cp .env.example .env
Run with docker
docker build -t slack-gpt-bot .
docker run slack-gpt-bot
Run without docker
go run *.go

Demo

Demo

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址