No description
Find a file
2025-02-13 19:15:43 +00:00
src 📝 Remove comment on custom fronters not being supported 2025-02-03 23:17:07 +00:00
.gitignore add requirements, secrets example, sample RPC code and readme scaffolding 2025-01-02 22:29:19 +00:00
.gitmoji-changelogrc 🔧 Add config for gitmoji changelog and create log 2025-01-27 17:13:47 +00:00
CHANGELOG.md 📝 Update docs for getting your API token 2025-02-13 15:46:26 +00:00
CNAME Create CNAME 2025-02-13 19:15:43 +00:00
LICENSE Initial commit 2025-01-02 21:28:40 +00:00
README.md 📝 Update docs for getting your API token 2025-02-13 15:46:26 +00:00
requirements.txt added some documentation 2025-01-03 03:39:51 +00:00
secrets.example.json Application ID does not need to be private, it is not a secret 2025-01-03 00:40:28 +00:00

Simply-Present

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

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.