dlivetv-api
v2.1.21
Published
A broad reaching API for DLive
Downloads
56
Readme
DLive-api
Documentation
Example
const Dlive = require('dlivetv-api');
const key = 'MyReallyLongAuthenticationKey'; // Not sure where to get your auth key? Check the documentation link above!
// Create a bot instence on LKD70's channel
const bot = new Dlive(key, 'LKD70');
// Monitor for 'ChatText' events
bot.on('ChatText', msg => {
// Log every message recieved to the console
console.log(`[${msg.sender.displayname}]: ${msg.content}`);
// If someone says "hello" in our stream, greet then with a message
if (msg.content.toLowerCase() === 'hello') {
bot.sendMessage(`Hi there ${msg.sender.displayname}! Welcome to the stream`);
}
});
Support
Need help with something? Or just want to hang out? Or maybe even offer a helping hand with the project? Feel free to check out my Discord server, everyone is welcome to contribute to the project as long as they follow the eslint and editorconfig standards!
Credits
Though this project is currently only coded and maintained by myself, I wouldn't have got to this point without the guidance of several other people and repositories. Here's some repos that have helped me out that you should also check out for yourself:
- Dlivetv-api-js - The origin of the earlier versions of this project and inspiration for this project. Created and maintained by the DLive-APIs team
- dlive-js - A very diverse broad reaching API that ventures in to a LINO API as well as a Dlive API by the amazing CreativeBuilds
- DliveBot - A nifty bot for Dlive that is easy to use and comes with tonnes of functionality, credits to Dan Scott for introducing me to this bot