db

package
v0.0.0-...-addf08f Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserAlert

func AddUserAlert(guild string, user string, minutes int) error

AddUserAlert add an alert for the user

func GuildIsLinked

func GuildIsLinked(guild string) bool

GuildIsLinked checks is a guild already has a linked channel

func LinkChannel

func LinkChannel(guild string, channel string) error

LinkChannel links a channel for the bot alerts

func RemoveUserAlert

func RemoveUserAlert(guild string, user string) error

RemoveUserAlert removes the alert for a user (by disabling it)

func ScheduledAlerts

func ScheduledAlerts(minutes float64) (*sql.Rows, error)

ScheduledAlerts returns a slice with all the users from a guild

func Start

func Start()

Start used to start the database connection

func UserAlertExist

func UserAlertExist(guild string, user string) bool

UserAlertExist checks if the user alerts already exists in a guild

Types

This section is empty.

Jump to

Keyboard shortcuts

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