GoingCommando

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 4 Imported by: 0

README

GoingCommando

A DiscordGo Command Lib with customizability allowing for custom handlers listeners and command maps.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shift

func Shift(a []string, i int) ([]string, string)

Types

type Handler

type Handler interface {
	Handle(s *discordgo.Session, msg *discordgo.MessageCreate)
	GetCommandHandler() commandmap.Map
}

type PremadeHandler

type PremadeHandler struct {
	Prefix string
	// contains filtered or unexported fields
}

this is the basic premade handler with support for one prefix u can change it up how u want because of the whole interfaces

func New

func New(dg *discordgo.Session, cmds commandmap.Map, prefix string) PremadeHandler

initalizes a basic premade handler for you.

func (PremadeHandler) GetCommandHandler

func (h PremadeHandler) GetCommandHandler() commandmap.Map

Directories

Path Synopsis
ctx

Jump to

Keyboard shortcuts

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