bot

package
v0.0.0-...-c7c6870 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 10 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 {
	// Config is the config of the bot.
	Config *config.Config

	// State is the state.State the bot uses.
	State *state.State
}

Bot is an instance of the stormy bot.

func NewBot

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

NewBot creates a new bot and registers all handler.s

func (*Bot) HandleMessageCreate

func (b *Bot) HandleMessageCreate(s *state.State, e *state.MessageCreateEvent) error

func (*Bot) HandleReactionAdd

func (b *Bot) HandleReactionAdd(s *state.State, e *state.MessageReactionAddEvent) error

func (*Bot) Open

func (b *Bot) Open() error

Jump to

Keyboard shortcuts

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