Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &discordgo.ApplicationCommand{ Name: "demos", Description: "Find demos", Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionString, Name: "q", Description: `query: space separated list of players/teams/map. example: "xantom dm4"`, Required: true, }, { Type: discordgo.ApplicationCommandOptionString, Name: "mode", Description: "Game mode", Choices: []*discordgo.ApplicationCommandOptionChoice{ {Name: "duel", Value: "duel"}, {Name: "2on2", Value: "2on2"}, {Name: "4on4", Value: "4on4"}, }, }, { Type: discordgo.ApplicationCommandOptionString, Name: "qtv_address", Description: "QTV address", Choices: []*discordgo.ApplicationCommandOptionChoice{ {Name: "dal.spawnfrag.com", Value: "dal.spawnfrag.com:28000"}, {Name: "de.aye.wtf", Value: "de.aye.wtf:28000"}, {Name: "la.qwsrv.com", Value: "la.qwsrv.com:28000"}, {Name: "london.badplace.eu", Value: "london.badplace.eu:28000"}, {Name: "nl.aye.wtf", Value: "nl.aye.wtf:28000"}, {Name: "ny.qwsrv.com", Value: "ny.qwsrv.com:28000"}, {Name: "play.quake1.pl", Value: "play.quake1.pl:28000"}, {Name: "qtv.nicotinelounge.com", Value: "qtv.nicotinelounge.com:443"}, {Name: "quake.se", Value: "quake.se:28000"}, {Name: "qw.foppa.dk", Value: "qw.foppa.dk:28000"}, {Name: "qw.irc.ax", Value: "qw.irc.ax:28000"}, {Name: "troopers.fi", Value: "troopers.fi:28000"}, }, }, }, }
Functions ¶
func ContentFromDemos ¶
func ContentFromDemos(demos []qtvscraper.Demo) string
func Handler ¶
func Handler(i *discordgo.InteractionCreate) *discordgo.InteractionResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.