If you want to contribute, that's great! Please just follow the guidelines, as they are written here.
- Fork this repo, and then clone that fork to your computer.
- Create a virtual env, either with conda or venv. Make sure you are always inside this environment, wether you're running or installing libs
- Run
pip install -r requirements.txt
to install required dependencies for running the bot. - Run
pre-commit install
. If you don't do this,black
andisort
will not run automatically. - Make your changes, then push.
black
will automatically format the code. - Create a pull request from your repo to this repo
- Use
dict[]
,list[]
, etc. instead oftyping.X
for typehints. - Use
|
instead oftyping.Union
(for example,int | str
instead ofUnion[int, str]
) - To use #1 and #2, you need to include
from __future__ import annotations
in the imports. - Use isort to sort imports. Always run black (#5) after running isort.
- Use black to format all code, with the line length set to 79. (
black . -l 79
)
Translation files are found in app/locale/<locale name>/LC_MESSAGES/bot.po
. They are formated like this:
msgid "Original Message"
msgstr "Translated Message"
If you see any missing or incorrect translations, you can follow the instructions below.
- Create a fork of Starboard-2.
- Edit the files that need editing.
- Create a PR (pull request) to have the changes merged.
- Go to the file that needs editing (on this GitHub repo) and click "Raw".
- Download the contents of the page (or copy+paste them into a text editor).
- Edit the file as needed.
- Send me a copy of the edited file over discord (
Circuit#5585
). You'll need to join the server, as I ignore friend request for those I don't know.