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.

51 lines
929 B

4 years ago
package main
import (
"time"
"github.com/rudi9719/loggy"
)
4 years ago
// Config struct used for bot
type Config struct {
GuildID string
AdminChannel string
AdminRole string
MonitorRole string
IntroChann string
4 years ago
MonitorChann string
VerifiedRole string
BumpTime time.Time
LastBumper string
4 years ago
Stats map[string]int
Unverified map[string]time.Time
Verifications map[string]Verification
Probations map[string]time.Time
LogOpts loggy.LogOpts
4 years ago
}
// Verification struct used for storing and logging
4 years ago
type Verification struct {
UserID string
Username string
Photo string
Submitted time.Time
Status string
Admin string
Closed time.Time
}
type linkedAccount struct {
domainUser string
discordUser string
sigHash string
}
3 years ago
// Tokens are the Login Token struct
type Tokens struct {
Username string
IP string
Password string
Timestamp time.Time
}