Masterchat
π¬ Get full access to YouTube Live Chat
Install / Use
/learn @sigvt/MasterchatREADME
Masterchat
Masterchat is the most powerful library for YouTube Live Chat, supporting parsing 20+ actions, video comments and transcripts, as well as sending messages and moderating chats.
Install
npm install masterchat
import { Masterchat, stringify } from "masterchat";
const mc = await Masterchat.init("oyxvhJW1Cf8");
const chats = mc.iter().filter((action) => action.type === "addChatItemAction");
for await (const chat of chats) {
console.log(`${chat.authorName}: ${stringify(chat.message)}`);
}
See MANUAL for further instructions.
CLI
npm i -g masterchat-cli
mc watch --org Hololive
See masterchat-cli for detailed usage.
Desktop App
See βοΈKomet for further information.
Community
Contributing
- Use masterchat with
DEBUG=masterchatand report logs that are prefixed with[action required] - Squash TODOs
See Contribution Guide for more information.
Ask questions in #masterchat channel on holodata Discord server.
Contributors β¨
Thanks goes to these wonderful people (emoji key):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tr> <td align="center"><a href="https://github.com/uetchy"><img src="https://avatars.githubusercontent.com/u/431808?v=4?s=50" width="50px;" alt=""/><br /><sub><b>uetchy</b></sub></a><br /><a href="https://github.com/holodata/masterchat/commits?author=uetchy" title="Code">π»</a></td> <td align="center"><a href="http://www.plurk.com/stu43005"><img src="https://avatars.githubusercontent.com/u/1288549?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Shiaupiau</b></sub></a><br /><a href="https://github.com/holodata/masterchat/commits?author=stu43005" title="Code">π»</a></td> <td align="center"><a href="https://jan-prochazka.eu/"><img src="https://avatars.githubusercontent.com/u/1665677?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Jan ProchΓ‘zka</b></sub></a><br /><a href="https://github.com/holodata/masterchat/commits?author=jprochazk" title="Code">π»</a></td> <td align="center"><a href="https://github.com/sphinxrave"><img src="https://avatars.githubusercontent.com/u/62570796?v=4?s=50" width="50px;" alt=""/><br /><sub><b>sphinxrave</b></sub></a><br /><a href="https://github.com/holodata/masterchat/issues?q=author%3Asphinxrave" title="Bug reports">π</a></td> <td align="center"><a href="https://github.com/RiceCakess"><img src="https://avatars.githubusercontent.com/u/3145205?v=4?s=50" width="50px;" alt=""/><br /><sub><b>David Chen</b></sub></a><br /><a href="https://github.com/holodata/masterchat/issues?q=author%3ARiceCakess" title="Bug reports">π</a> <a href="#ideas-RiceCakess" title="Ideas, Planning, & Feedback">π€</a></td> <td align="center"><a href="https://github.com/MadProbe"><img src="https://avatars.githubusercontent.com/u/49519179?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Evgeniy Istomin</b></sub></a><br /><a href="https://github.com/holodata/masterchat/commits?author=MadProbe" title="Documentation">π</a></td> </tr> </table> <!-- markdownlint-restore --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END -->This project follows the all-contributors specification. Contributions of any kind are welcome!
