From e07d4e654ef16bf58a971b88f40e84fc8a3c4d3e Mon Sep 17 00:00:00 2001 From: Matthieu Grieger Date: Fri, 12 Dec 2014 20:53:30 -0800 Subject: [PATCH] Add strings.go --- strings.go | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 strings.go diff --git a/strings.go b/strings.go new file mode 100644 index 0000000..4379c1e --- /dev/null +++ b/strings.go @@ -0,0 +1,57 @@ +/* + * MumbleDJ + * By Matthieu Grieger + * strings.go + * Copyright (c) 2014 Matthieu Grieger (MIT License) + */ + +package main + +// 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." + +// 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." + +// 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." + +// 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. +const NOT_IN_VOLUME_RANGE_MSG = "Out of range. The volume must be between %f and %f." + +// Message shown to users when they successfully change the volume. +const VOLUME_SUCCESS_MSG = "You have successfully changed the volume to the following: %f." + +// Message shown to a channel when a new song starts playing. +const NOW_PLAYING_HTML = ` + + + + + + + + + + +
%s (%s)
Added by %s
+` + +// Message shown to channel when a song is added to the queue by a user. +const SONG_ADDED_HTML = ` + %s has voted to skip this song. +` + +// 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. Skipping song! +` + +