{"id":25448152,"url":"https://github.com/rnelson/imvote","last_synced_at":"2025-05-16T07:09:17.504Z","repository":{"id":277753201,"uuid":"933386008","full_name":"rnelson/imvote","owner":"rnelson","description":"Streamer.bot command for voting on Iron Mario","archived":false,"fork":false,"pushed_at":"2025-02-15T21:03:36.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T21:27:46.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/rnelson.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":"2025-02-15T20:36:00.000Z","updated_at":"2025-02-15T21:03:39.000Z","dependencies_parsed_at":"2025-02-15T21:37:51.189Z","dependency_job_id":null,"html_url":"https://github.com/rnelson/imvote","commit_stats":null,"previous_names":["rnelson/imvote"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnelson%2Fimvote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnelson%2Fimvote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnelson%2Fimvote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnelson%2Fimvote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rnelson","download_url":"https://codeload.github.com/rnelson/imvote/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485048,"owners_count":22078767,"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":"2025-02-17T19:18:58.335Z","updated_at":"2025-05-16T07:09:17.478Z","avatar_url":"https://github.com/rnelson.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Iron Mario Voting\n\n[DGR_Bot](https://www.twitch.tv/DGR_Bot) was having some issues (sounds like maybe memory limits on its hosting?) while [Dave](https://www.twitch.tv/DGR_Dave) was trying to run the Iron Mario Epic Fails contest. Contest voting was put on hold until voting can be sorted out.\n\nLearning how to work with [Streamer.bot](https://streamer.bot) had been on my list for a while, so I took this as an opportunity to learn how to write a custom handler.\n\nI only tested this briefly with a single voter (myself), and because my stream wasn't live I'm not sure if the shoutout functionality works, but this may work as-is and is a good starting point if nothing else. I welcome [contributions](https://github.com/rnelson/imvote/pulls)!\n\n## Setup\n\nAdding this to your Streamer.bot setup is pretty simple. You just need to add a new action, give it a trigger of a Twitch chat message, and add a sub-action of executing C# code.\n\n![Action](https://github.com/rnelson/imvote/blob/main/img/01-new_action.png)\n\nWhen you add the C# code sub-action, it will open up a new window. Replace the entire text with the contents of [CPHInline.cs](https://github.com/rnelson/imvote/blob/main/CPHInline.cs). Then, click the *Find Refs* button. You should see something like this:\n\n![References](https://github.com/rnelson/imvote/blob/main/img/02-refs.png)\n\nSimply click *Save and Compile* and you're ready to go!\n\n## Usage\n\n| Command    | Users       | Arguments                                                    | Description     |\n|------------|-------------|--------------------------------------------------------------|-----------------|\n| `!imopen`  | Moderators  | `time` (seconds:integer), `streamer` (for a shoutout:string) | Opens voting    |\n| `!imvote`  | Anyone      | `score` (vote from 1 to 10:integer)                          | Submits a vote  |\n| `!imclose` | Moderators  |                                                              | Closes voting   |\n\nThe voting will automatically end `time` seconds after opening, but a moderator can close it earlier by manually sending `!imclose`.\n\n![Sample runs](https://github.com/rnelson/imvote/blob/main/img/03-sample_runs.png)\n\n## License\n\nReleased under the [MIT License](http://rnelson.mit-license.org).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnelson%2Fimvote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frnelson%2Fimvote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnelson%2Fimvote/lists"}