This bot adds a request form for whitelists on the server. When the form is filled out, it goes to moderation with the possibility to accept or reject it.
git clone https://github.com/papersaccul/paperwhitelist
cd paperwhitelist
npm iU need create an .env.production or .env.development file, to store the BOT_TOKEN, LOCALE, GUILD_ID variable
BOT_TOKEN=YOUBOTTOKEN
LOCALE=ua
GUILD_ID=111111111111111111
u can run it through npm
npm startor through docker, u can also pass variables
docker-compose up -d npm run devuses variables from env.development, also the GUILD_ID variable of the test server is required
-
Create
FormWhiteList.jsonin./cfg.
There u can customize the form fields -
via
/set responsechannelset the channel to which the completed form will be sent to -
via
/setupformcreate a button for filling out the form -
via
/set acceptrole role:and/set rejectrole role:set the roles that will be issued when this form is accepted or rejected (not required)
When accepted or rejected - a message is sent to the author of the form, which is specified in the localization file.


