bot

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 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 contains functions for bot.

func New

func New(service service.Service, prefix string) *Bot

New to create new bot.

func (*Bot) RegisterHandler

func (b *Bot) RegisterHandler()

RegisterReadyHandler to register ready handler.

func (*Bot) Run

func (b *Bot) Run() error

Run to run bot.

func (*Bot) Stop

func (b *Bot) Stop() error

Stop to stop bot.

Jump to

Keyboard shortcuts

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