Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/k11q/gpt-bot-discord


https://github.com/k11q/gpt-bot-discord

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

        

# Discord Bot GPT

## Features
- [x] Memory
- [x] Token usage calculator
- [x] Custom trigger
- [ ] Memory keep alive through builds/deployment
- [ ] Web surfing

## Usage

### Commands
- `!chat` is the trigger command. You can change it by changing the value of `TRIGGER` variable in `main.py`.
- `!chat total_tokens` to print total tokens used with amount spent in RM. You can change it by changing the value of `TOTAL_TOKENS_TRIGGER` variable in `main.py`.

### Local development
- Create `.env` file with `DISCORD_KEY` variable(your discord bot token) and `OPENAI_KEY` variable(your openai api key).

## Deploy
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/wIUjNC?referralCode=E44ptv)