app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotAPI

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

BotAPI ...

func NewBotAPI

func NewBotAPI(config *Config) *BotAPI

NewBotAPI ...

func (*BotAPI) Handler

func (b *BotAPI) Handler() error

Handler ...

func (*BotAPI) Start

func (b *BotAPI) Start() error

Start ...

type Config

type Config struct {
	Token          string   `toml:"token"`
	DebugMode      bool     `toml:"debug_mode"`
	LogLevel       string   `toml:"log_level"`
	AccessUsers    []string `toml:"access_users"`
	AccessChannels []string `toml:"access_channels"`
}

Config ...

func NewConfig

func NewConfig() *Config

NewConfig return struct config

Jump to

Keyboard shortcuts

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