No description
Find a file
sugar ba8c60497c
All checks were successful
Lint / lint (push) Successful in 1m17s
update pyproject.toml for poetry 2
2025-03-23 06:38:03 +01:00
.forgejo/workflows lint code on ci 2024-08-14 09:51:59 +02:00
autopat provide default None value for upload configuration 2025-03-04 12:36:19 +00:00
.gitignore create nix flake 2024-08-15 21:30:42 +02:00
flake.lock Drop Nix package 2024-12-08 17:51:58 +01:00
flake.nix Drop Nix package 2024-12-08 17:51:58 +01:00
LICENSE Relicense to EUPL 1.2 2024-12-08 17:48:20 +01:00
poetry.lock update pyproject.toml for poetry 2 2025-03-23 06:38:03 +01:00
pyproject.toml update pyproject.toml for poetry 2 2025-03-23 06:38:03 +01:00
README.md add iceshrimp support 2024-10-16 19:19:25 +02:00

autopat

automatic patmoji generator,

usage

requirements: poetry, as it's used for managing python packages,

  1. install dependencies

    poetry install
    
  2. create users.toml file listing emote name and an username, with optional aliases

    [emojis]
    pats_sugar = { account = "sugar@sylveon.social", aliases = ["patsSugar"] }
    pats_sugarLabyrinth = "sugar@labyrinth.zone"
    
  3. run a script to generate zip file

    poetry run autopat
    
  4. import generated zip file in misskey's control panel

automatic submission

when using newest modern misskey or sharkey, patmoji generator can be configured to automatically add emojis on an instance by running poetry run autopat login https://example.com, where https://example.com is your instance url

this will open a web browser which will allow you to grant only the necessary permissions - drive access to allow uploading emojis, and managing emojis for creating and modifying them

iceshrimp

iceshrimp doesn't provide MiAuth permissions necessary for login command to work, which means it's necessary to extract a token from browser cookies

after getting the token, it's possible to add an upload section to users.toml file like the following one

[upload]
type = "iceshrimp"
hostname = "https://example.com/"
token = "your-token-here"