config

package
v0.0.0-...-6e4ec00 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIToken      string `json:"tgApiToken"`
	Debug         bool   `json:"debug"`
	UpdateTimeout int    `json:"updateTimeout"`
	Database      string `json:"database"`
	Redis         string `json:"redis"`
	AdminPassword string `json:"adminPassword"`
	ThreadLimit   int    `json:"threadLimit"`
}

Config for this bot

var DefaultConfig Config

DefaultConfig is global

func (*Config) ReadConfig

func (c *Config) ReadConfig(cfgFile string) error

ReadConfig from file

func (*Config) RedisConfig

func (c *Config) RedisConfig() (*redis.Options, error)

RedisConfig to ready

type Images

type Images struct {
	Win     string
	Lose    string
	Start   string
	Beast   string
	Killed  string
	Trapped string
}

Images in game

var DefaultImages Images

DefaultImages is

func (*Images) ReadConfig

func (i *Images) ReadConfig(cfgFile string) error

func (*Images) WriteConfig

func (i *Images) WriteConfig(cfgFile string) error

Jump to

Keyboard shortcuts

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