Add log-opts to config file.
This commit is contained in:
1
main.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
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
|
||||||
|
|||||||
Reference in New Issue
Block a user