From 0918eda312769334ef4c1d2b5866a6384a16ab27 Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 31 May 2021 23:31:56 +0100 Subject: [PATCH] yo --- cmd/main.go | 2 ++ models/config.go | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/cmd/main.go b/cmd/main.go index 3a745c5..137c87f 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -97,6 +97,8 @@ func main() { o := overwatch.Overwatch{ TotalMessages: 0, UserMessages: make(map[string]*overwatch.UserMessageStat), + Commands: &c, + Config: &Config, } // Add Handlers for Bot diff --git a/models/config.go b/models/config.go index 0b6f484..a2f6ae9 100644 --- a/models/config.go +++ b/models/config.go @@ -40,4 +40,11 @@ type Configuration struct { LoggingChannel string `json:"logging_channel"` ConfigPath string + + FilterLanguage bool + JoinFloodThreshold int + UserMessageThreshold int + MaxUserWarnings int + MaxUserKicks int + EnforceMode bool }