All input is welcomed! Below are some of the basic steps to contribute to this project. Please read all of it to make sure you stay consistent with everybody else.
Please review the Issues tab and self-assign or ask to be assigned to one if you want to try to help in those. This keeps the efforts tidy and we know who is working on what.
If you don't have it already, install/setup Git on your machine.
If you are a member of our organization, skip step 1.
- In the top-right corner of the page, click the Fork button.
- In the main page of the repo, notice the big green button that says "Code". Click it.
- Using the HTTPS or SSH option, copy the URL.
- If you are using HTTPS, using Git Bash/Terminal/Bash, navigate to the folder where you want this repo to be located in your machine and use:
$ git clone pasteURLYouJustCopied
- If you are using SSH, follow this GitHub tutorial.
If you become a regular contributor, we will add you to the organization so you can work off a direct clone instead.
- Install Node.js; it can be downloaded from here. This project requires version 16.x or higher.
- On the command line, navigate to the cloned repo.
- Use the following command to install all necessary packages:
$ npm install
- In the cloned repo, create a file named
.env
. This will store environment variables you may want to keep secret. - Create variables named
BOT_TOKEN
,GUILD_ID
, andCLIENT_ID
(you will assign these values later on).
- Head to the Applications section of the Discord Developer Portal and create a new application.
- Navigate to the Bot section and click "Add Bot". You can add an icon and name for your bot.
- Copy the bot token and paste it into the
BOT_TOKEN
field in your.env
file. - Navigate to the OAuth2 section, copy the Client ID, and paste it into the
CLIENT_ID
field in your.env
file. - Check the bot and applications.commands checkboxes under Scopes, and grant your bot the desired permissions under Bot Permissions.
- Copy the URL under Scopes, paste it into your browser, and add your bot into your desired server.
- You should now be able to see the bot in your server (it will appear Offline).
- Right-click on the server name in the top-left corner, click Copy ID, and paste it into the
GUILD_ID
field in your.env
file. If you do not see the option to Copy ID, head to your User Settings and turn on Developer Mode.
- Navigate to your local repo and enter the following command into your terminal. This command must be run every time a command is added or updated, but not for non-command changes.
$ npm run deploy-commands
- Next, start up the bot using the following command in your terminal:
$ npm start
- Your bot should now appear Online in your server.
This has yet to be added to this project. For information about our pre-commit hook and setting up your local environment to use ESLint, Prettier and Git Blame, check out the Advanced Setup page of our moderation bot wiki.
We use a typical Git branching workflow. If you are new to Git and GitHub, visit our Git Workflow wiki page on our moderation bot repo for a quick-start guide!
Please use Github's Issues. Report a bug or request a feature there. Please do:
- Use an appropriate label for the issue. If you think the current labels don't apply, create a new one
- Don't forget to add your issue to the project Kanban board
- If it is a bug: describe the bug and how to reproduce it
- If it is a feature request: explain the idea, how you think it could be done and what need it is addressing