
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@livecord/notify
Advanced tools
Do you need my help? Visit our Discord server.
Node Version: 16.15.0
npm i @livecord/notify --save
# or
yarn add @livecord/notify
const { Twitch } = require('@livecord/notify');
const twitch = new Twitch({
client: {
id: 'YOUR_CLIENT_ID', // Your client ID
token: 'YOUR_TOKEN_HERE', // https://dev.twitch.tv/docs/authentication/getting-tokens
},
channels: [ 'clqu_' ], // Array of channels (required)
interval: 60000 // check channels every (optional) (default: 60000 [60 seconds])
});
twitch.on('ready', (ready) => {
console.log('Twitch connected at: ', ready);
});
twitch.on('live', channel => {
console.log(channel.user_name + " is live!");
});
twitch.on('offline', channel => {
console.log(channel.user_name + " is offline!");
});
const { Twitch } = require('@livecord/notify');
Twitch.getToken("CLIENT_ID", "CLIENT_SECRET").then(token => {
console.log(token);
}).catch(err => {
console.log(err);
})
const { YouTube } = require('@livecord/notify');
const youtube = new YouTube({
channels: [ '' ], // Array of channel ids (required)
interval: 1000, // check channels every 1000ms (1 second) (optional) (default: 60000 [60 seconds])])
useDatabase: true // use database to store videos (optional) (default: true)
});
youtube.subscribe('UCaZGQt419Ptsdk_lh2mz9lQ'); // Subscribe to a another channel
// For multiple: youtube.subscribe(['UCaZGQt419Ptsdk_lh2mz9lQ', 'UCaZGQt419Ptsdk_lh2mz9lQ']);
youtube.on('ready', (ready) => {
console.log('Youtube connected at: ', ready);
});
youtube.on('upload', video => {
console.log('Youtube new video!', video);
})
FAQs
Notifier for YouTube and Twitch.
The npm package @livecord/notify receives a total of 3 weekly downloads. As such, @livecord/notify popularity was classified as not popular.
We found that @livecord/notify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.