-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
it does not work when i put my channel id:
//const liveChat = new LiveChat({ liveId: "0cWertczhs0" })
const liveChat = new LiveChat({ channelId: "UC8v86z0UWlgIg-foURD1Lyw" })
const ok = liveChat.start()
// Emit at start of observation chat.
// liveId: string
liveChat.on("start", (liveId) => {
/* Your code here! */
console.log("1");
})
// Emit at end of observation chat.
// reason: string?
liveChat.on("end", (reason) => {
/* Your code here! */
console.log("2");
})
// Emit at receive chat.
// chat: ChatItem
liveChat.on("chat", (chatItem) => {
/* Your code here! */
console.log("3");
})
// Emit when an error occurs
// err: Error or any
liveChat.on("error", (err) => {
/* Your code here! */
console.log("4");
})
// Start fetch loop
if (!ok) {
console.log("Failed to start, check emitted error")
}
error:
D:\999 - OS\Documents\LoquendoBotV2\node_modules\axios\lib\adapters\xhr.js:210 GET https://consent.youtube.com/m?continue=https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUC8v86z0UWlgIg-foURD1Lyw%2Flive&gl=NL&m=0&pc=yt&uxe=23983171&hl=en&src=1 403
neverclear86
Metadata
Metadata
Assignees
Labels
No labels