Add log-opts to config file.
This commit is contained in:
3
main.go
3
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
types.go
2
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
|
||||
|
||||
Reference in New Issue
Block a user