y-akahori-ramen / chatgpt-bot-example

This is an example of creating a ChatGPT SlackBot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chatgpt-bot-example

This is an example of creating a ChatGPT SlackBot.

Usage

  1. Create a SlackApp based on slackAppManifest.yml.
  2. Create an .env file and specify the OpenAI and SlackApp key information.

Node.js

  1. Install the libraries with npm install.
  2. Start the bot with node ./dist/index.js.

Docker

  1. Start the bot with docker compose up.

.env file example

OPENAI_API_KEY=123456
SLACK_SIGNING_SECRET=123456
SLACK_BOT_USER_OAUTH_TOKEN=123456
SLACK_APP_TOKEN=123456

About

This is an example of creating a ChatGPT SlackBot.

License:The Unlicense


Languages

Language:TypeScript 82.5%Language:JavaScript 9.9%Language:Dockerfile 7.6%