{"id":28261322,"url":"https://github.com/solarlabyrinth/firebot-text-addons","last_synced_at":"2025-10-13T11:44:06.484Z","repository":{"id":270412865,"uuid":"910300249","full_name":"SolarLabyrinth/firebot-text-addons","owner":"SolarLabyrinth","description":"Assorted text parsing scripts for things like pronouns, profanity, and tts word replacement.","archived":false,"fork":false,"pushed_at":"2025-01-03T05:38:04.000Z","size":217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T06:11:20.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SolarLabyrinth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-12-30T23:23:12.000Z","updated_at":"2025-01-03T05:38:08.000Z","dependencies_parsed_at":"2024-12-31T01:18:37.836Z","dependency_job_id":"d6d04806-58c3-4869-af4d-c1c3ae9fb8a4","html_url":"https://github.com/SolarLabyrinth/firebot-text-addons","commit_stats":null,"previous_names":["solarlabyrinth/firebot-text-addons"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SolarLabyrinth/firebot-text-addons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLabyrinth%2Ffirebot-text-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLabyrinth%2Ffirebot-text-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLabyrinth%2Ffirebot-text-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLabyrinth%2Ffirebot-text-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SolarLabyrinth","download_url":"https://codeload.github.com/SolarLabyrinth/firebot-text-addons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLabyrinth%2Ffirebot-text-addons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014805,"owners_count":26085594,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-05-20T06:10:49.342Z","updated_at":"2025-10-13T11:44:06.478Z","avatar_url":"https://github.com/SolarLabyrinth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebot Text Addons\n\nMy utility functions for string manipulation in firebot.\n\n## Installation\n\nCopy the provided .js file from the releases tab into your firebot custom scripts folder. Then enable it in the settings.\n\n## Provided Functions\n\n- hasNonAscii[text] -\u003e boolean\n- hasConfusable[text] -\u003e boolean\n- cleanConfusables[text] -\u003e text\n- toConfusables[text] -\u003e text\n- hasProfanity[text] -\u003e boolean\n- replaceWords[text, metadata-key] -\u003e text\n  - Replaces standalone usernames and @mentions in the provided text with the value contained in the user's metadata entry for the provided metadata-key.\n  - Also replaces any words present in the global script config. Info below.\n- pronoun[they, username] -\u003e text\n\n## Pronouns\n\n```\n$pronoun[they, $username]\n```\nUses the provided \"they/them/their/theirs/themself\" pronoun in the first argument to pick the user's specific pronoun for the grammatical case represented by that first argument.\n\nUses a user's primary pronoun from https://pr.alejo.io/. Should support all pronouns able to be set on that site. Defaults to the provided first argument if no pronoun is set.\n\n|Macro|He Output|She Output|They/Default Output|\n|-|-|-|-|\n|$pronoun[they, $username]|he|she|they|\n|$pronoun[them, $username]|him|her|them|\n|$pronoun[their, $username]|his|her|their|\n|$pronoun[theirs, $username]|his|hers|theirs|\n|$pronoun[themself, $username]|himself|herself|themself|\n|$pronoun[They, $username]|He|She|They|\n|$pronoun[THEY, $username]|HE|SHE|THEY|\n\n## Config\n\n### Replacement Text (CSV)\n\nA CSV file of words and their replacements. 2 columns per row. Column 1 is the word to replace. Column 2 is the word to replace it with.\n\n#### Example:\n\nTo replace \"hi\" with \"yo\" and \"large\" with \"small\" enter this:\n\n```\nhi,yo\nlarge,small\n```\n\n### Allowed Words\n\nProfanity is detected via the npm obscenity package. It may flag more words then you want. This allows you to enter a comma separated list of words to allow in the profanity checker.\n\n```\narse,turd\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolarlabyrinth%2Ffirebot-text-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolarlabyrinth%2Ffirebot-text-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolarlabyrinth%2Ffirebot-text-addons/lists"}