Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 939 Bytes

README.md

File metadata and controls

50 lines (33 loc) · 939 Bytes

chatbot-gpt

Chat bots powered by OpenAI's GPT API.

Support Platforms

  • Discord
  • Telegram
  • Slack

Build

To build this project, you need to install Go and Make.

Build for current platform

make -f makefile build-all

Cross compile for all platforms

make -f makefile cross-build-all

Prepare Configurations

cp configs/discord-bot.example.yml configs/discord-bot.yml
vi configs/discord-bot.yml

You also can set token via environment variable alternatively.

export CHATBOT_GPT_DISCORD_TOKEN=token
export CHATBOT_GPT_OPENAI_TOKEN=token

Run

  • macOS with Apple Silicon Chip
./bin/discord-bot/discord-bot_darwin_arm64 --config=configs/discord-bot.yml

Otherwise, you need to find the binary file in the bin directory, and specify the configuration file.