Add log-opts to config file.

This commit is contained in:
2020-10-29 22:04:34 -04:00
parent bf031199a4
commit 3bce63443f
2 changed files with 3 additions and 2 deletions

View File

@ -74,7 +74,6 @@ func main() {
dg.AddHandler(messageCreate) dg.AddHandler(messageCreate)
dg.AddHandler(readReaction) dg.AddHandler(readReaction)
dg.AddHandler(guildMemberUpdate) dg.AddHandler(guildMemberUpdate)
dg.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsAll) dg.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsAll)
err = dg.Open() err = dg.Open()
@ -391,4 +390,4 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
saveConfig() saveConfig()
} }
} }
} }

View File

@ -1,6 +1,7 @@
package main package main
import "time" import "time"
import "github.com/rudi9719/loggy"
// Config struct used for bot // Config struct used for bot
type Config struct { type Config struct {
@ -17,6 +18,7 @@ type Config struct {
Unverified map[string]time.Time Unverified map[string]time.Time
Verifications map[string]Verification Verifications map[string]Verification
Probations map[string]time.Time Probations map[string]time.Time
LogOpts loggy.LogOpts
} }
// Verification struct used for storing and logging // Verification struct used for storing and logging