internal

package
v0.0.0-...-e42845a Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Color

func Color(hex string) int

func ColorGreen

func ColorGreen() int

func ColorOrange

func ColorOrange() int

func ColorRed

func ColorRed() int

func Nohup

func Nohup(cmd string, args ...string) error

Types

type Bot

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

func NewBot

func NewBot(sess *discordgo.Session, cmd RootCommand) *Bot

func (*Bot) Start

func (b *Bot) Start() error

func (*Bot) Stop

func (h *Bot) Stop() error

type RootCommand

type RootCommand interface {
	GetCommand() *discordgo.ApplicationCommand
	Handle(*discordgo.ApplicationCommandInteractionData) *discordgo.MessageEmbed
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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