libamabot

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllHandlersList

func GetAllHandlersList() []string

Get the list of all handlers

Types

type Amabot

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

Amabot instance

func New

func New(token string, opts AmabotOptions) (*Amabot, error)

Create new Amabot instance

func (*Amabot) Close

func (ama *Amabot) Close() error

Close session of Amabot

func (*Amabot) GetOptions added in v0.0.1

func (ama *Amabot) GetOptions() AmabotOptions

Get AmabotOptions

func (*Amabot) Run

func (ama *Amabot) Run() error

Open session. If Running, restart Amabot

func (*Amabot) UpdateOptions added in v0.0.1

func (ama *Amabot) UpdateOptions(opts AmabotOptions) error

Update AmabotOptions

type AmabotOptions added in v0.0.1

type AmabotOptions struct {
	MessageCmdPrefix string
	TimeoutDuration  time.Duration
	EnabledHandlers  []string
	AppCmdGuildIds   []string
	Db               *gorm.DB
}

Directories

Path Synopsis
Package ghostscript provides simple, and idiomatic Go bindings for the Ghostscript Interpreter C API.
Package ghostscript provides simple, and idiomatic Go bindings for the Ghostscript Interpreter C API.

Jump to

Keyboard shortcuts

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