Contributing to Sir Lancebot
Before contributing, please ensure you read the contributing guidelines in full.
- Install requirements
- Setup a test server and a bot account
- Fork the project repository
- Configure the development environment
- Run the project
- Work with git to make changes
You will need your own test server and bot account on Discord to test your changes to the bot.
- Create a test server.
- Create a bot account and invite it to the server you just created.
- Create the following text channels:
- Create the following roles:
- Note down the IDs for your server, as well as any channels and roles created.
You will need your own remote (online) copy of the project repository, known as a fork.
You will do all your work in the fork rather than directly in the main repository.
- Once you have your fork, you will need to clone the repository to your computer.
- After cloning, proceed to install the project's dependencies.
- After installing dependencies, you will have to setup environment variables:
The following variables are needed for running Sir Lancebot:
||Bot Token from the Discord developer portal|
||ID of the Discord Server|
||ID of the role @Admins|
||ID of the role @Helpers|
||ID of the #announcements channel|
||ID of the #dev-log channel|
||ID of the #sir-lancebot-commands channel|
To run the project, use the pipenv command
pipenv run start in the project root.
$ pipenv run start
Now that you have everything setup, it is finally time to make changes to the bot! If you have not yet read the contributing guidelines, now is a good time. Contributions that do not adhere to the guidelines may be rejected.
Notably, version control of our projects is done using Git and Github. It can be intimidating at first, so feel free to ask for any help in the server.