Text fixes
This commit is contained in:
parent
f1df430977
commit
644baba742
@ -46,7 +46,7 @@ namespace NadekoBot.Modules {
|
|||||||
|
|
||||||
cgb.CreateCommand("s")
|
cgb.CreateCommand("s")
|
||||||
.Alias("stop")
|
.Alias("stop")
|
||||||
.Description("Completely stops the music, unbinds the bot from the channel, and cleanes up files.")
|
.Description("Completely stops the music, unbinds the bot from the channel, and cleans up files.")
|
||||||
.Do(e => {
|
.Do(e => {
|
||||||
if (musicPlayers.ContainsKey(e.Server) == false) return;
|
if (musicPlayers.ContainsKey(e.Server) == false) return;
|
||||||
musicPlayers[e.Server].Stop();
|
musicPlayers[e.Server].Stop();
|
||||||
@ -54,7 +54,7 @@ namespace NadekoBot.Modules {
|
|||||||
|
|
||||||
cgb.CreateCommand("p")
|
cgb.CreateCommand("p")
|
||||||
.Alias("pause")
|
.Alias("pause")
|
||||||
.Description("Pauses or Unpauses the song")
|
.Description("Pauses or Unpauses the song.")
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
if (musicPlayers.ContainsKey(e.Server) == false) return;
|
if (musicPlayers.ContainsKey(e.Server) == false) return;
|
||||||
if (musicPlayers[e.Server].TogglePause())
|
if (musicPlayers[e.Server].TogglePause())
|
||||||
@ -190,7 +190,7 @@ namespace NadekoBot.Modules {
|
|||||||
.Parameter("playlist", ParameterType.Unparsed)
|
.Parameter("playlist", ParameterType.Unparsed)
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
if (e.User.VoiceChannel?.Server != e.Server) {
|
if (e.User.VoiceChannel?.Server != e.Server) {
|
||||||
await e.Channel.SendMessage("💢 You need to be in the voice channel on this server.\n If you already are in a voice channel, try rejoining it.");
|
await e.Channel.SendMessage("💢 You need to be in a voice channel on this server.\n If you are already in a voice channel, try rejoining it.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var ids = await SearchHelper.GetVideoIDs(await SearchHelper.GetPlaylistIdByKeyword(e.GetArg("playlist")));
|
var ids = await SearchHelper.GetVideoIDs(await SearchHelper.GetPlaylistIdByKeyword(e.GetArg("playlist")));
|
||||||
@ -208,7 +208,7 @@ namespace NadekoBot.Modules {
|
|||||||
.Parameter("radio_link", ParameterType.Required)
|
.Parameter("radio_link", ParameterType.Required)
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
if (e.User.VoiceChannel?.Server != e.Server) {
|
if (e.User.VoiceChannel?.Server != e.Server) {
|
||||||
await e.Channel.SendMessage("💢 You need to be in the voice channel on this server.\n If you already are in a voice channel, try rejoining it.");
|
await e.Channel.SendMessage("💢 You need to be in a voice channel on this server.\n If you are already in a voice channel, try rejoining it.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await QueueSong(e, e.GetArg("radio_link"), radio: true);
|
await QueueSong(e, e.GetArg("radio_link"), radio: true);
|
||||||
@ -225,7 +225,7 @@ namespace NadekoBot.Modules {
|
|||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand("rm")
|
cgb.CreateCommand("rm")
|
||||||
.Description("Removes a song by a # from the queue or 'all' to remove whole queue.")
|
.Description("Remove a song by its # in the queue, or 'all' to remove whole queue.")
|
||||||
.Parameter("num",ParameterType.Required)
|
.Parameter("num",ParameterType.Required)
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
var arg = e.GetArg("num");
|
var arg = e.GetArg("num");
|
||||||
@ -263,7 +263,7 @@ namespace NadekoBot.Modules {
|
|||||||
|
|
||||||
private async Task QueueSong(CommandEventArgs e, string query, bool silent = false, bool radio = false) {
|
private async Task QueueSong(CommandEventArgs e, string query, bool silent = false, bool radio = false) {
|
||||||
if (e.User.VoiceChannel?.Server != e.Server) {
|
if (e.User.VoiceChannel?.Server != e.Server) {
|
||||||
await e.Channel.SendMessage("💢 You need to be in the voice channel on this server.\n If you are already in a voice channel, try rejoining.");
|
await e.Channel.SendMessage("💢 You need to be in a voice channel on this server.\n If you are already in a voice channel, try rejoining.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user