Documentation ¶
Index ¶
- Constants
- Variables
- func CheckNickname(exec boil.ContextExecutor, ctx context.Context, nicknameStmt *sql.Stmt, ...)
- func CheckUsername(exec boil.ContextExecutor, ctx context.Context, usernameStmt *sql.Stmt, ...)
- func CreateChannelLog(ctx context.Context, config *models.GuildLoggingConfig, ...) (*models.MessageLog, error)
- func CreateLink(guildID int64, id int) string
- func EvtProcesser()
- func EvtProcesserGCs()
- func GetChannelLogs(ctx context.Context, id, guildID int64) (*models.MessageLog, error)
- func GetConfig(ctx context.Context, guildID int64) (*models.GuildLoggingConfig, error)
- func GetConfigCached(gID int64) (*models.GuildLoggingConfig, error)
- func GetGuilLogs(ctx context.Context, guildID int64, before, after, limit int) ([]*models.MessageLog, error)
- func GetNicknames(ctx context.Context, userID, guildID int64, limit int) ([]*models.NicknameListing, error)
- func GetUsernames(ctx context.Context, userID int64, limit int) ([]*models.UsernameListing, error)
- func HandleDeleteMessageJson(w http.ResponseWriter, r *http.Request) interface{}
- func HandleGC(evt *eventsystem.EventData)
- func HandleLogsCP(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
- func HandleLogsCPDelete(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
- func HandleLogsCPSaveGeneral(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
- func HandleLogsHTML(w http.ResponseWriter, r *http.Request) interface{}
- func HandleMsgDelete(evt *eventsystem.EventData)
- func HandlePresenceUpdate(evt *eventsystem.EventData)
- func HandleQueueEvt(evt *eventsystem.EventData)
- func RegisterPlugin()
- type ConfigFormData
- type DeleteData
- type LightGC
- type Plugin
Constants ¶
View Source
const CacheKeyConfig bot.GSCacheKey = "logs_config"
View Source
const DBSchema = `` /* 2659-byte string literal not displayed */
Variables ¶
View Source
var AuthorColors = []string{
"7c7cff",
"529fb7",
"4aa085",
"7ea04a",
"a0824a",
"a04a4a",
"a04a89",
}
View Source
var (
ErrChannelBlacklisted = errors.New("Channel blacklisted from creating message logs")
)
Functions ¶
func CheckNickname ¶
func CheckUsername ¶
func CreateChannelLog ¶
func CreateLink ¶ added in v1.15.1
func EvtProcesser ¶
func EvtProcesser()
Queue up all the events and process them one by one, because of limited connections
func EvtProcesserGCs ¶
func EvtProcesserGCs()
func GetChannelLogs ¶
func GetConfigCached ¶ added in v1.18.3
func GetConfigCached(gID int64) (*models.GuildLoggingConfig, error)
func GetGuilLogs ¶
func GetNicknames ¶
func GetUsernames ¶
func HandleDeleteMessageJson ¶
func HandleDeleteMessageJson(w http.ResponseWriter, r *http.Request) interface{}
func HandleGC ¶
func HandleGC(evt *eventsystem.EventData)
func HandleLogsCP ¶
func HandleLogsCP(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
func HandleLogsCPDelete ¶
func HandleLogsCPDelete(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
func HandleLogsCPSaveGeneral ¶
func HandleLogsCPSaveGeneral(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
func HandleLogsHTML ¶
func HandleLogsHTML(w http.ResponseWriter, r *http.Request) interface{}
func HandleMsgDelete ¶
func HandleMsgDelete(evt *eventsystem.EventData)
Mark all log messages with this id as deleted
func HandlePresenceUpdate ¶
func HandlePresenceUpdate(evt *eventsystem.EventData)
func HandleQueueEvt ¶
func HandleQueueEvt(evt *eventsystem.EventData)
While presence update is sent when user changes username.... MAKES NO SENSE IMO BUT WHATEVER Also check nickname incase the user came online
func RegisterPlugin ¶ added in v1.4.1
func RegisterPlugin()
Types ¶
type ConfigFormData ¶ added in v1.15.1
type DeleteData ¶
type DeleteData struct {
ID int64
}
type Plugin ¶
type Plugin struct{}
func (*Plugin) AddCommands ¶ added in v1.4.1
func (p *Plugin) AddCommands()
func (*Plugin) LoadServerHomeWidget ¶ added in v1.17.0
func (p *Plugin) LoadServerHomeWidget(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
func (*Plugin) PluginInfo ¶ added in v1.17.0
func (p *Plugin) PluginInfo() *common.PluginInfo
Click to show internal directories.
Click to hide internal directories.