Browse Source

Add log-opts to config file.

hkremer/rebranding
Gregory Rudolph 4 years ago
parent
commit
3bce63443f
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 1
      main.go
  2. 2
      types.go

1
main.go

@ -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()

2
types.go

@ -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

Loading…
Cancel
Save