node-twitchstream
Version:
[WIP] A npm package that allows you to stream to twitch.tv
57 lines (47 loc) • 1.26 kB
JavaScript
throw new Error('This Project is WIP, and is not working yet!');
const utilities = require('./modules/utils.js');
const core = require('./modules/core.js');
const extra = require('./modules/extra.js');
class TwitchTVStream {
constructor(pClientID = null, pClientSecret = null)
{
this._core = false;
this._extra = false;
if( pClientID == null || pClientSecret == null ){
throw new Error('Invalid constructor input!');
}
/* INIT CORE */
/* INIT EXTRA */
}
/* <Core Features> */
stream()
{
if (!this._core) {
throw new Error('Core is not initialized!')
}
}
stop()
{
if (!this._core) {
throw new Error('Core is not initialized!')
}
}
/* </> */
/* <Extra Features> */
set title(x)
{
if (!this._extra) {
throw new Error('Extra is not initialized!')
}
this._extra.setTitle();
}
get title()
{
if (!this._extra) {
throw new Error('Extra is not initialized!')
}
return this._extra.getTitle();
}
/* </> */
}
module.exports = TwitchTVStream;