Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_LOGFILE_PATH = "musicbot.log" DEFAULT_LOGLEVEL = "info" DEFAULT_QUEUE_PATH = "queue.txt" DEFAULT_STATS_PATH = "musicbot-stats.json" )
View Source
const ( DEFAULT_YOUTUBE_MPV_BIN_PATH = "mpv" DEFAULT_YOUTUBE_MPV_INPUT_PATH = ".yt-mpv-input" )
View Source
const DEFAULT_API_PORT = 7070
View Source
const DEFAULT_TOKEN_FILE_PATH = ".spotify-token"
View Source
const DEFAULT_WHITELIST_PATH = "whitelist.txt"
Variables ¶
This section is empty.
Functions ¶
func ReadWhitelist ¶
func WriteWhitelist ¶
Types ¶
type MusicBot ¶
type MusicBot struct { LogFile string LogLevel string QueuePath string StatsPath string IRC IRC API API YoutubePlayer YoutubePlayer SpotifyPlayer SpotifyPlayer }
func ReadConfig ¶
func (*MusicBot) ApplyDefaults ¶
func (c *MusicBot) ApplyDefaults()
type SpotifyPlayer ¶
Click to show internal directories.
Click to hide internal directories.