discord

package
v0.0.0-...-6ceb869 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GREEN  = 0x008000
	RED    = 0xFF0000
	YELLOW = 0xFFFF00
	PACTUS = 0x052D5A
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordBot

type DiscordBot struct {
	Session   *discordgo.Session
	BotEngine *engine.BotEngine
	GuildID   string
}

func NewDiscordBot

func NewDiscordBot(botEngine *engine.BotEngine, token, guildID string) (*DiscordBot, error)

func (*DiscordBot) Start

func (bot *DiscordBot) Start() error

func (*DiscordBot) Stop

func (db *DiscordBot) Stop()

func (*DiscordBot) UpdateStatusInfo

func (db *DiscordBot) UpdateStatusInfo()

Jump to

Keyboard shortcuts

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