commands

package
v0.0.0-...-441339d Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandsWOArgs map[string]WOArgs
View Source
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

type WOArgs

type WOArgs func(*discordgo.Session, *discordgo.MessageCreate)

type WithArgs

type WithArgs func(*discordgo.Session, *discordgo.MessageCreate, []string)

Jump to

Keyboard shortcuts

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