diff --git a/lorebot/lorebot.go b/lorebot/lorebot.go index d3e4f7b..afc4876 100644 --- a/lorebot/lorebot.go +++ b/lorebot/lorebot.go @@ -317,6 +317,8 @@ func rnghandler(rtm *slack.RTM, ev *slack.MessageEvent, redisClient *redis.Clien glogger.Error.Println(err) println(err) } + // pick a random one + rand.Seed(time.Now().UnixNano()) rngLore := fmt.Sprint(command[rand.Intn(len(command))]) println(rngLore)