A discord client bot which interacts with Serge:
https://github.com/nsarrazin/serge
commands | ||
events | ||
handler | ||
.gitignore | ||
package.json | ||
rai.js | ||
README.md |
rAI - Serge Discord Bot
This readme is incomplete.
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.
-
Use
npm i
-
Create a .env file
touch .env
-
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)
-
Go to Handler -- > index.js and change "GUIDIDHERE" to your Discord Server's Guild ID
-
Go into https://discord.com/developers/applications and enable Privileged Intents.
-
Run the bot
node index.js
Want to make this better? Issue a pull request!