From 828ffdaf753fea31aa8786705a4eb16e0867fb2b Mon Sep 17 00:00:00 2001 From: Kwoth Date: Tue, 19 Jan 2016 06:43:52 +0100 Subject: [PATCH] small change --- NadekoBot/Modules/Music.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NadekoBot/Modules/Music.cs b/NadekoBot/Modules/Music.cs index 5f524017..8bc9669c 100644 --- a/NadekoBot/Modules/Music.cs +++ b/NadekoBot/Modules/Music.cs @@ -77,13 +77,14 @@ namespace NadekoBot.Modules { cgb.CreateCommand("s") .Alias("stop") - .Description("Completely stops the music and unbinds the bot from the channel.") + .Description("Completely stops the music and unbinds the bot from the channel and cleanes up files.") .Do(e => { SongQueue.Clear(); if (CurrentSong != null) { CurrentSong.Cancel(); CurrentSong = null; } + Directory.Delete("StreamBuffers", true); }); cgb.CreateCommand("p") .Alias("pause") @@ -206,9 +207,9 @@ namespace NadekoBot.Modules { StartBuffering(); linkResolved = true; Channel.Send(":musical_note: **Queued** " + video.FullName); - } catch (Exception) { + } catch (Exception e) { // Send a message to the guy that queued that - Channel.SendMessage(":warning: " + User.Mention + " Cannot load youtube url: `This video is not available in your country` or the url is corrupted somehow..."); + Channel.SendMessage(":warning: The url is corrupted somehow..."); Console.WriteLine("Cannot parse youtube url: " + query); Cancel(); }