sun_bot

package
v0.0.0-...-e505eca Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateArtifactUrl

func GenerateArtifactUrl(buildNum int) string

func RegisterCommands

func RegisterCommands(cmdMap *commandMap.Map)

func Start

func Start() error

Types

type Ban

type Ban struct {
}

func (Ban) Execute

func (b Ban) Execute(ctx ctx.Ctx, session *discordgo.Session) error

func (Ban) GetHelp

func (b Ban) GetHelp() HelpMsg

type Build

type Build struct {
}

func (Build) Execute

func (b Build) Execute(ctx ctx.Ctx, session *discordgo.Session) error

func (Build) GetHelp

func (b Build) GetHelp() HelpMsg

type Color

type Color struct {
	// contains filtered or unexported fields
}

func (*Color) ToInteger

func (c *Color) ToInteger() int

type Config

type Config struct {
	Discord struct {
		Token string
	}
	CircleCI struct {
		Token string
	}
}

func LoadConfig

func LoadConfig() Config

type Help

type Help struct {
}

func (Help) Execute

func (h Help) Execute(ctx ctx.Ctx, session *discordgo.Session) error

func (Help) GetHelp

func (h Help) GetHelp() HelpMsg

type HelpMsg

type HelpMsg struct {
	Usage       string
	Description string
}

type Kick

type Kick struct {
}

func (Kick) Execute

func (k Kick) Execute(ctx ctx.Ctx, session *discordgo.Session) error

func (Kick) GetHelp

func (k Kick) GetHelp() HelpMsg

type Mock

type Mock struct {
}

func (Mock) Execute

func (m Mock) Execute(ctx ctx.Ctx, session *discordgo.Session) error

func (Mock) GetHelp

func (m Mock) GetHelp() HelpMsg

type Ping

type Ping struct {
}

func (Ping) Execute

func (p Ping) Execute(ctx ctx.Ctx, session *discordgo.Session) error

func (Ping) GetHelp

func (p Ping) GetHelp() HelpMsg

type SunCommand

type SunCommand interface {
	Execute(ctx ctx.Ctx, session *discordgo.Session) error
	GetHelp() HelpMsg
}

Jump to

Keyboard shortcuts

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