|
|
@ -311,6 +311,9 @@ func dubsHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient * |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// roll a number
|
|
|
|
|
|
|
|
rollHandler(s, m) |
|
|
|
|
|
|
|
|
|
|
|
// pick a random one
|
|
|
|
// pick a random one
|
|
|
|
rand.Seed(time.Now().UnixNano()) |
|
|
|
rand.Seed(time.Now().UnixNano()) |
|
|
|
rngDubs := fmt.Sprint(command[rand.Intn(len(command))]) |
|
|
|
rngDubs := fmt.Sprint(command[rand.Intn(len(command))]) |
|
|
@ -327,7 +330,6 @@ func dubsHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient * |
|
|
|
//} else {
|
|
|
|
//} else {
|
|
|
|
// rollhandler(rtm, ev)
|
|
|
|
// rollhandler(rtm, ev)
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
rollHandler(s, m) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func lunchHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient *redis.Client) { |
|
|
|
func lunchHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient *redis.Client) { |
|
|
|