Skip to content

Commit

Permalink
Merge pull request #1 from danyev3/master
Browse files Browse the repository at this point in the history
Changed Shuffle help string
  • Loading branch information
TheTipo01 authored Sep 12, 2020
2 parents ad5ebec + 8678ec6 commit bf7d402
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 (
Expand Down Expand Up @@ -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 <link> - 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 <command> <song/playlist> - Creates a shortcut for a song/playlist\n" + prefix + "rmcustom <command> - Removes a custom command\n" + prefix + "lyrics <song> - 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 <playlist> - Randomly plays song from that playlist```"
message := "Supported commands:\n```" + prefix + "play <link> - 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 <command> <song/playlist> - Creates a shortcut for a song/playlist\n" + prefix + "rmcustom <command> - Removes a custom command\n" + prefix + "lyrics <song> - 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 <playlist> - 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```"
Expand Down

0 comments on commit bf7d402

Please sign in to comment.