leaphant / pagkibot Goto Github PK
View Code? Open in Web Editor NEWDiscord bot for instant Twitch live notifications using Twitch's PubSub API.
License: MIT License
Discord bot for instant Twitch live notifications using Twitch's PubSub API.
License: MIT License
Hello there
Down below is what it gives in terminal when a user goes live how can we fix this issue?
/index.js:942
apiClient.kraken.channels.getChannel(id).then(_data => {
^
ReferenceError: id is not defined
at incomingPubSub (/Whitebots/Stream-Notify/pagkibot/index.js:942:50)
at WebSocket. (/Whitebots/Stream-Notify/pagkibot/index.js:90:9)
at WebSocket.emit (events.js:315:20)
at Receiver.receiverOnMessage (/Whitebots/Stream-Notify/pagkibot/node_modules/ws/lib/websocket.js:970:20)
at Receiver.emit (events.js:315:20)
at Receiver.dataMessage (/Whitebots/Stream-Notify/pagkibot/node_modules/ws/lib/receiver.js:517:14)
at Receiver.getData (/Whitebots/Stream-Notify/pagkibot/node_modules/ws/lib/receiver.js:435:17)
at Receiver.startLoop (/Whitebots/Stream-Notify/pagkibot/node_modules/ws/lib/receiver.js:143:22)
at Receiver._write (/Whitebots/Stream-Notify/pagkibot/node_modules/ws/lib/receiver.js:78:10)
at writeOrBuffer (internal/streams/writable.js:358:12)
In the past there was a feature that prevented posting a new message on streams that recently ended. This prevented message spams on streams from unstable connections. Unfortunately this could also in some circumstances prevent a legitimate message from being posted. To reimplement this properly I will have to track past streams which might also be useful for other stuff.
data:
{ error: 'Unauthorized',
status: 401,
message: 'OAuth token is missing' } } }
Apparently newer Client IDs can't access the Twitch API v5 in the same way as old ones.
Can we use another API instead of Twitch PubSub? If we do, can we remove the 500 followers limit?
You get a response from twitch, that the old api is deprecated.
"<username> is streaming"
should be prefixed for every notification message so users on mobile can see who is streaming properly in their push notifications
So I installed everything and I ran !twitch-track once and it responded, then I ran it again with a different username and no response. The only command that works now is !twitch-tracking.
My systemctl shows pm2 running and active, it's set to startup too. And when I check the status it says online. I'm running this from a Raspberry Pi 4 with the standard Raspberry OS (I think that's debian flavor).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.