Fixed user.Send() in main.go
This commit is contained in:
parent
ae5bd564d0
commit
5f39ce7b5b
2
main.go
2
main.go
|
@ -96,6 +96,8 @@ func (dj *mumbledj) OnSongFinished() {
|
|||
if err := dj.currentSong.Download(); err == nil {
|
||||
dj.currentSong.Play()
|
||||
} else {
|
||||
username := dj.currentSong.submitter
|
||||
user := dj.client.Self().Channel().Users().Find(username)
|
||||
user.Send(AUDIO_FAIL_MSG)
|
||||
dj.currentSong.Delete()
|
||||
}
|
||||
|
|
Reference in a new issue