Enables onboarding of new users, moderation and provides useful commands to users.
We use Docker and docker-compose, so you will need to install the Docker Desktop package on your local machine.
Once that is done, enter the working directory and type:
docker-compose up
More on all docker-compose available commands.
All targets require the following environment variables:
POSTGRES_URLA url with credentials pointing to the data store.DISCORD_GUILD_IDThe guild id of your server.DISCORD_BOT_TOKENThe Discord token of the bot.DISCORD_COMMANDO_UIDYour user id, so you can invoke discord commands.DISCORD_ADMIN_CHANNEL_IDChannel ID to relay messages to.DISCORD_MODERATOR_ROLE_IDThe role id of the moderator role.DISCORD_MEMBER_ROLE_IDThe id of the main ("member") role.DISCORD_MAIN_CHANNEL_IDThe id of the main chatter channel, for welcome messages.SKGBOT_EMAIL_AUTH_PASSWORDThe SMTP password for sending emails.SKGBOT_OPTIONS_TIMEZONESet the timezone on which the task manager (cron) will run on. Use values from Moment Timezone.
This project also supports a .env file which is on .gitignore
for your convenience when developing on your local.
npm run db:reset:local
npm run knex:create_migration <name of migration>
npm run knex:migrate
Use the jest command to run all tests or specific ones.
The tests will look for the NUKE_TEST_DB environment variable to be set to
initiate the test database nuking and re-population, use it like so:
NUKE_TEST_DB=1 jestWhen a new node version is available you need to updated it in the following:
/package.json/.nvmrc/.circleci/config.yml/Dockerfile
TBD
Copyright © SKGTech and Authors, Licensed under ISC.