This guideline is heavily based on The GLHF Pledge and CONTRIBUTING.rst of github3.py project.
- Be a good, responsible, and mature sport
- Remember that people online and in virtual spaces are still real people.
- Know that my actions and words can have real impact.
- Regardless of how big or small is your change, add your name to the AUTHORS.md.
- Test your code before you push, no matter how big or small your change is.
- Rebase your fork/branch before you merge. If you don't know what this is or how to do this, ask for help.
This instructions describe for the people who has never set up a Python development environment and provides what the Python development community considers as the best practice. Depending on your prior knowledge, you may skip some steps here and there. Depending on your preference, you may choose not to follow the steps. However, keep in mind that TAC_bot_db
is set up to be developed using the below instructions.
- Download and install the latest version of Python 3.
- After the installation, verify you have
pip
installed and available from your path.$ pip --version
should return the version number and the location of the executable.
- Update the
pip
to the latest version:$ pip install pip --upgrade
- Install
pipenv
viapip
:$ pip install pipenv
- Using
pipenv
, create an environment forTAC_bot_db
:$ pipenv --three
- Install all dependencies using
pipenv
:$ pipenv install
- Activate the environment created by
pipenv
:$ pipenv shell
- Set the Discord bot token as the environment variable
- On Unix-like environment:
$ export DISCORD_BOT_TOKEN='MyDiscordBot'
- On Windows environment:
C:\TAC_bot_db> set DISCORD_BOT_TOKEN='MyDiscordBot'
- On Unix-like environment:
- Run the bot:
$ python discord_bot/Bot.py