{"id":23061815,"url":"https://github.com/rrwen/mixer-bot","last_synced_at":"2025-08-02T02:34:12.302Z","repository":{"id":57298585,"uuid":"247139505","full_name":"rrwen/mixer-bot","owner":"rrwen","description":"Simplified chat bot for the mixer live streaming platform","archived":false,"fork":false,"pushed_at":"2020-03-16T20:28:39.000Z","size":1253,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T08:53:49.017Z","etag":null,"topics":["bot","chat","live","microsoft","mixer","ms","platform","simple","stream","streaming"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/mixer-bot","language":"JavaScript","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/rrwen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-13T18:41:37.000Z","updated_at":"2020-03-16T20:28:41.000Z","dependencies_parsed_at":"2022-08-26T18:02:29.574Z","dependency_job_id":null,"html_url":"https://github.com/rrwen/mixer-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rrwen/mixer-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fmixer-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fmixer-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fmixer-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fmixer-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rrwen","download_url":"https://codeload.github.com/rrwen/mixer-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrwen%2Fmixer-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268327486,"owners_count":24232672,"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-08-02T02:00:12.353Z","response_time":74,"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":["bot","chat","live","microsoft","mixer","ms","platform","simple","stream","streaming"],"created_at":"2024-12-16T03:18:33.592Z","updated_at":"2025-08-02T02:34:12.255Z","avatar_url":"https://github.com/rrwen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mixer-bot\n\nRichard Wen  \nrrwen.dev@gmail.com  \n\n* [Github](https://github.com/rrwen/mixer-bot)\n* [Documentation](https://rrwen.github.io/mixer-bot)\n\nSimplified chat bot for the mixer live streaming platform\n\n[![npm version](https://badge.fury.io/js/mixer-bot.svg)](https://badge.fury.io/js/mixer-bot)\n[![Build Status](https://travis-ci.org/rrwen/mixer-bot.svg?branch=master)](https://travis-ci.org/rrwen/mixer-bot)\n[![npm](https://img.shields.io/npm/dt/mixer-bot.svg)](https://www.npmjs.com/package/mixer-bot)\n[![GitHub license](https://img.shields.io/github/license/rrwen/mixer-bot.svg)](https://github.com/rrwen/mixer-bot/blob/master/LICENSE)\n[![Donate](https://img.shields.io/badge/donate-Donarbox-yellow.svg)](https://donorbox.org/rrwen)\n[![Twitter](https://img.shields.io/twitter/url/https/github.com/rrwen/mixer-bot.svg?style=social)](https://twitter.com/intent/tweet?text=Simplified%20chat%20for%20the%20mixer%20live%20streaming%20platform:%20https%3A%2F%2Fgithub.com%2Frrwen%2Fmixer-bot%20%23nodejs%20%23npm)  \n  \n**Note**: This is based on a [Mixer chat bot tutorial](https://dev.mixer.com/guides/chat/chatbot) on the developer's page\n\n## Install\n\n1. Install [Node.js](https://nodejs.org/en/)\n2. Install [mixer-bot](https://www.npmjs.com/package/mixer-bot) via `npm`\n\n```\nnpm install -g mixer-bot\n```\n\nFor the latest developer version, see [Developer Notes](DEVELOPER.md).\n\n## Usage\n\nThe `mixerbot` package can be used as a command line tool or programatically in Node.js.\n\n### In the Command Line\n\nCreate a `.env` file in the current directory if it does not exist:\n\n* Replace `\u003ctoken\u003e` with your access token\n* A file `.env` will be created (**do not share this file**)\n\n```\nmixer-bot env \u003ctoken\u003e\n```\n\nTo run a mixer-bot:\n\n* `\u003cname\u003e` is the name of the mixer-bot npm package or .js file \n\n```\nmixer-bot run \u003cname\u003e\n```\n\nIf you want to create your own mixer-bot:\n\n1. Create a bot template file `mixer-bot template`\n2. Edit this file to change bot behaviour\n3. Run the both with `mixer-bot run`\n\n```\nmixer-bot template ./template.js\nmixer-bot run template.js\n```\n\n### In Node.js\n\nAn example usage of mixer-bot in `node`:\n\n```javascript\nconst mixerbot = require('mixer-bot');\n\n// Create a .env file in the same location and set\n// MIXER_ACCESS_TOKEN=***\n// MIXER_CHANNEL_ID=***\n\n// Setup options\nvar options = {};\noptions.on = {};\noptions.greeting = 'Hello!';\n\n// Setup channel ID\n// If left unset, this will be the id to your channel\n// Get your channel id here: https://mixer.com/api/v1/channels/\u003cusername\u003e?fields=id\n// options.channel_id = '\u003cCHANNEL_ID\u003e';\n\n// Welcome a user when they join\noptions.on.UserJoin = data =\u003e {\n    socket = data.socket;\n    return response =\u003e {\n        socket.call('msg',[\n            `Hi ${response.username}! I'm pingbot! Write !ping and I will pong back!`,\n        ]);\n    }\n};\n\n// Assign bot to pong user if they message !ping\noptions.on.ChatMessage = data =\u003e {\n    socket = data.socket;\n    return response =\u003e {\n        if (response.message.message[0].data.toLowerCase().startsWith('!ping')) {\n            socket.call('msg', [`@${response.user_name} PONG!`]);\n            console.log(`Ponged ${response.user_name}`);\n        }\n    }\n};\n\n// Handle errors\noptions.on.error = data =\u003e {\n    return error =\u003e {\n        console.error('Socket error');\n        console.error(error);\n    }\n};\n\n// Run mixer bot\nmixerbot(options);\n```\n\nSee [Documentation](https://rrwen.github.io/mixer-bot) for more details.\n\n## Contributions\n\n1. Reports for issues and suggestions can be made using the [issue submission](https://github.com/rrwen/mixer-bot/issues) interface.\n2. Code contributions are submitted via [pull requests](https://github.com/rrwen/mixer-bot/pulls)\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for more details.\n\n## See Also\n\n* [Developer Notes](DEVELOPER.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrwen%2Fmixer-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrwen%2Fmixer-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrwen%2Fmixer-bot/lists"}