small changes for !joinme

typo, constant and comment changes
This commit is contained in:
azlux 2016-06-17 19:34:43 +02:00
parent 0679bfbfb6
commit c4f7d1c24e
3 changed files with 8 additions and 8 deletions

View file

@ -354,8 +354,8 @@ func move(user *gumble.User, channel string) {
} }
} }
// move performance !joinme functionality. Found the channel and move the bot. The bot don't move // joinMe performs !joinme functionality. Finds the channel and moves the bot.
// if it already play music to people // The bot does not move if it is already playing audio to others.
func joinMe(user *gumble.User) { func joinMe(user *gumble.User) {
if dj.audioStream.IsPlaying() && len(dj.client.Self.Channel.Users) > 1 { if dj.audioStream.IsPlaying() && len(dj.client.Self.Channel.Users) > 1 {
user.Send(PEOPLE_ARE_LISTENING_TO_ME) user.Send(PEOPLE_ARE_LISTENING_TO_ME)

View file

@ -106,7 +106,7 @@ HelpAlias = "help"
# DEFAULT VALUE: "volume" # DEFAULT VALUE: "volume"
VolumeAlias = "volume" VolumeAlias = "volume"
Alias used for join a user Alias used for joinme
# DEFAULT VALUE : "joinme" # DEFAULT VALUE : "joinme"
JoinMeAlias = "joinme" JoinMeAlias = "joinme"
@ -214,8 +214,8 @@ AdminVolume = false
AdminMove = true AdminMove = true
# Make joinme a admin command? # Make joinme a admin command?
# DEFUALT VALUE: true # DEFAULT VALUE: true
AdminJoinMe = false AdminJoinMe = true
# Make reload an admin command? # Make reload an admin command?
# DEFAULT VALUE: true # DEFAULT VALUE: true

View file

@ -98,8 +98,8 @@ const SHUFFLE_ACTIVATED_ERROR_MESSAGE = "Automatic shuffle is already activated.
// Message shown to user when they attempt to disable automatic shuffle while it's already deactivated // Message shown to user when they attempt to disable automatic shuffle while it's already deactivated
const SHUFFLE_DEACTIVATED_ERROR_MESSAGE = "Automatic shuffle is already deactivated." const SHUFFLE_DEACTIVATED_ERROR_MESSAGE = "Automatic shuffle is already deactivated."
// Message show to user when they attempt to move it and it is already playing music to people // Message shown to user when they attempt to move the bot and it is already playing audio to others.
const PEOPLE_ARE_LISTENING_TO_ME = "I'm already busy." const PEOPLE_ARE_LISTENING_TO_ME = "Users in another channel are listening to me."
// Message shown to channel when a song is added to the queue by a user. // Message shown to channel when a song is added to the queue by a user.
const SONG_ADDED_HTML = ` const SONG_ADDED_HTML = `
@ -154,7 +154,7 @@ const HELP_HTML = `<br/>
<p><b>!shuffleon</b> - An admin command that enables auto shuffling.</p> <p><b>!shuffleon</b> - An admin command that enables auto shuffling.</p>
<p><b>!shuffleoff</b> - An admin command that disables auto shuffling.</p> <p><b>!shuffleoff</b> - An admin command that disables auto shuffling.</p>
<p><b>!move </b>- Moves MumbleDJ into channel if it exists.</p> <p><b>!move </b>- Moves MumbleDJ into channel if it exists.</p>
<p><b>!joinme </b>- Move into your channel (MP)</p> <p><b>!joinme </b>- Moves MumbleDJ into your current channel if not playing audio to someone else.</p>
<p><b>!reload</b> - Reloads mumbledj.gcfg configuration settings.</p> <p><b>!reload</b> - Reloads mumbledj.gcfg configuration settings.</p>
<p><b>!setcomment</b> - Sets the comment for the bot.</p> <p><b>!setcomment</b> - Sets the comment for the bot.</p>
<p><b>!numcached</b></p> - Outputs the number of songs cached on disk.</p> <p><b>!numcached</b></p> - Outputs the number of songs cached on disk.</p>