tasks

package
v0.0.0-...-5cd70a3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Unlicense Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCronJob

func ExecuteCronJob(client dc.Client)

ExecuteCronJob runs the cron jobs for the bot

func GetSlashForceDownloadCommand

func GetSlashForceDownloadCommand(cmd string) *dc.Command

GetSlashForceDownloadCommand returns a home-guild-only command to force re-download all data files.

func GetSlashReloadContractsCommand

func GetSlashReloadContractsCommand(cmd string) *dc.Command

GetSlashReloadContractsCommand returns the command definition for reloading contracts

func HandleForceDownload

func HandleForceDownload(client dc.Client, e *dc.CommandEvent)

HandleForceDownload handles the home-guild force-download command through the dc facade.

It still takes a raw session because the download work it kicks off reaches into packages that are not on the facade yet.

func HandleReloadContracts

func HandleReloadContracts(client dc.Client, e *dc.CommandEvent)

HandleReloadContracts handles the reload-contracts command through the dc facade.

It still takes a raw session because the reload work reaches into packages that are not on the facade yet.

func RefreshStatusMessages

func RefreshStatusMessages() (int, error)

RefreshStatusMessages downloads the latest status messages, replaces the file on disk, and reloads the internal data into memory.

func RefreshTokenComplaints

func RefreshTokenComplaints() (int, error)

RefreshTokenComplaints downloads the latest token complaints, replaces the file on disk, and reloads the internal data into memory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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