db

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTagLogger

func GetTagLogger() bool

func Load

func Load(l *logger.Logger)

func TagLogger

func TagLogger(toggle bool)

func UpdateAFK

func UpdateAFK(toggle bool, reason string)

func UpdateBot

func UpdateBot(token string)

func UpdateLogs

func UpdateLogs(logs int64)

func UpdateSettings

func UpdateSettings(logs int64, token string)

Types

type Afk

type Afk struct {
	Toggle bool
	Reason string
}

func GetAFK

func GetAFK() *Afk

type Settings

type Settings struct {
	LogsGroup int64
	Token     string
}

func GetSettings

func GetSettings() *Settings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL