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 i
U 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 start
or through docker, u can also pass variables
docker-compose up -d
npm run dev
uses variables from env.development, also the GUILD_ID variable of the test server is required
-
Create
FormWhiteList.json
in./cfg
.
There u can customize the form fields -
via
/set responsechannel
set the channel to which the completed form will be sent to -
via
/setupform
create 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.