question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

youtube-chat won't start up/work

See original GitHub issue

I am trying to get the Youtube chat messages but youtube-chat wouldn’t even emit the “start” event, i’ve had a hidden stream running while running my code. Here’s my code:

function initInterpreter() {

const LC = new LiveChat({channelId: "UCaT3tgLp3NYg_UwcU_D2nvQ"}); // Stratzenblitz channel ID: UCTIgONilLxeAPqkiZrqZOzg

LC.on("start", (LiveId) => {
    YT_Display.YT_Connect();
    console.log(chalk.yellow(`Youtube live chat ID: ${LiveId}`));
});

LC.on("end", (reason) => {
    YT_Display.YT_Disconnect();
    console.log(chalk.yellow(`Reason: ${reason}`));
});

LC.on("comment", async (comment) => {
    var command = await checkCommands();
    switch(command) {
        case "left":
            console.log("Left");
            break;
        case "right": 
            console.log("right");
            break;
        case "back":
            console.log("backwards");
            break;
        case "forward":
            console.log("forwards");
            break;
    }
});

LC.on("error", (err) => {
    YT_Display.YT_Error();
    console.log(chalk.hex("#db0000")(err));
});

}

initInterpreter();

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
Chipsnetcommented, Jan 24, 2021

you must do LC.start();

0reactions
Chipsnetcommented, Jan 25, 2021

I had the exact same problem, but I solved it by running yarn add tslib. If you are using npm, replace it and run it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use Upworks Video Chat Feature - YouTube
There is too much confusion out there for freelancers regarding Upworks video chat feature. Let me show you how to use it properly...
Read more >
How To Meet Other Freelancers Through Upwork - YouTube
A network of like-minded freelancers is key to growing your business and finding new clients. Event Manager Will Simpson and Community ...
Read more >
How to get started on Upwork | Upwork 101 - YouTube
" Upwork empowers freelancers across the globe to build their independent businesses. Learn how to set up your Upwork profile for success and ......
Read more >
Why Upwork Clients Won't Respond to Your Proposals
2 REASONS: Why Upwork Clients Won't Respond to Your Proposals ... the Channel ➥ https:// youtube.com/c/lexdeville/join ☠️ Chat with us in ...
Read more >
Upwork Updates to Voice and Video Calls for 2020 - YouTube
Welcome to my channel where I help you escape corporate prison and build a freelance empire. :)☠️ Support the Channel➥ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found