Documentation ¶
Index ¶
Constants ¶
View Source
const DBSchema = `` /* 662-byte string literal not displayed */
View Source
const DefaultDMMessage = `` /* 191-byte string literal not displayed */
View Source
const (
DefaultPageContent = `## Verification
Please solve the following reCAPTCHA to make sure you're not a robot`
)
View Source
const InTicketPerms = discordgo.PermissionSendMessages | discordgo.PermissionReadMessages
Variables ¶
View Source
var GoogleReCAPTCHASecret = os.Getenv("YAGPDB_GOOGLE_RECAPTCHA_SECRET")
View Source
var GoogleReCAPTCHASiteKey = os.Getenv("YAGPDB_GOOGLE_RECAPTCHA_SITE_KEY")
Functions ¶
func RandStringRunes ¶
func RegisterPlugin ¶
func RegisterPlugin()
func ScheduledEventMW ¶
func ScheduledEventMW(innerHandler func(ms *dstate.MemberState, guildID int64, conf *models.VerificationConfig, rawData interface{}) (bool, error)) func(evt *seventsmodels.ScheduledEvent, data interface{}) (retry bool, err error)
Types ¶
type CheckCAPTCHARequest ¶
type CheckCAPTCHAResponse ¶
type Plugin ¶
type Plugin struct{}
func (*Plugin) AddCommands ¶
func (p *Plugin) AddCommands()
func (*Plugin) LoadServerHomeWidget ¶
func (p *Plugin) LoadServerHomeWidget(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() *common.PluginInfo
type VerificationEventData ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.