db

package
v0.0.0-...-6a6e84f Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLog

func AddLog(orgMsg *discordgo.MessageCreate, guildId, groupId string, content *string, channelid, messageid string)

func AutoLogCleaner

func AutoLogCleaner()

func CleanOldLog

func CleanOldLog() (int64, error)

func Close

func Close()

func DeleteLog

func DeleteLog(guildId, groupId string, content *string)

func InitDB

func InitDB() error

func LoadGuild

func LoadGuild(id string) *config.Guild

func SaveGuild

func SaveGuild(id string) error

func SearchLog

func SearchLog(session *discordgo.Session, guildId, groupId string, content *string) (found bool, dst common.Log)

Types

This section is empty.

Jump to

Keyboard shortcuts

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