Documentation ¶
Index ¶
- Constants
- Variables
- func AddFilter(name, value string)
- func AddNote(name, value string)
- func DeleteFilter(name string) bool
- func DeleteNote(name string) bool
- func LoadDB(LOGGER *waLogger.Logger) *sqlOrig.DB
- func ShouldAllowFilters(chatId string, shouldAllow bool)
- func ShouldSilentAFK(chatId string, silentAFK bool)
- func ToggleAfk(option bool, reason string)
- type Afk
- type ChatSettings
- type Filter
- type Note
Constants ¶
View Source
const DEFAULE_USER_ID = 777000
Variables ¶
View Source
var SESSION *gorm.DB
Functions ¶
func DeleteFilter ¶
func DeleteNote ¶
func ShouldAllowFilters ¶
func ShouldSilentAFK ¶
Types ¶
type Afk ¶
func GetAfkStatus ¶
func GetAfkStatus() *Afk
type ChatSettings ¶
func GetChatSettings ¶
func GetChatSettings(chatId string) *ChatSettings
type Filter ¶
func GetFilters ¶
func GetFilters() []Filter
Click to show internal directories.
Click to hide internal directories.