Golang bot for managing discord verifications
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package main
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
// Config struct used for bot
|
|
|
|
type Config struct {
|
|
|
|
GuildID string
|
|
|
|
AdminChannel string
|
|
|
|
AdminRole string
|
|
|
|
MonitorRole string
|
|
|
|
MonitorChann string
|
|
|
|
VerifiedRole string
|
|
|
|
BumpTime time.Time
|
|
|
|
LastBumper string
|
|
|
|
Stats map[string]int
|
|
|
|
Unverified map[string]time.Time
|
|
|
|
Verifications map[string]Verification
|
|
|
|
Probations map[string]time.Time
|
|
|
|
}
|
|
|
|
|
|
|
|
// Verification struct used for storing and logging
|
|
|
|
type Verification struct {
|
|
|
|
UserID string
|
|
|
|
Username string
|
|
|
|
Photo string
|
|
|
|
Submitted time.Time
|
|
|
|
Status string
|
|
|
|
Admin string
|
|
|
|
Closed time.Time
|
|
|
|
}
|