demos

package
v0.0.0-...-6e3b05f Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 7 Imported by: 0

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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