@ -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,8 +18,8 @@ type config struct {
type activeNerf struct {
GeneralChannelID string `json:"channelID"`
NotInGeneralNerf int `json:"nerfFactor"`
GeneralChannelID []string `json:"channelID"`
type Reward struct {
@ -61,7 +61,7 @@ func init() {
//Exposed Variables
var (
GeneralChannelID string
GeneralChannelID []string
NotInGeneralNerf int
)
var Admins []string