Application to update your discord status to whoever is fronting using data from Simply Plural
Parts of this repo have been moved into my SimplyPluralutils project, in an attempt to clean up the code and allow it to be used elsewhere.
python --version in your terminal. You can install it using your package manager or from the Python website.Clone the repository and navigate to the project directory.
git clone https://github.com/CrimsonTome/simply-present
cd simply-present
In order to get dara from Simply Plural you will need to rename the secrets.example.json file to secrets.json and add your Simply Plural API key. You can find your API key by going into settings -> Account -> Tokens -> Add Token. Give it read access and copy the token into the file.
{
"SimplyPluralAPIKey": "your_api_key_here"
}
Virtual environments are recommended to keep dependencies isolated from other projects and in some cases to keep them from breaking your system system packages. You can create a virtual environment and install the dependencies with the following commands:
with bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Or if you’re on windows and using powershell
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
Once you have the dependencies installed and/or have made your changes you can run the application with python src/main.py
It is recommended to run your changes through a linter such as pylint. Code in this repository is linted with pylint (from the Official python extension) and formatted with Black. You can run it with black src/ to format your code.
Simply-Present is licensed under the MIT license. The full license text is included in the LICENSE file in this repository. Tldr legal have a great summary of the license if you’re interested.