From 50fe0b18e92bc9316c01d6cce690a7c431f48b03 Mon Sep 17 00:00:00 2001 From: mfaltys Date: Mon, 7 Mar 2022 15:33:26 -0600 Subject: [PATCH] Fix dubs order --- lorebot/lorebot.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lorebot/lorebot.go b/lorebot/lorebot.go index 9547ef8..dea0a11 100644 --- a/lorebot/lorebot.go +++ b/lorebot/lorebot.go @@ -311,6 +311,9 @@ func dubsHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient * return } + // roll a number + rollHandler(s, m) + // pick a random one rand.Seed(time.Now().UnixNano()) rngDubs := fmt.Sprint(command[rand.Intn(len(command))]) @@ -327,7 +330,6 @@ func dubsHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient * //} else { // rollhandler(rtm, ev) //} - rollHandler(s, m) } func lunchHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient *redis.Client) {