diff --git a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs index afe1ba4c..71414d37 100644 --- a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs @@ -128,9 +128,9 @@ namespace NadekoBot.Modules.Administration isEnabled = conf.VoicePlusTextEnabled = !conf.VoicePlusTextEnabled; await uow.CompleteAsync().ConfigureAwait(false); } - voicePlusTextCache.Add(guild.Id); if (!isEnabled) { + voicePlusTextCache.TryRemove(guild.Id); foreach (var textChannel in guild.GetTextChannels().Where(c => c.Name.EndsWith("-voice"))) { try { await textChannel.DeleteAsync().ConfigureAwait(false); } catch { } @@ -138,6 +138,7 @@ namespace NadekoBot.Modules.Administration await channel.SendMessageAsync("Successfuly removed voice + text feature.").ConfigureAwait(false); return; } + voicePlusTextCache.Add(guild.Id); await channel.SendMessageAsync("Successfuly enabled voice + text feature.").ConfigureAwait(false); } diff --git a/src/NadekoBot/credentials_example.json b/src/NadekoBot/credentials_example.json new file mode 100644 index 00000000..31a9414f --- /dev/null +++ b/src/NadekoBot/credentials_example.json @@ -0,0 +1,15 @@ +{ + "ClientId": 123123123, + "BotId": null, + "Token": "", + "OwnerIds": [ + 0 + ], + "LoLApiKey": "", + "GoogleApiKey": "", + "MashapeKey": "", + "OsuApiKey": "", + "SoundCloudClientId": "", + "Db": null, + "TotalShards": 1 +} \ No newline at end of file