Skip to content

🤖 Chat Bots with OpenAI's GPT Model.

License

Notifications You must be signed in to change notification settings

fang2hou/chatbot-gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.