Skip to content

Commit

Permalink
Setting hotfix (changed unmutedead setting erroneously)
Browse files Browse the repository at this point in the history
  • Loading branch information
denverquane committed Jan 4, 2021
1 parent 92b55de commit 2897855
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions discord/eventHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ func (bot *Bot) SubscribeToGameByConnectCode(guildID, connectCode string, endGam
correlatedUserID = userID
case task.GameOverJob:
var gameOverResult game.Gameover
log.Println("Successfully identified game over event:")
log.Println(job.Payload)
// log.Println("Successfully identified game over event:")
// log.Println(job.Payload)
err := json.Unmarshal([]byte(job.Payload.(string)), &gameOverResult)
if err != nil {
log.Println(err)
Expand Down
4 changes: 2 additions & 2 deletions discord/setting_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ func SettingMuteSpectators(s *discordgo.Session, m *discordgo.MessageCreate, set
ID: "settings.SettingMuteSpectators.true_noMuteSpectators",
Other: "I will now mute spectators just like dead players. \n**Note, this can cause delays or slowdowns when not self-hosting, or using a Premium worker bot!**",
}))
sett.SetUnmuteDeadDuringTasks(true)
sett.SetMuteSpectator(true)
return true
}
case args[2] == "false":
Expand All @@ -1088,7 +1088,7 @@ func SettingMuteSpectators(s *discordgo.Session, m *discordgo.MessageCreate, set
ID: "settings.SettingMuteSpectators.false_muteSpectators",
Other: "I will no longer mute spectators like dead players",
}))
sett.SetUnmuteDeadDuringTasks(false)
sett.SetMuteSpectator(false)
return true
}
s.ChannelMessageSend(m.ChannelID, sett.LocalizeMessage(&i18n.Message{
Expand Down

0 comments on commit 2897855

Please sign in to comment.