{"id":13338824,"url":"https://github.com/Suprnova/mute-for-twitch","last_synced_at":"2025-03-11T10:32:05.523Z","repository":{"id":129962262,"uuid":"285706244","full_name":"Suprnova/mute-for-twitch","owner":"Suprnova","description":"Mutes the host's mic using a custom keybind in response to the amount of donations given to a Twitch stream.","archived":false,"fork":false,"pushed_at":"2020-11-13T21:09:29.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-23T22:19:33.295Z","etag":null,"topics":["bot","discord","mutes","twitch","twitch-api","twitch-bot","voice"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Suprnova.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":"2020-08-07T01:16:21.000Z","updated_at":"2020-11-13T21:09:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"6eb6024b-21e1-493c-90fb-535ab9ab2bbd","html_url":"https://github.com/Suprnova/mute-for-twitch","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/Suprnova%2Fmute-for-twitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suprnova%2Fmute-for-twitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suprnova%2Fmute-for-twitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suprnova%2Fmute-for-twitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Suprnova","download_url":"https://codeload.github.com/Suprnova/mute-for-twitch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243015483,"owners_count":20222086,"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":["bot","discord","mutes","twitch","twitch-api","twitch-bot","voice"],"created_at":"2024-07-29T19:17:22.245Z","updated_at":"2025-03-11T10:32:05.512Z","avatar_url":"https://github.com/Suprnova.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mute-for-twitch\nA console application that will mute the host's mic for a certain amount of time based on how much money they receive from their Twitch stream. Features support for Bits, Subs, and Gift Subs, customizable keybinds, and stacking durations.\n# Usage\n1. Download and unzip files.\n2. Install [node.js](https://nodejs.org/en/) and npm. (npm should be preinstalled from node.js.)\n3. Open Command Prompt as Administrator, navigate to the folder you unzipped the files to with [cd](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cd), and type the following commands:\n  - npm i tmi.js\n  - npm i --global --production windows-build-tools\n4. Open a non-admin Command Prompt window and type \"npm i robotjs\".\n5. Open mutehost.js in a text editor and make the following edits:\n  - Replace **\\\u003cusername\u003e**, **\\\u003cpassword\u003e**, and **\\\u003cchannel(s)\u003e** on lines 3, 4, and 5 with the username of the bot, the OAuth token of the bot from [this link](https://twitchapps.com/tmi/), and each channel that the bot will connect to. (This information is stored in an array, if you want to connect to multiple channels, surround each channel name with **'** and separate each one with \", \".)\n  - Replace the values on lines 6, 7, and 8 to your desired values, if preferred.\n  - Change the keybinds on line 80 and line 87 to match the keybind used for muting on Discord, OBS, etc.. (The current parameters will use the keybind **CTRL + INSERT**, visit [this link](https://web.archive.org/web/20200421084016/http://robotjs.io:80/docs/syntax) for more information on how to properly configure it.\n  \nYour text should look something like this:\n``` node\nvar user = 'mutenovabot';\nvar pass = 'oauth:****************';\nvar channels = ['purple_foundation', 'suprnova', 'itspepperpot'];\nvar bitMultiplier = 0.5; // 0.5 seconds per bit\nvar subMultiplier = 125; // 125 seconds per sub\nvar giftSubMultiplier = 125; // 125 seconds per gift sub\n\n...\n\n\trobot.keyToggle('alt', 'down');\n\trobot.keyTap('g');\n\trobot.keyToggle('alt', 'up');\n\t// Keybind is ALT + G\n```\n6. Navigate to the folder you unzipped the files to in Command Prompt and type \"node mutehost.js\".\n\nCongrats! The bot is now up and running. You'll have to do Step 6 every time you want to have the bot go online.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSuprnova%2Fmute-for-twitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSuprnova%2Fmute-for-twitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSuprnova%2Fmute-for-twitch/lists"}