configs

package
v0.0.0-...-b0a87dc Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: AGPL-3.0 Imports: 6 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 {
	Host          string   `yaml:"host"`
	Port          int      `yaml:"port"`
	Debug         bool     `yaml:"debug"`
	Superusers    []int64  `yaml:"superusers"`
	Nickname      []string `yaml:"nickname"`
	CommandPrefix string   `yaml:"command_prefix"`
	AccessToken   string   `yaml:"access_token"`
}

type Config

type Config struct {
	Bot    Bot    `yaml:"bot"`
	Driver Driver `yaml:"driver"`
	Plugin Plugin `yaml:"plugin"`
}

func Parse

func Parse() *Config

type Driver

type Driver struct {
	Gocqhttp Gocqhttp `yaml:"gocqhttp"`
}

type Gocqhttp

type Gocqhttp struct {
	Enabled         bool   `yaml:"enabled"`
	Account         int64  `yaml:"account"`
	Password        string `yaml:"password"`
	Protocol        int    `yaml:"protocol"`
	DownloadVersion string `yaml:"download_version"`
}

type Plugin

type Plugin struct {
	SetuIsUseProxy bool   `yaml:"setu_is_use_proxy"`
	SaucenaoKey    string `yaml:"saucenao_key"`
}

Jump to

Keyboard shortcuts

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