Browse Source

Remove some console output

tags/Beta0.1
Tim Kuzhagaliyev 2 years ago
parent
commit
f2b839f53c
1 changed files with 4 additions and 8 deletions
  1. 4
    8
      lib/BansheeBot.js

+ 4
- 8
lib/BansheeBot.js View File

@@ -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 {
});
}

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