A discord client bot which interacts with Serge: https://github.com/nsarrazin/serge
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Raven Scott 6435e059ad random update 2 months ago
commands random update 2 months ago
events Better Logging 2 months ago
handler random update 2 months ago
.gitignore First Commit 2 months ago
Dockerfile adding Docker Scripts and some fixes from fork: https://git.ssh.surf/MrTuxedo/rai-serge-discord-bot 2 months ago
README.md moving default model settings to .env 2 months ago
default.env moving default model settings to .env 2 months ago
docker.compose.yml adding Docker Scripts and some fixes from fork: https://git.ssh.surf/MrTuxedo/rai-serge-discord-bot 2 months ago
package.json First Commit 2 months ago
rai.js First Commit 2 months ago

README.md

rAI - Serge Discord Bot

This is a discord client written in DiscordJS v14 based on DiscordV10

This bot is slash command based only and currently supports creating a session or "chat room" per user.

These sessions can be generated an unlimited amount of times.

The data on which roomID is active or which user is stored within a ./cache directory.

The cache file is named the DiscordID of the user creating the session. Session caches are overwritten on each request.

This bot also has the ability to edit start up paramaters for the room itself such as the Model, init-prompt, temperature and the repeat-penalty.

The bot will run a POST request for a static reply from serge, message response times will depend on the full generation window of your Serge instance.

Message intents are NOT supported in this bot, this is due to the verification that Discord is enabling.

Commands

/create-session - create a new chat session Optional Options: (Model, init-prompt, temperature and the repeat-penalty)

/view-session-id - View your current session id

/view-session-history - View your current session id

/chat - Chat with the bot

General Usage

  1. Use npm i

  2. Create a .env file cp default.env .env

  3. Edit .env nano .env

  4. Go into https://discord.com/developers/applications and enable Privileged Intents

(This may not be needed at this point of you want to try without.)

  1. Run the bot node rai.js

Want to make this better? Issue a pull request!