Browse Source

Remove some console output

pull/1/head
Tim Kuzhagaliyev 5 years ago
parent
commit
f2b839f53c
  1. 12
      lib/BansheeBot.js

12
lib/BansheeBot.js

@ -29,13 +29,9 @@ class BansheeBot { @@ -29,13 +29,9 @@ class BansheeBot {
.then(() => this.client.login(this.config.discordToken))
.then(() => console.log('Connected!'))
.then(() => console.log('Searching for the music channel...'))
.then(() => console.log('Bootstrapping Last.fm...'))
.then(() => this.findMusicChannel())
.then(musicChannel => this.musicChannel = musicChannel)
.then(() => console.log('Channel found!'))
.then(() => console.log('Bootstrapping to Last.fm...'))
.then(()=> this.prepareLastFm())
.then(musicChannel => this.prepareLastFm(musicChannel))
.then(() => console.log('Done!'))
.catch(error => console.error(error));
@ -50,12 +46,12 @@ class BansheeBot { @@ -50,12 +46,12 @@ class BansheeBot {
});
}
prepareLastFm() {
prepareLastFm(musicChannel) {
return Promise.resolve()
.then(() => this.lastfm.stream(this.config.lastFmUsername))
.then(lastFmStream => {
lastFmStream.on('nowPlaying', (track) => {
this.musicChannel.send('Now playing: ' + track.name);
musicChannel.send('Now playing: ' + track.name);
});
})
}

Loading…
Cancel
Save