@ -22,7 +22,13 @@ func Reward(s *discordgo.Session, m *discordgo.MessageCreate) {
}
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
multiplier, err := db.GetPrestigeMultiplier(m.Author.ID)
@ -18,7 +18,7 @@ type config struct {
type activeNerf struct {
GeneralChannelID string `json:"channelID"`
GeneralChannelID []string `json:"channelID"`
NotInGeneralNerf int `json:"nerfFactor"`
@ -61,7 +61,7 @@ func init() {
//Exposed Variables
var (
GeneralChannelID string
GeneralChannelID []string
NotInGeneralNerf int
)
var Admins []string