youtube-chat won't start up/work
See original GitHub issueI 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:
- Created 3 years ago
- Reactions:1
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

you must do
LC.start();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.