dbot

package module
v0.0.0-...-eb6b9b8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 5 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 {
	Logger  *log.Logger
	Session *discordgo.Session
	Version string
	Config  Config
}

func New

func New(logger *log.Logger, version string, config Config) *Bot

func (*Bot) OnReady

func (b *Bot) OnReady(_ *discordgo.Ready)

func (*Bot) SetupBot

func (b *Bot) SetupBot()

type Config

type Config struct {
	DevGuildID string
	Token      string
	LogLevel   int
	DevMode    bool
}

func LoadConfig

func LoadConfig() (*Config, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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