Fixed .d, added command_errors to gitignore

This commit is contained in:
Master Kwoth 2017-06-06 09:28:01 +02:00
parent 7f29c15973
commit 332a8b75a0
3 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
#Manually added files
src/NadekoBot/Command Errors*.txt
src/NadekoBot/credentials.json
src/NadekoBot/data/NadekoBot.db
src/NadekoBot/data/musicdata

View File

@ -362,7 +362,7 @@ namespace NadekoBot.Services
lock (errorLogLock)
{
var now = DateTime.Now;
File.AppendAllText($"./Command Errors {now:yyyy-MM-dd}.txt",
File.AppendAllText($"./command_errors_{now:yyyy-MM-dd}.txt",
$"[{now:HH:mm-yyyy-MM-dd}]" + Environment.NewLine
+ execResult.Exception.ToString() + Environment.NewLine
+ "------" + Environment.NewLine);

View File

@ -232,9 +232,10 @@ namespace NadekoBot.Services.Music
}
}
internal void DestroyPlayer(ulong id)
public void DestroyPlayer(ulong id)
{
throw new NotImplementedException();
if (MusicPlayers.TryRemove(id, out var mp))
mp.Destroy();
}