config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Token            string // Token is to run the bot with token
	BotPrefix        string // BotPrefix is the prefix that the command handler will use
	Presence         string // Presence is bot's playing part
	Owner            string // Owner of the bot (needed on some commands)
	LoadInteractions string // LoadInteractions is bot's slash commands
	Database         string // Database name
	User             string // User to connect MySQL database

	Password     string // Password to connect MySQL database
	Host         string // Host to connect MySQL database
	WebPort      string // WebPort to run website at
	BaseURL      string // BaseURL to run website at
	ClientSecret string // ClientSecret for OAuth2
)

Functions

func ReadConfig

func ReadConfig() error

ReadConfig reads config.json file, returns error

Types

This section is empty.

Jump to

Keyboard shortcuts

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