diff --git a/.version b/.version index 2e7bd91..53b5bbb 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v1.5.0 +v1.5.1 diff --git a/bot/cmd_settings.go b/bot/cmd_settings.go index 3355e2c..05fc53d 100644 --- a/bot/cmd_settings.go +++ b/bot/cmd_settings.go @@ -149,7 +149,7 @@ func getActionFromArgs(args []string) string { } c := args[1] - if c != actionAdd && c != actionRemove { + if c != actionAdd && c != actionRemove && c != actionReset { return "" } @@ -161,6 +161,7 @@ func handleListenUpdate(s *discordgo.Session, args []string, settings *repositor // if we are resetting, just empty and return early if action == actionReset { settings.ListeningChannels = nil + return nil, nil } // if we get an action but no channels