Documentation ¶
Index ¶
- Variables
- func BalanceCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
- func CTBCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func CocProfileCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func CoinflipCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func CommonTopCommandHandler(s *discordgo.Session, m *discordgo.MessageCreate, args []string, mode string)
- func CompareCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func CurrentLeagueGameCommand(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func ExecCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func GithubCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
- func HelpCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
- func InitCommandsMap()
- func JackpotCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func LeagueProfileCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func ManiaTopHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func MapCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func OsuCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func PayCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func RecentCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func RecentLeagueCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func RemoveLolCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
- func RemoveOsuCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
- func ResetBalance(session *discordgo.Session, msg *discordgo.MessageCreate)
- func ServersCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
- func SetCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func SetLeagueCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func TaikoTopCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func TopCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- func VoteCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
- type WOArgs
- type WithArgs
Constants ¶
This section is empty.
Variables ¶
var CommandsWOArgs map[string]WOArgs
var CommandsWithArgs map[string]WithArgs
Functions ¶
func BalanceCommandHandler ¶
func BalanceCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
func CTBCommandHandler ¶
func CTBCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
CTBCommandHandler returns the CTB top plays of a given osu! user.
func CocProfileCommandHandler ¶
func CocProfileCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func CoinflipCommandHandler ¶
func CoinflipCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
CoinflipCommandHandler handles a throw of a coin in the gamling commands. The user can bet their tokens for a 50% chance of doubling it, and 50% chance of losing it all.
func CommonTopCommandHandler ¶
func CommonTopCommandHandler(s *discordgo.Session, m *discordgo.MessageCreate, args []string, mode string)
CommonTopCommandHandler is a generalization of the other osu! related top play commands. This makes it so for each osu! mode we don't need a new command. Instead we just use this one.
func CompareCommandHandler ¶
func CompareCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func CurrentLeagueGameCommand ¶
func CurrentLeagueGameCommand(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func ExecCommandHandler ¶
func ExecCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
ExecCommandHandler is used to execute code using an api.
func GithubCommandHandler ¶
func GithubCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
GithubCommandHandler just gives the link to the source code of the bot on github.
func HelpCommandHandler ¶
func HelpCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
Doesn't need arguments!
func InitCommandsMap ¶
func InitCommandsMap()
func JackpotCommandHandler ¶
func JackpotCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
JackpotCommandHandler handles the creation and running of jackpot using the jackpot utility.
func LeagueProfileCommandHandler ¶
func LeagueProfileCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
LeagueProfileCommandHandler returns information in a discord embed about a league of legends user.
func ManiaTopHandler ¶
func ManiaTopHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func MapCommandHandler ¶
func MapCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func OsuCommandHandler ¶
func OsuCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
This command gives information about a certain user, either the user from an argument or a user from the database
func PayCommandHandler ¶
func PayCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func RecentCommandHandler ¶
func RecentCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func RecentLeagueCommandHandler ¶
func RecentLeagueCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func RemoveLolCommandHandler ¶
func RemoveLolCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
func RemoveOsuCommandHandler ¶
func RemoveOsuCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
func ResetBalance ¶
func ResetBalance(session *discordgo.Session, msg *discordgo.MessageCreate)
func ServersCommandHandler ¶
func ServersCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate)
ServersCommandHandler prints all the available league of legends servers with their shorthand name
func SetCommandHandler ¶
func SetCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
SetCommandHandler makes a link between a discord id and a osu username, so we can use commands without arguments
func SetLeagueCommandHandler ¶
func SetLeagueCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func TaikoTopCommandHandler ¶
func TaikoTopCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
func TopCommandHandler ¶
func TopCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
TopCommandHandler returns the first 10 top plays of a user.
func VoteCommandHandler ¶
func VoteCommandHandler(session *discordgo.Session, msg *discordgo.MessageCreate, args []string)
Types ¶
Source Files ¶
- balance.go
- coc-profile.go
- coinflip.go
- command_mapper.go
- common_top.go
- compare.go
- ctbtop.go
- current_league.go
- exec.go
- github.go
- help.go
- jackpot.go
- maniatop.go
- map.go
- osu.go
- pay.go
- profile_league.go
- recent.go
- recent_league.go
- remove-lol.go
- remove_osu.go
- reset_balance.go
- servers.go
- set.go
- set_league.go
- taikotop.go
- top.go
- vote.go