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_URL
A url with credentials pointing to the data store.DISCORD_GUILD_ID
The guild id of your server.DISCORD_BOT_TOKEN
The Discord token of the bot.DISCORD_COMMANDO_UID
Your user id, so you can invoke discord commands.DISCORD_ADMIN_CHANNEL_ID
Channel ID to relay messages to.DISCORD_MODERATOR_ROLE_ID
The role id of the moderator role.DISCORD_MEMBER_ROLE_ID
The id of the main ("member") role.DISCORD_MAIN_CHANNEL_ID
The id of the main chatter channel, for welcome messages.SKGBOT_EMAIL_AUTH_PASSWORD
The SMTP password for sending emails.SKGBOT_OPTIONS_TIMEZONE
Set 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 jest
When 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.