{"id":18469763,"url":"https://github.com/valen-h/twitchbot","last_synced_at":"2026-01-23T07:06:06.797Z","repository":{"id":143795699,"uuid":"480979548","full_name":"Valen-H/TwitchBot","owner":"Valen-H","description":"Twitch account chatting (and more?) automation.","archived":false,"fork":false,"pushed_at":"2022-12-12T21:53:57.000Z","size":47,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T11:53:01.897Z","etag":null,"topics":["automation","bot","chatting","twitch"],"latest_commit_sha":null,"homepage":"https://valen-h.github.io/TwitchBot/TwitchBot.html","language":"HTML","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/Valen-H.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":"2022-04-12T21:33:20.000Z","updated_at":"2023-02-18T08:04:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"56bc99d1-8579-4594-83b4-6f83a30ae4a7","html_url":"https://github.com/Valen-H/TwitchBot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Valen-H/TwitchBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FTwitchBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FTwitchBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FTwitchBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FTwitchBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Valen-H","download_url":"https://codeload.github.com/Valen-H/TwitchBot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FTwitchBot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["automation","bot","chatting","twitch"],"created_at":"2024-11-06T10:11:41.099Z","updated_at":"2026-01-23T07:06:06.784Z","avatar_url":"https://github.com/Valen-H.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TwitchBot\n\n\u003e Twitch account chatting (and more?) automation.\n\n**Visit Bot Host Site _[Here](https://valen-h.github.io/TwitchBot/TwitchBot.html \"GitHub Pages\")_**  \nLearn JS RegExp _[Here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp \"JS RegEx MDN\")_.  \nLearn Twitch.js (based on TMI) _[Here](https://twitch-js.netlify.app \"Netlify\")_.\n\n## Notes\n\n\u003e `Twitch.js` is `TMI`-based.\n\n### Triggers\n\n\u003e JS code to evaluate, return truth-y to activate rule.\n\nExample of accessable scope values within the rule:\n```javascript\n{\n\t\"_raw\": \"@badge-info=subscriber/15;badges=subscriber/12,glitchcon2020/1;color=#485F86;display-name=exemplative;emotes=181172:8-14;first-msg=0;flags=;id=916b68bb-b21c-4c71-ab4e-60eac715c65b;mod=0;room-id=24761645;subscriber=1;tmi-sent-ts=1650057813368;turbo=0;user-id=153885677;user-type= :exemplative!exemplative@exemplative.tmi.twitch.tv PRIVMSG #cirno_tv :masthir naroWOW\",\n\t\"timestamp\": \"2022-04-15T21:23:33.368Z\",\n\t\"command\": \"PRIVMSG\",\n\t\"event\": \"PRIVMSG\",\n\t\"channel\": \"#cirno_tv\",\n\t\"username\": \"exemplative\",\n\t\"isSelf\": false,\n\t\"message\": \"masthir naroWOW\",\n\t\"tags\": {\n\t\t\"badgeInfo\": \"subscriber/15\",\n\t\t\"badges\": {\n\t\t\t\"subscriber\": 12,\n\t\t\t\"glitchcon2020\": \"1\"\n\t\t},\n\t\t\"color\": \"#485F86\",\n\t\t\"displayName\": \"exemplative\",\n\t\t\"emotes\": [\n\t\t\t{\n\t\t\t\t\"id\": \"181172\",\n\t\t\t\t\"start\": 8,\n\t\t\t\t\"end\": 14\n\t\t\t}\n\t\t],\n\t\t\"firstMsg\": \"0\",\n\t\t\"flags\": \"\",\n\t\t\"id\": \"916b68bb-b21c-4c71-ab4e-60eac715c65b\",\n\t\t\"mod\": \"0\",\n\t\t\"roomId\": \"24761645\",\n\t\t\"subscriber\": \"1\",\n\t\t\"tmiSentTs\": \"1650057813368\",\n\t\t\"turbo\": \"0\",\n\t\t\"userId\": \"153885677\",\n\t\t\"userType\": \"\",\n\t\t\"emoteSets\": [],\n\t\t\"username\": \"exemplative\",\n\t\t\"isModerator\": false\n\t}\n}\n```\n\n#### Examples\n\n* Activate if a message is sent by a user in the designated channel and carries a designated message:  \n   `username == \"user1\" \u0026\u0026 /^starts with .+? and ends with$/.test(message)`\n* ![Rule](https://gcdnb.pbrd.co/images/UlR6NcwQkFMk.png?o=1)\n  ![Reaction](https://gcdnb.pbrd.co/images/n2uY8uVVo1CF.png?o=1)\n\n### Reactions\n\n\u003e Reactions are responses to rules activation/triggering.  \n\u003e Same syntax as [Triggers](#triggers \"Triggers\") but bot-oriented instead of event/message-oriented.\n\n\u003e Theoretically you can write both Triggers/Reacts in the \"Reply\" field but as a good practice try to always separate them into their respective areas.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalen-h%2Ftwitchbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalen-h%2Ftwitchbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalen-h%2Ftwitchbot/lists"}