This commit is contained in:
Chris Ham
2018-11-14 09:05:45 -08:00
parent 6e36e06ce9
commit 51f417b916
5 changed files with 249 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ const GHOBS = require('./lib/ghobs');
const FGFM = require('./lib/fgfm');
const cooldowns = require('./lib/cooldowns');
const util = require('./lib/util');
const Spotify = require('./lib/spotify');
// Read internal configuration
let config = require('./config.json');
@@ -96,6 +97,13 @@ const streamInit = (config, twitch) => {
director.on('CREDITS_SHOWN', (secondsUntilEnd) => {
twitch.editorChat.say(config.twitch.channel, `Thanks to everyone for watching and lurking! Have a wonderful night and stay comfy. greenhComfy`);
});
// Spotify integration
const spotify = new Spotify(config.spotify);
spotify.init()
.then(() => {
spotify.getPlaybackState();
});
// Chat commands
const commands = {