{"id":17874320,"url":"https://github.com/modprog/twitchmote","last_synced_at":"2025-04-03T00:13:06.355Z","repository":{"id":105083594,"uuid":"414713687","full_name":"ModProg/twitchmote","owner":"ModProg","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-06T17:03:16.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T14:22:20.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ModProg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-07T18:24:09.000Z","updated_at":"2022-01-06T17:03:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f5e6a5b-90e4-4865-a190-14007fb27faa","html_url":"https://github.com/ModProg/twitchmote","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Ftwitchmote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Ftwitchmote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Ftwitchmote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Ftwitchmote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ModProg","download_url":"https://codeload.github.com/ModProg/twitchmote/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911467,"owners_count":20853657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T11:08:29.082Z","updated_at":"2025-04-03T00:13:06.325Z","avatar_url":"https://github.com/ModProg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitchmotes\nThis is to create a font containing twitch emotes as emojis in the [Supplementary Private Use Area-A](https://en.wikipedia.org/wiki/Private_Use_Areas#PUA-A).\n\nYou can use this with emote_mapper: https://nest.pijul.com/ModProg/emote_mapper\n\n## Prerequisites\nThis tool requires some python tools, you can install those with:\n```sh\npip install -r requirements.txt\n```\n\n## Example configuration file\n```toml\n# config.toml\n\n# Code point of the first emote\nstart_point = 0xF4000\n# Should global emotes be added\nglobal_emotes = true\n# Channels whose emotes are used \nchannels = [\"togglebit\", \"modprog\"]\n# Directory containing Images to generate custom emotes from \n# The file name without extension is used as the emote name\ncustom_emotes = \"./custom\"\n# File to store the font\noutput_font = \"./twitchmotes.ttf\"\n# File to store the map from emote name to unicode code point\noutput_map = \"./map.csv\"\n# Either 1 =\u003e 28px, 2 =\u003e 56px, 3 =\u003e 112px\nemote_scale = 3\n# The number of parallel downloads when fetching the twitch emotes\nparallel_downloads = 32\n```\n\n## Usage\n1. Configure all relevant values in `config.toml` (or a name of your choice)\n2. You can put pngs named `{emoteName}.png` in the `custom_emotes` directory.\n3. Run `twitchmotes config.toml`\n4. Copy the font `output_font` in your font path e.g. `~/.local/share/fonts/`\n5. Run `fc-cache` to make it available.\n6. You can check the mapping from emote name to code point in `output_map`.\n7. You can check availability of your font via running `fc-match \":charset={code_point}\"` e.g. `fc-match \":charset=f4000\"`\n8. You should be able to see your emote in terminal now by running `printf '\\U{code_point}\\n'` e.g. `printf '\\Uf4000\\n'`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodprog%2Ftwitchmote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodprog%2Ftwitchmote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodprog%2Ftwitchmote/lists"}