discord

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

Bot represents the Discord bot instance

func NewBot

func NewBot(config *Config) (*Bot, error)

NewBot creates a new Discord bot instance

func (*Bot) Start

func (b *Bot) Start() error

Start starts the Discord bot

func (*Bot) Stop

func (b *Bot) Stop() error

Stop stops the Discord bot

type Config

type Config struct {
	DiscordToken string
	APIURL       string
	APISecret    string
	GuildID      string
}

Config holds the Discord bot configuration

Jump to

Keyboard shortcuts

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