config

package
v0.0.0-...-e770b57 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// gtp apikey
	ApiKey string `json:"api_key"`
	// 触发命令,例如触发命令是ai --> @zh /ai 今天天气怎么样
	Command string `json:"command"`
	// 关键词匹配, 只要发送的消息里有关键词就出发
	Regexp string `json:"regexp"`
}

Configuration 项目配置

func LoadConfig

func LoadConfig() *Configuration

LoadConfig 加载配置

Jump to

Keyboard shortcuts

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