From 3bce63443f9b15ce4f3832c430dcf23e8310f5d4 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 29 Oct 2020 22:04:34 -0400 Subject: [PATCH] Add log-opts to config file. --- main.go | 3 +-- types.go | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 67a9f1a..7c3a488 100644 --- a/main.go +++ b/main.go @@ -74,7 +74,6 @@ func main() { dg.AddHandler(messageCreate) dg.AddHandler(readReaction) dg.AddHandler(guildMemberUpdate) - dg.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsAll) err = dg.Open() @@ -391,4 +390,4 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { saveConfig() } } -} \ No newline at end of file +} diff --git a/types.go b/types.go index 0269c08..0f9f275 100644 --- a/types.go +++ b/types.go @@ -1,6 +1,7 @@ package main import "time" +import "github.com/rudi9719/loggy" // Config struct used for bot type Config struct { @@ -17,6 +18,7 @@ type Config struct { Unverified map[string]time.Time Verifications map[string]Verification Probations map[string]time.Time + LogOpts loggy.LogOpts } // Verification struct used for storing and logging