commands

package
v0.0.0-...-3c70f01 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MoniqueliveID = "4930146"
)

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(duration time.Duration) (format string)

func In

func In(elem string, slice []string) bool

func Remove

func Remove(elem string, slice []string) (newSlice []string)

func WordWrap

func WordWrap(str string, size int) (retval []string)

Types

type Commands

type Commands struct {
	IgnoredCommands []string `json:"ignored-commands"`
	Commands        []struct {
		Actions   []string `json:"actions"`
		Responses []string `json:"responses"`
		Logs      []string `json:"logs"`
		Extras    []string `json:"extras"`
		Ajuda     string   `json:"ajuda"`
		Help      string   `json:"help"`
	} `json:"commands"`
	ActionResponses map[string][]string
	ActionLogs      map[string][]string
	ActionExtras    map[string][]string
	ActionAdmin     map[string]bool
	ActionActions   map[string][]string
	// contains filtered or unexported fields
}

func (*Commands) Actions

func (c *Commands) Actions() string

func (Commands) Ajuda

func (c Commands) Ajuda(cmdLine string) string

func (Commands) Ban

func (c Commands) Ban(cmdLine string, extras []string) string

func (Commands) FollowAge

func (c Commands) FollowAge(cmdLine string, sender *irc.User) string

func (Commands) Help

func (c Commands) Help(cmdLine string) string

func (Commands) Hug

func (c Commands) Hug(sender *irc.User, cmdLine string) string

func (Commands) KeepMusic

func (c Commands) KeepMusic(username string) string

func (Commands) Marquee

func (c Commands) Marquee(user *irc.User, cmdLine string) string

func (*Commands) Reload

func (c *Commands) Reload()

func (Commands) SkipMusic

func (c Commands) SkipMusic(username string) string

func (Commands) SongRequest

func (c Commands) SongRequest(user *irc.User, songUrl string) string

func (Commands) Upside

func (c Commands) Upside(cmdLine string) string

func (Commands) Uptime

func (c Commands) Uptime(cmdLine string) string

func (Commands) Urls

func (c Commands) Urls(cmdLine string) []string

Jump to

Keyboard shortcuts

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