2014-12-13 05:53:30 +01:00
/ *
* MumbleDJ
* By Matthieu Grieger
* strings . go
2015-01-18 23:44:40 +01:00
* Copyright ( c ) 2014 , 2015 Matthieu Grieger ( MIT License )
2014-12-13 05:53:30 +01:00
* /
2015-07-30 18:28:01 +02:00
package main
2014-12-13 05:53:30 +01:00
2015-05-14 16:52:58 +02:00
// Message shown to users when the bot has an invalid YouTube API key.
const INVALID_API_KEY = "MumbleDJ does not have a valid YouTube API key."
2014-12-13 05:53:30 +01:00
// Message shown to users when they do not have permission to execute a command.
const NO_PERMISSION_MSG = "You do not have permission to execute that command."
2015-01-03 20:31:29 +01:00
// Message shown to users when they try to add a playlist to the queue and do not have permission to do so.
const NO_PLAYLIST_PERMISSION_MSG = "You do not have permission to add playlists to the queue."
2014-12-16 01:42:13 +01:00
// Message shown to users when they try to execute a command that doesn't exist.
const COMMAND_DOESNT_EXIST_MSG = "The command you entered does not exist."
2014-12-13 05:53:30 +01:00
// Message shown to users when they try to move the bot to a non-existant channel.
const CHANNEL_DOES_NOT_EXIST_MSG = "The channel you specified does not exist."
// Message shown to users when they attempt to add an invalid URL to the queue.
const INVALID_URL_MSG = "The URL you submitted does not match the required format."
2015-02-16 17:34:38 +01:00
// Message shown to users when they attempt to add a video that's too long
const VIDEO_TOO_LONG_MSG = "The video you submitted exceeds the duration allowed by the server."
2014-12-13 05:53:30 +01:00
// Message shown to users when they attempt to perform an action on a song when
// no song is playing.
const NO_MUSIC_PLAYING_MSG = "There is no music playing at the moment."
2015-01-03 20:31:29 +01:00
// Message shown to users when they attempt to skip a playlist when there is no playlist playing.
const NO_PLAYLIST_PLAYING_MSG = "There is no playlist playing at the moment."
2015-01-13 01:21:53 +01:00
// Message shown to users when they attempt to use the nextsong command when there is no song coming up.
const NO_SONG_NEXT_MSG = "There are no songs queued at the moment."
2014-12-13 05:53:30 +01:00
// Message shown to users when they issue a command that requires an argument and one was not supplied.
const NO_ARGUMENT_MSG = "The command you issued requires an argument and you did not provide one."
// Message shown to users when they try to change the volume to a value outside the volume range.
2014-12-27 18:41:27 +01:00
const NOT_IN_VOLUME_RANGE_MSG = "Out of range. The volume must be between %f and %f."
2014-12-13 05:53:30 +01:00
2014-12-16 01:42:13 +01:00
// Message shown to user when a successful configuration reload finishes.
const CONFIG_RELOAD_SUCCESS_MSG = "The configuration has been successfully reloaded."
2014-12-13 05:53:30 +01:00
2015-01-03 20:31:29 +01:00
// Message shown to users when an admin skips a song.
2014-12-27 09:25:49 +01:00
const ADMIN_SONG_SKIP_MSG = "An admin has decided to skip the current song."
2015-01-03 20:31:29 +01:00
// Message shown to users when an admin skips a playlist.
const ADMIN_PLAYLIST_SKIP_MSG = "An admin has decided to skip the current playlist."
2014-12-27 09:25:49 +01:00
2014-12-30 22:32:48 +01:00
// Message shown to users when the audio for a video could not be downloaded.
2015-01-31 03:26:51 +01:00
const AUDIO_FAIL_MSG = "The audio download for this video failed. YouTube has likely not generated the audio files for this video yet. Skipping to the next song!"
2014-12-30 22:32:48 +01:00
2015-02-02 21:05:00 +01:00
// Message shown to users when they supply a YouTube URL that does not contain a valid ID.
const INVALID_YOUTUBE_ID_MSG = "The YouTube URL you supplied did not contain a valid YouTube ID."
2015-02-07 23:23:47 +01:00
// Message shown to user when they successfully update the bot's comment.
const COMMENT_UPDATED_MSG = "The comment for the bot has successfully been updated."
2015-02-18 00:43:20 +01:00
// Message shown to user when they request to see the number of songs cached on disk.
const NUM_CACHED_MSG = "There are currently %d songs cached on disk."
// Message shown to user when they request to see the total size of the cache.
const CACHE_SIZE_MSG = "The cache is currently %g MB in size."
// Message shown to user when they attempt to issue a cache-related command when caching is not enabled.
const CACHE_NOT_ENABLED_MSG = "The cache is not currently enabled."
2014-12-13 05:53:30 +01:00
// Message shown to channel when a song is added to the queue by a user.
const SONG_ADDED_HTML = `
2014-12-20 06:52:58 +01:00
< b > % s < / b > has added "%s" to the queue .
2014-12-13 05:53:30 +01:00
`
2015-01-03 20:31:29 +01:00
// Message shown to channel when a playlist is added to the queue by a user.
const PLAYLIST_ADDED_HTML = `
< b > % s < / b > has added the playlist "%s" to the queue .
`
2014-12-13 05:53:30 +01:00
// Message shown to channel when a song has been skipped.
const SONG_SKIPPED_HTML = `
The number of votes required for a skip has been met . < b > Skipping song ! < / b >
`
2015-01-03 20:31:29 +01:00
// Message shown to channel when a playlist has been skipped.
const PLAYLIST_SKIPPED_HTML = `
The number of votes required for a skip has been met . < b > Skipping playlist ! < / b >
`
2015-01-11 01:16:05 +01:00
// Message shown to display bot commands.
const HELP_HTML = ` < br / >
2015-01-11 00:15:12 +01:00
< b > User Commands : < / b >
< p > < b > ! help < / b > - Displays this help . < / p >
2015-01-15 02:51:10 +01:00
< p > < b > ! add < / b > - Adds songs to queue . < / p >
< p > < b > ! volume < / b > - Either tells you the current volume or sets it to a new volume . < / p >
2015-01-11 00:15:12 +01:00
< p > < b > ! skip < / b > - Casts a vote to skip the current song < / p >
< p > < b > ! skipplaylist < / b > - Casts a vote to skip over the current playlist . < / p >
2015-01-15 02:51:10 +01:00
< p > < b > ! numsongs < / b > - Shows how many songs are in queue . < / p >
< p > < b > ! nextsong < / b > - Shows the title and submitter of the next queue item if it exists . < / p >
2015-01-25 20:27:28 +01:00
< p > < b > ! currentsong < / b > - Shows the title and submitter of the song currently playing . < / p >
2015-01-11 00:15:12 +01:00
< p style = "-qt-paragraph-type:empty" > < br / > < / p >
< p > < b > Admin Commands : < / b > < / p >
< p > < b > ! reset < / b > - An admin command that resets the song queue . < / p >
< p > < b > ! forceskip < / b > - An admin command that forces a song skip . < / p >
< p > < b > ! forceskipplaylist < / b > - An admin command that forces a playlist skip . < / p >
< p > < b > ! move < / b > - Moves MumbleDJ into channel if it exists . < / p >
< p > < b > ! reload < / b > - Reloads mumbledj . gcfg configuration settings . < / p >
2015-02-07 23:23:47 +01:00
< p > < b > ! setcomment < / b > - Sets the comment for the bot . < / p >
2015-02-18 00:43:20 +01:00
< p > < b > ! numcached < / b > < / p > - Outputs the number of songs cached on disk . < / p >
< p > < b > ! cachesize < / b > < / p > - Outputs the total file size of the cache in MB . < / p >
2015-01-11 00:15:12 +01:00
< p > < b > ! kill < / b > - Safely cleans the bot environment and disconnects from the server . < / p >
`
2014-12-16 01:42:13 +01:00
// Message shown to users when they ask for the current volume (volume command without argument)
const CUR_VOLUME_HTML = `
2015-01-03 20:31:29 +01:00
The current volume is < b > % .2 f < / b > .
2014-12-16 01:42:13 +01:00
`
2014-12-20 06:52:58 +01:00
// Message shown to users when another user votes to skip the current song.
const SKIP_ADDED_HTML = `
< b > % s < / b > has voted to skip the current song .
`
2014-12-27 09:25:49 +01:00
2015-03-21 05:35:19 +01:00
// Message shown to users when the submitter of a song decides to skip their song.
const SUBMITTER_SKIP_HTML = `
The current song has been skipped by < b > % s < / b > , the submitter .
`
2015-01-03 20:31:29 +01:00
// Message shown to users when another user votes to skip the current playlist.
const PLAYLIST_SKIP_ADDED_HTML = `
< b > % s < / b > has voted to skip the current playlist .
`
2015-03-21 05:35:19 +01:00
// Message shown to users when the submitter of a song decides to skip their song.
const PLAYLIST_SUBMITTER_SKIP_HTML = `
The current playlist has been skipped by < b > % s < / b > , the submitter .
`
2014-12-27 09:25:49 +01:00
// Message shown to users when they successfully change the volume.
const VOLUME_SUCCESS_HTML = `
2015-01-03 20:31:29 +01:00
< b > % s < / b > has changed the volume to < b > % .2 f < / b > .
2014-12-27 09:25:49 +01:00
`
2015-01-06 04:16:59 +01:00
// Message shown to users when a user successfully resets the SongQueue.
const QUEUE_RESET_HTML = `
< b > % s < / b > has cleared the song queue .
`
2015-01-10 22:03:52 +01:00
// Message shown to users when a user asks how many songs are in the queue.
const NUM_SONGS_HTML = `
There are currently < b > % d < / b > song ( s ) in the queue .
`
2015-01-13 01:21:53 +01:00
// Message shown to users when they issue the nextsong command.
const NEXT_SONG_HTML = `
The next song in the queue is "%s" , added by < b > % s < / b > .
`
2015-01-25 20:27:28 +01:00
// Message shown to users when they issue the currentsong command.
const CURRENT_SONG_HTML = `
The song currently playing is "%s" , added by < b > % s < / b > .
`
2015-02-08 02:54:24 +01:00
// Message shown to users when the currentsong command is issued when a song from a
// playlist is playing.
const CURRENT_SONG_PLAYLIST_HTML = `
The song currently playing is "%s" , added < b > % s < / b > from the playlist "%s" .
2015-08-15 19:11:48 +02:00
`