Added logging of users who triggered a sound

This commit is contained in:
da
2017-01-31 23:32:02 +01:00
parent 2441e65072
commit c0e10ed0a8
+3
View File
@@ -281,6 +281,9 @@ func enqueuePlay(user *discordgo.User, guild *discordgo.Guild, coll *SoundCollec
if play == nil { if play == nil {
return return
} }
log.WithFields(log.Fields{
"user": user,
}).Info(user.Username + "triggered sound playback of " + sound.Name + " in " + coll.Prefix + " for server " + guild.Name + " in channel " + play.ChannelID)
// Check if we already have a connection to this guild // Check if we already have a connection to this guild
// this should be threadsafe // this should be threadsafe