diff --git a/commands.go b/commands.go index 3016e04..2ae37cb 100644 --- a/commands.go +++ b/commands.go @@ -103,7 +103,7 @@ func getXKCD(s *discordgo.Session, m *discordgo.Message, ctx *mux.Context) { } else { arg = "random" } - matchedNum, _ := regexp.MatchString(`[0-9]+`, arg) + matchedNum, _ := regexp.MatchString(`^[0-9]+$`, arg) if arg == "latest" { comic, err = xkclient.Latest(context.Background()) } else if matchedNum {