|
|
@ -22,7 +22,13 @@ func Reward(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
amountToIncrement := calculateIncrement(m.Author.ID)
|
|
|
|
amountToIncrement := calculateIncrement(m.Author.ID)
|
|
|
|
if m.ChannelID != config.GeneralChannelID {
|
|
|
|
found := false
|
|
|
|
|
|
|
|
for _, v := range config.GeneralChannelID {
|
|
|
|
|
|
|
|
if v == m.ChannelID {
|
|
|
|
|
|
|
|
found = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if !found {
|
|
|
|
amountToIncrement /= config.NotInGeneralNerf
|
|
|
|
amountToIncrement /= config.NotInGeneralNerf
|
|
|
|
}
|
|
|
|
}
|
|
|
|
multiplier, err := db.GetPrestigeMultiplier(m.Author.ID)
|
|
|
|
multiplier, err := db.GetPrestigeMultiplier(m.Author.ID)
|
|
|
|