A Node.js tool to check if a Kick channel is currently live streaming.
-
Clone the repository:
git clone https://github.com/yourusername/kick-live-checker.git
-
Navigate to the project directory:
cd kick-live-checker
-
Install the dependencies:
npm install
To use kick-live-checker
as a standalone CLI tool, run the following command with the Kick channel name as an argument:
node index.js <channelName>
Replace <channelName>
with the name of the Kick channel you want to check.
Example:
node index.js xqc
To use kick-live-checker
in your project, first install it via npm:
npm install kick-live-checker
Then, import and use it in your code:
const { checkChannelLiveStatus } = require('kick-live-checker');
// Optional: Use your own logger
const winston = require('winston');
const customLogger = winston.createLogger({
level: 'info',
format: winston.format.simple(),
transports: [new winston.transports.Console()]
});
checkChannelLiveStatus('xqc', { logger: customLogger })
.then(result => {
console.log(result);
})
.catch(error => {
console.error(error);
});
If you don't provide a custom logger, kick-live-checker
will use its default logging configuration based on the NODE_ENV
environment variable.
When a channel is live, you’ll see output similar to:
{
"isLive": true,
"channelName": "xQc",
"title": "🛑LIVE🛑LIVE🛑LIVE🛑LIVE🛑DRAMA🛑STUFF🛑AHHHHHHHHH🛑",
"channelUrl": "https://kick.com/xqc"
}
When a channel is not live, the output will be:
{
"isLive": false,
"channelUrl": "https://kick.com/xqc"
}
This project relies on the following Node.js packages:
puppeteer
for web scraping and navigationwinston
for logging
This project is licensed under the Prosperity Public License. You are free to use this software non-commercially. For commercial use, please contact the author for permission or refer to the terms in the license.