A discord client bot which interacts with Serge: https://github.com/nsarrazin/serge
Go to file
2023-04-07 21:03:54 +02:00
commands update readme 2023-04-07 21:01:53 +02:00
events Better Logging 2023-04-03 03:11:54 +02:00
handler First Commit 2023-03-25 19:09:44 +02:00
.gitignore First Commit 2023-03-25 19:09:44 +02:00
package.json First Commit 2023-03-25 19:09:44 +02:00
rai.js First Commit 2023-03-25 19:09:44 +02:00
README.md update readme 2023-04-07 21:03:54 +02:00

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.

  1. Use npm i

  2. Create a .env file touch .env

  3. Edit .env

TOKEN = (Discord Token)
INTERNAL_IP = (The Internal IP Address of the Server running Serge)
PUBLIC_URL = (The public URL of your Serge install)
  1. 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.)

  2. Run the bot node rai.js

Want to make this better? Issue a pull request!