Thank you for investing your time in contributing to our project! Any contribution you make will be reflected on BICS-BOT ✨.
In this guide you will get an overview of how to set up your development environment and what the contribution workflow looks like if you are open-source newbie :)
- Technical Requirements Before Starting
- New Contributor Guide
- Setting Up Testing Environment
- Setting Up Development Environment
- Running the Bot
- Issues
- Linux (recommended) or macOS are fine. Use WSL if on Windows.
- Python3.9>=
Check out our technical guide for help with setting up your OS, and learning about git
and bash
(Linux terminal) if you are unfamiliar with these software.
This process should take roughly 15 minutes. Steps 12-17 are directed at absolute beginners; if you are experienced with development, feel free to skip. Steps 18 and 19 are still very necessary. However, everything in this section is still recommended.
If you see text like $ sudo apt update
, that means this is a Bash command. You can copy and paste the text after the $ sign.
- Create your own server by using the BICS Discord server template.
- Go to this link
- Click
Create a new app
. Give your bot any name you want. - Navigate to the
Bot
page on the left-side sidebar. - Click
Reset Token
. Save the token somewhere and don't lose it. - Scroll down, and toggle all three options under Privileged Gateway Intents. (Presence Intent, Server Members Intent, Message Content Intent)
- Scroll down more, enabled the
Administrator
option in the Bot Permissions section. - Navigate to the
OAuth2/URL Generator
page on the left-side sidebar. - In the Scopes section enable
bot
andapplication.commands
options. In the section below, Bot Permissions, enable theAdministrator
option. - Copy and paste the link at the bottom of the page to your browser.
- Invite the bot to the new server you created at Step 1.
- Fork the repository.
- Clone the repository to your machine.
- Navigate to the root of the repository in your terminal.
- Install the
python3-venv
package if you are on Linux. For example;$ sudo apt install python3-venv
for Ubuntu/Debian users. - Create a Python Virtual Environment.
$ python3 -m venv .venv
. This command will create a sandbox Python installation just for this project in a folder named.venv
at the root of the prepository. - Activate the virtual environment.
$ source .venv/bin/activate
.
- To deactive your virtual environment, run
$ deactivate
- Install requirement.
$ pip install -r requirements.txt
- Install your bot's token which you saved before using the command below. Replace the placeholder with your own token. Do not put it in any brackets, quotes, etc.
$ touch .env && echo TOKEN_BOT=<PLACE YOUR TOKEN HERE> >> .env
Navigate into the src
directory, and run main.py
. $ cd src && python3 main.py
if you are at the root of the project (which you should be if you followed our steps). You should get feedback in the terminal, and your bot should become online on the test Discord server.
Now, any changes you make on the source code will be reflected on your own bot on your own test server. You can make your implementations and play around with them in this testing environment. You are ready to start contributing!
We strongly suggest you take a look at our issues. These are our TODO items, new features, and needed bug-fixes.
Feel free to open new issues for things you want to work on.
You can do a Pull Request to send us your work. When you are done implementing your changes, go to your fork's Github repository, and press Contribute
.