handler

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentWeather added in v1.4.2

func GetCurrentWeather(o *owm.Client, loc []string) (string, error)

func GetSotAchievement

func GetSotAchievement(h *http.Client, u *user.User) (*discordgo.MessageEmbed, error)

Just a test handler

func GetSotBalance

func GetSotBalance(d *gorm.DB, h *http.Client, u *user.User) (string, error)

Get current SoT balance

func GetSotLedger added in v1.4.2

func GetSotLedger(h *http.Client, u *user.User, f string) (string, error)

Just a test handler

func GetSotRandomCode

func GetSotRandomCode() (*discordgo.MessageEmbed, error)

Let's the bot tell you the current date/time when requested via !time command

func GetSotReputation

func GetSotReputation(h *http.Client, u *user.User, f string) (string, error)

Just a test handler

func GetSotSeasonProgress

func GetSotSeasonProgress(h *http.Client, u *user.User) (string, error)

Just a test handler

func GetSotStats

func GetSotStats(h *http.Client, u *user.User) (string, error)

Just a test handler

func Help

func Help() []string

Let's the bot provide a help message in the DMs

func PlaySound

func PlaySound(v []*discordgo.VoiceState, s *discordgo.Session, ab [][]byte, u, g string) error

func RandomFact

func RandomFact(h *http.Client) (string, error)

func RegisterUser

func RegisterUser(d *gorm.DB, u string) (string, error)

Register a new user

func TMDbRandMovie added in v1.4.1

func TMDbRandMovie(t *tmdb.TMDb) (*discordgo.MessageEmbed, error)

func TMDbRandTvSeries added in v1.4.2

func TMDbRandTvSeries(t *tmdb.TMDb) (*discordgo.MessageEmbed, error)

func TMDbSearchMovie added in v1.4.1

func TMDbSearchMovie(t *tmdb.TMDb, q []string) (*discordgo.MessageEmbed, error)

func TMDbSearchTvSeries added in v1.4.2

func TMDbSearchTvSeries(t *tmdb.TMDb, q []string) (*discordgo.MessageEmbed, error)

func TellMemUsage

func TellMemUsage() string

Let's the bot provide some memory indicators

func TellTime

func TellTime() string

Let's the bot tell you the current date/time when requested via !time command

func TellVersion

func TellVersion() string

Let the bot tell us it's version information

func UnregisterUser

func UnregisterUser(d *gorm.DB, u string) (string, error)

Unregister a user

func Uptime added in v1.4.1

func Uptime(s time.Time) (string, error)

Let's the bot provide a help message in the DMs

func UrbanDict added in v1.4.1

func UrbanDict(h *http.Client, w string) (*discordgo.MessageEmbed, error)

func UserIsRegistered

func UserIsRegistered(u *user.User) string

Self-check if a user is registered

func UserSetRatCookie

func UserSetRatCookie(d *gorm.DB, u *user.User, r string) (string, error)

Set a SoT RAT cookie

Types

type SotCodeArticle

type SotCodeArticle struct {
	Number      int
	Title       string
	Description string
}

Jump to

Keyboard shortcuts

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