https://github.com/kruceo/chatrgb
A funny discord OpenAI bot, supports roleplays and context history
https://github.com/kruceo/chatrgb
ai bot chat discord openai
Last synced: about 2 months ago
JSON representation
A funny discord OpenAI bot, supports roleplays and context history
- Host: GitHub
- URL: https://github.com/kruceo/chatrgb
- Owner: Kruceo
- License: isc
- Created: 2023-04-11T17:26:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T16:35:15.000Z (about 2 years ago)
- Last Synced: 2024-05-29T03:32:16.364Z (about 2 years ago)
- Topics: ai, bot, chat, discord, openai
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **ChatRGB** #
ChatRGB is a Discord bot designed to be funny, but it now supports roleplays and maintains context. With a command system and chat history, ChatRGB provides an engaging and humorous experience for users.
## How to use
### Clone and install deps
```bash
git clone https://github.com/Kruceo/ChatRGB.git
cd ChatRGB
npm install
```
### Get your keys
Access [Google AI Studio](https://aistudio.google.com/app/apikey) and create or use a existent API key.
Access [Discord Dev](https://discord.com/developers/applications/) and create or use a existent Bot Token.
### Configure
Create a `.env` file in the project root
```.env
DISC_TOKEN=ABCDEFGHIJKLMNOPQRSTUVW
GENAI_TOKEN=A1b2C3d4E5f6
```
### Running
```bash
node index.mjs
```
## Docker Container
```
docker run -v /chatrgb/data \
-e DISC_TOKEN=YOURDISCORDTOKEN \
-e GENAI_TOKEN=YOURGENAITOKEN \
rafola/chatrgb
```