bot

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 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 {
	// 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(nrApp *newrelic.Application)

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