package main import ( "fmt" "math/rand" "path" "strconv" "strings" "time" "dcbot/dca0" "dcbot/ytdl" "github.com/bwmarrin/discordgo" ) //////////////////////////////// // Helper functions. //////////////////////////////// func generateHelpMsg() string { // Align all commands nicely so that the descriptions are in the same // column. longestCmd := 0 var cmds, descs []string addCmd := func(cmd, desc string) { if len(cmd) > longestCmd { longestCmd = len(cmd) } cmds = append(cmds, cmd) descs = append(descs, desc) } addCmd("help", "show this page") addCmd("play ", "play audio from a URL or a youtube search query") addCmd("play", "start playing queue/resume playback") addCmd("seek