config

package
v0.0.0-...-c4d1d87 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxLines = 10

MaxLines is the most lines you wish to output to screen before potentially going into the more/less system

View Source
var SongDB = "./media.db"

SongDB is a database generated from genMusicSQLiteDB

Functions

func CloseDatabase

func CloseDatabase()

Types

type Config

type Config struct {
	Volume   float32 // Volume level for audio playback
	Prefix   string  // Prefix for commands in channel chat
	Channel  string  // Channel the bot is occupying or last occupied
	Hostname string  // Hostname of connected server
}

func NewConfig

func NewConfig(hostname string) *Config

func (*Config) Save

func (config *Config) Save()

Save writes the current configuration to the configuration sqlite database

Jump to

Keyboard shortcuts

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