.gitignore | ||
bun.lockb | ||
config.example.json | ||
index.ts | ||
package.json | ||
rcon.ts | ||
README.md | ||
tsconfig.json |
autowhitelist
This ts project automatically whitelists people to a minecraft server from a discord. It's very very simple. Supports multiple users in one message, e.g "USERONE", "USERTWO". This isn't configurable, but quite easy to remove.
All whitelists can also be removed by just deleting the message, helping both users incase username changes or other issues, and staff.
Run bun i
, copy config.example.json
to config.json
and change all of the settings. The channel option is the channel ID, which you can copy by using developer mode on discord. Then, just start the bot.
If you get something as such from the bot, then everything's done right:
RCON connected.
RCON authenicated.
Ready! Logged in as Slop Bridge#2702
There is also an option to get rid of nicknames changes. Set "changeNicknames" to "false".
This project was created using bun init
in bun v1.1.13. Bun is a fast all-in-one JavaScript runtime.