Documentation
¶
Index ¶
- Variables
- func DefaultConfig(guildID int64) *models.FunSetting
- func GetConfig(ctx context.Context, guildID int64) (*models.FunSetting, error)
- func HandleGetFunSettings(w http.ResponseWriter, r *http.Request) interface{}
- func HandlePostFunSettings(w http.ResponseWriter, r *http.Request) (templateData web.TemplateData, err error)
- func RegisterPlugin()
- type FunConfigForm
- type Plugin
Constants ¶
This section is empty.
Variables ¶
View Source
var DBSchemas = []string{`
CREATE TABLE IF NOT EXISTS fun_settings (
guild_id bigint PRIMARY KEY,
topics TEXT NOT NULL,
nsfw_topics TEXT NOT NULL,
dad_jokes TEXT NOT NULL,
wyrs TEXT NOT NULL,
nsfw_wyrs TEXT NOT NULL
)`,
}
View Source
var PageHTMLSettings string
Functions ¶
func DefaultConfig ¶
func DefaultConfig(guildID int64) *models.FunSetting
func HandleGetFunSettings ¶
func HandleGetFunSettings(w http.ResponseWriter, r *http.Request) interface{}
func HandlePostFunSettings ¶
func HandlePostFunSettings(w http.ResponseWriter, r *http.Request) (templateData web.TemplateData, err error)
func RegisterPlugin ¶
func RegisterPlugin()
Types ¶
type FunConfigForm ¶
type FunConfigForm struct {
Topics string
NSFWTopics string
DadJokes string
Wyrs string
NSFWWyrs string
}
func (FunConfigForm) FunSetting ¶
func (p FunConfigForm) FunSetting() *models.FunSetting
Click to show internal directories.
Click to hide internal directories.