Skip to content

CrimsonTome/simply-present

Repository files navigation

Simply-Present

Application to update your discord status to whoever is fronting using data from Simply Plural

Notice

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.

System requirements

  • Python 3.8 or higher is required to run Simply-Present (tested with 3.12). You can check your Python version by running python --version in your terminal. You can install it using your package manager or from the Python website.
  • Both Windows 10 and Linux (Arch, Fedora) have been tested to work with Simply-Present.
    • MacOS should work as well but has not been tested.

Getting started

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.

Known issues and limitations

  • If the first fronter in the list does not have an avatar the application will use an empty avatar.

License

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.

About

Application to update your discord status to whoever is fronting using data from Simply Plural

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages