Documentation ¶
Overview ¶
Package handler combines all bot specific handlers and are the logical place to look for any handling logic
Index ¶
- func GetCurrentWeather(o *owm.Client, loc string) (*discordgo.MessageEmbed, error)
- func GetDailyDeed(h *http.Client, u *user.User, d *gorm.DB) (*discordgo.MessageEmbed, error)
- func GetSotAchievement(h *http.Client, u *user.User) (*discordgo.MessageEmbed, error)
- func GetSotBalance(h *http.Client, u *user.User) (*discordgo.MessageEmbed, error)
- func GetSotLedger(h *http.Client, u *user.User, f string) (*discordgo.MessageEmbed, error)
- func GetSotRandomCode() (*discordgo.MessageEmbed, error)
- func GetSotReputation(h *http.Client, u *user.User, f string) (*discordgo.MessageEmbed, error)
- func GetSotSeasonProgress(h *http.Client, u *user.User) (*discordgo.MessageEmbed, error)
- func GetSotStats(h *http.Client, u *user.User) (*discordgo.MessageEmbed, error)
- func GetSotSummary(h *http.Client, u *user.User, d *gorm.DB) (*discordgo.MessageEmbed, error)
- func GetTraderoutes(hc *http.Client, d *gorm.DB) (*discordgo.MessageEmbed, error)
- func PlaySound(v []*discordgo.VoiceState, s *discordgo.Session, ab [][]byte, u, g string) error
- func RandomFact(h *http.Client) (string, error)
- func RegisterUser(d *gorm.DB, u string) error
- func TMDbRandMovie(t *tmdb.TMDb) (*discordgo.MessageEmbed, error)
- func TMDbRandTvShow(t *tmdb.TMDb) (*discordgo.MessageEmbed, error)
- func TMDbSearchMovie(t *tmdb.TMDb, q string) (*discordgo.MessageEmbed, error)
- func TMDbSearchTvShow(t *tmdb.TMDb, q string) (*discordgo.MessageEmbed, error)
- func TellMemUsage() string
- func TellTime() string
- func TellVersion() string
- func UnregisterUser(d *gorm.DB, u string) error
- func Uptime(s time.Time) (string, error)
- func UrbanDict(h *http.Client, w string) (*discordgo.MessageEmbed, error)
- func UserSetRatCookie(d *gorm.DB, c *viper.Viper, u *user.User, r string) (string, error)
- type SotCodeArticle
- type UserRat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentWeather ¶ added in v1.4.2
func GetDailyDeed ¶ added in v1.4.3
Get the daily deed
func GetSotAchievement ¶
Just a test handler
func GetSotBalance ¶
Get current SoT balance
func GetSotLedger ¶ added in v1.4.2
GetSotLedger is a SoTBot handler that replies the requesting user with their current SoT ledger position in a specific faction/company
func GetSotRandomCode ¶
func GetSotRandomCode() (*discordgo.MessageEmbed, error)
Let's the bot tell you the current date/time when requested via !time command
func GetSotReputation ¶
Just a test handler
func GetSotSeasonProgress ¶
Just a test handler
func GetSotStats ¶
Just a test handler
func GetSotSummary ¶ added in v1.4.7
Provide a daily summary
func GetTraderoutes ¶ added in v1.4.4
func TMDbRandMovie ¶ added in v1.4.1
func TMDbRandMovie(t *tmdb.TMDb) (*discordgo.MessageEmbed, error)
func TMDbRandTvShow ¶ added in v1.4.6
func TMDbRandTvShow(t *tmdb.TMDb) (*discordgo.MessageEmbed, error)
func TMDbSearchMovie ¶ added in v1.4.1
func TMDbSearchMovie(t *tmdb.TMDb, q string) (*discordgo.MessageEmbed, error)
func TMDbSearchTvShow ¶ added in v1.4.6
func TMDbSearchTvShow(t *tmdb.TMDb, q string) (*discordgo.MessageEmbed, error)
func TellTime ¶
func TellTime() string
Let's the bot tell you the current date/time when requested via !time command
Types ¶
type SotCodeArticle ¶
Source Files ¶
- handler.go
- memstats.go
- owm_current_weather.go
- play_sound.go
- rand_fact.go
- rt_traderoutes.go
- sot_achievement.go
- sot_balance.go
- sot_code.go
- sot_dailydeed.go
- sot_ledger.go
- sot_ratcookie.go
- sot_reputation.go
- sot_season.go
- sot_stats.go
- sot_summary.go
- time.go
- tmdb_rand.go
- tmdb_search.go
- uptime.go
- urban_dict.go
- user_mgmt.go
- version.go
Click to show internal directories.
Click to hide internal directories.