Discord Bot that can generate encrypted krp mods.
- git
- lock.exe (Piboso has the file)
- Node.js (Tested with 18.17.0)
- pnpm
- git
- lock.exe (Piboso has the file)
- Node.js (Tested with 18.17.0)
- pnpm
- Wine (32 bit + 64 bit)
- Make sure WEBSERVER_PORT is open
-
Patreon role
Has access to all mods
-
Mods specific role
Only access to one mod
-
Mods Folder
Put all unencrypted mods into that folder and name the file while creating the mod per command
-
Open console
-
Clone Repository:
git clone https://github.com/FynniX/krp-discord-bot.git
-
Open Bot Directory
cd krp-discord-bot
-
Setup Environment File
Copy
.env.example
and rename it to.env
- DATABASE_URL = "file://PATHTOFILE.db"
- WEBSERVER_URL = http://YOURPUBLICIP:WEBSERVER_PORT
- WEBSERVER_PORT (Define a free port for it)
- MAX_THREADS (How many requests can be done simultaneously, be careful)
- BOT_TOKEN (Discord bot token)
- GUILD_ID (Discord server id)
- PATREON_ROLE (Discord role for access to generating)
-
Setup Environment
pnpm install
-
Mods Folder
Create a folder called mods Why?
-
Install lock.exe
Place lock.exe inside bot directory
-
Build Source
pnpm run build
-
Start Bot
pnpm start
-
Node.js
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install 18.17.0
nvm use 18.17.0
-
Wine
apt update
apt install wine
dpkg --add-architecture i386 && apt-get update && apt-get install wine32
-
pm2
Can be used to start the bot on startup and run in background.
npm i -g pm2
pm2 startup
Skip step 9 in General Instructions and use this command
pm2 start pnpm --name KRP-Discord-Bot -- run start
pm2 save
-
pnpm
wget -qO- https://get.pnpm.io/install.sh | sh -
Released under the MIT License.