diff --git a/main.go b/main.go index 1c86bc9..522a1d2 100644 --- a/main.go +++ b/main.go @@ -4,12 +4,6 @@ import ( "context" "database/sql" "fmt" - "github.com/bwmarrin/discordgo" - _ "github.com/go-sql-driver/mysql" - _ "github.com/mattn/go-sqlite3" - "github.com/spf13/viper" - "github.com/zmb3/spotify" - "golang.org/x/oauth2/clientcredentials" "log" "math/rand" "os" @@ -19,6 +13,13 @@ import ( "sync" "syscall" "time" + + "github.com/bwmarrin/discordgo" + _ "github.com/go-sql-driver/mysql" + _ "github.com/mattn/go-sqlite3" + "github.com/spf13/viper" + "github.com/zmb3/spotify" + "golang.org/x/oauth2/clientcredentials" ) var ( @@ -286,7 +287,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { case prefix + "help", prefix + "h": go deleteMessage(s, m) - message := "Supported commands:\n```" + prefix + "play - Plays a song from youtube or spotify playlist\n" + prefix + "queue - Returns all the songs in the server queue\n" + prefix + "summon - Make the bot join your voice channel\n" + prefix + "disconnect - Disconnect the bot from the voice channel\n" + prefix + "restart - Restarts the bot\n" + prefix + "pause - Pauses current song\n" + prefix + "resume - Resumes current song\n" + prefix + "custom - Creates a shortcut for a song/playlist\n" + prefix + "rmcustom - Removes a custom command\n" + prefix + "lyrics - Tries to search for lyrics of the specified song, or if not specified searches for the title of the currently playing song\n" + prefix + "shuffle - Randomly plays song from that playlist```" + message := "Supported commands:\n```" + prefix + "play - Plays a song from youtube or spotify playlist\n" + prefix + "queue - Returns all the songs in the server queue\n" + prefix + "summon - Make the bot join your voice channel\n" + prefix + "disconnect - Disconnect the bot from the voice channel\n" + prefix + "restart - Restarts the bot\n" + prefix + "pause - Pauses current song\n" + prefix + "resume - Resumes current song\n" + prefix + "custom - Creates a shortcut for a song/playlist\n" + prefix + "rmcustom - Removes a custom command\n" + prefix + "lyrics - Tries to search for lyrics of the specified song, or if not specified searches for the title of the currently playing song\n" + prefix + "shuffle - Shuffles the songs in the playlist and adds them to the queue```" //If we have custom commands, we add them to the help message if len(custom[m.GuildID]) > 0 { message += "\nCustom commands:\n```"