Documentation
¶
Index ¶
- func ExecuteCronJob(client dc.Client)
- func GetSlashForceDownloadCommand(cmd string) *dc.Command
- func GetSlashReloadContractsCommand(cmd string) *dc.Command
- func HandleForceDownload(client dc.Client, e *dc.CommandEvent)
- func HandleReloadContracts(client dc.Client, e *dc.CommandEvent)
- func RefreshStatusMessages() (int, error)
- func RefreshTokenComplaints() (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCronJob ¶
ExecuteCronJob runs the cron jobs for the bot
func GetSlashForceDownloadCommand ¶
GetSlashForceDownloadCommand returns a home-guild-only command to force re-download all data files.
func GetSlashReloadContractsCommand ¶
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 ¶
RefreshStatusMessages downloads the latest status messages, replaces the file on disk, and reloads the internal data into memory.
func RefreshTokenComplaints ¶
RefreshTokenComplaints downloads the latest token complaints, replaces the file on disk, and reloads the internal data into memory.
Types ¶
This section is empty.