update readme
This commit is contained in:
parent
e3a6f6c664
commit
cb97fdf03d
24
README.md
24
README.md
@ -1,20 +1,18 @@
|
||||
# rAI - Serge Discord Bot
|
||||
|
||||
This readme is incomplete.
|
||||
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.
|
||||
|
||||
Structure:
|
||||
|
||||
**commands** - This folder contains commands
|
||||
|
||||
**event** - This folder contains files related to discord.js events. (Like "ready", "interactionCreate")
|
||||
|
||||
**handler** - This folder contains files that read the commands folders contents.
|
||||
|
||||
**index.js** - This is the main file to run the bot.
|
||||
|
||||
|
||||
|
||||
1) Use ```npm i ```
|
||||
@ -30,9 +28,9 @@ PUBLIC_URL = (The public URL of your Serge install)
|
||||
|
||||
4) Go to Handler -- > index.js and change "GUIDIDHERE" to your Discord Server's Guild ID
|
||||
|
||||
5) Go into https://discord.com/developers/applications and enable Privileged Intents.
|
||||
5) 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.)
|
||||
|
||||
6) Run the bot ```node index.js```
|
||||
6) Run the bot ```node rai.js```
|
||||
|
||||
|
||||
Want to make this better? Issue a pull request!
|
||||
|
@ -31,9 +31,6 @@ module.exports = {
|
||||
'accept': 'text/event-stream',
|
||||
};
|
||||
|
||||
// The Auth stuff here is internal to my set up only and may be removed if you use this bot.
|
||||
// My chat GUI for Serge is locked down by basic auth in apache to safe guard from
|
||||
// Users issuing mulitple jobs at a time until there is some built in way to do so.
|
||||
const response = await axios.get(`http://${process.env.INTERNAL_IP}:8008/api/chat/${sessionID}`, {
|
||||
headers
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user