masterchat-cli
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Masterchat CLI

npm npm: total downloads

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

print

Print live/replay chats.

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

Options

  • --type, -t <string>: Chat type (top or all)
  • --author, -a: Show author name
  • --filter, -f <string>: Filter chat/superchat events
  • --mod: 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!

/masterchat-cli/

    Package Sidebar

    Install

    npm i masterchat-cli

    Weekly Downloads

    21

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    37.8 kB

    Total Files

    19

    Last publish

    Collaborators

    • uetchy