database

package
v0.0.0-...-021de53 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDB *sql.DB
View Source
var MediaDB *sql.DB
View Source
var MediaDBPath = "./media.db"

MediaDBPath is a database generated from genMusicSQLiteDB

Functions

func Close

func Close(database *sql.DB)

func GetMaxID

func GetMaxID() int

Query SQLite database to count maximum amount of rows, as to not point to non-existent ID

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
	MaxLines int     // Most lines you want to output to the screen before more/less
}

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