commands

package
v0.0.0-...-e80764e Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddMe = WombotCommand{
	Name:  "Add me",
	Help:  "Adds the calling user to the database",
	Usage: "",
	Execute: func(s *discordgo.Session, m *discordgo.MessageCreate) {

		checkMember(s, m)
	},
}
View Source
var CommandPrefix = &config.Conf.Discord.CommandPrefix
View Source
var Commands []WombotCommand

Commands array for documentatioe purposes

View Source
var Help = WombotCommand{
	Name:  "Help",
	Help:  "Provides Help",
	Usage: "Help [Topic]",
	Execute: func(s *discordgo.Session, m *discordgo.MessageCreate) {
		ChatFunctions.Reply(s, m, "```"+genHelp()+"```")
	},
}
View Source
var Ping = WombotCommand{
	Name: "Ping",
	Help: "If all is well, returns Pong!",
	Execute: func(s *discordgo.Session, m *discordgo.MessageCreate) {
		ChatFunctions.Reply(s, m, "Pong!")
	},
}

Functions

This section is empty.

Types

type WombotCommand

type WombotCommand struct {
	Name    string
	Help    string
	Usage   string
	Execute func(*discordgo.Session, *discordgo.MessageCreate)
}

Jump to

Keyboard shortcuts

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