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. 3
      main.go
  2. 2
      types.go

3
main.go

@ -74,7 +74,6 @@ func main() { @@ -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) { @@ -391,4 +390,4 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
saveConfig()
}
}
}
}

2
types.go

@ -1,6 +1,7 @@ @@ -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 { @@ -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

Loading…
Cancel
Save