config

package
v0.0.0-...-4ef3a56 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = ConfigType{}

Functions

func LoadConfig

func LoadConfig(configPath *string)

Types

type ConfigType

type ConfigType struct {
	DbPath            string   `json:"db_path"`
	ReactionThreshold int      `json:"reaction_threshold"`
	ChannelIds        []string `json:"channel_ids"`
	IgnoreAfterHours  int      `json:"ignore_after_hours"`

	DiscordBotToken string
	XConsumerKey    string
	XConsumerSecret string
	XAcessToken     string
	XTokenSecret    string
}

Jump to

Keyboard shortcuts

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