Skip to content

See YouTube Live Chat through a flexible filtering engine.

License

Notifications You must be signed in to change notification settings

sigvt/masterchat-cli

Repository files navigation

Masterchat CLI

npm npm: total downloads

screenshot

See YouTube Live Chat through a flexible filtering engine. For a desktop app, see ☄️ Komet.

Install

npm i -g masterchat-cli

masterchat --help
mc --help

Use

stream, s

Print live/replay chats.

mc stream -n <video ID or URL>
mc stream WpjhEqjngRQ --filter 'isSuperchat && color === "green"' --name # Only show green super chats
mc stream WpjhEqjngRQ --filter 'isMember' # Only show chats from members
mc stream WpjhEqjngRQ --filter 'isModerator || isVerified || isOwner' --name # Print chats from moderators/verified accounts/channel owner
mc stream WpjhEqjngRQ --filter '/^(\\[[a-z]+?\\]|[a-z]+?: )/i.test(message)' # Print live translations
mc stream WpjhEqjngRQ --filter 'message.includes("草")' # Only show chat contains 草

Options

  • --type, -t <string>: Chat type (top or all)
  • --name, -n: Show author name
  • --filter, -f <string>: Filter chat/superchat events
  • --mods: Print moderation events
  • --verbose, -v: Print additional info
  • --collect, -c: Save received actions as JSONLines (.jsonl)

watch

Print all events except live chats.

mc watch
mc watch --org Hololive
mc watch WpjhEqjngRQ

pbd

pb params decoder.

mc pbd 'EglwbGF5bGlzdHM%3D'

Community

Ask questions in #masterchat channel on holodata Discord server.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


uetchy

💻

Daniils Petrovs

💻

This project follows the all-contributors specification. Contributions of any kind welcome!