Minor changes and a slight fix
This commit is contained in:
parent
3526f956c3
commit
0565830583
@ -628,32 +628,49 @@ namespace NadekoBot.Modules.Administration
|
||||
switch (logChannelType)
|
||||
{
|
||||
case LogType.Other:
|
||||
newLogSetting.LogOtherId = null;
|
||||
break;
|
||||
case LogType.MessageUpdated:
|
||||
newLogSetting.MessageUpdatedId = null;
|
||||
break;
|
||||
case LogType.MessageDeleted:
|
||||
newLogSetting.MessageDeletedId = null;
|
||||
break;
|
||||
case LogType.UserJoined:
|
||||
newLogSetting.UserJoinedId = null;
|
||||
break;
|
||||
case LogType.UserLeft:
|
||||
newLogSetting.UserLeftId = null;
|
||||
break;
|
||||
case LogType.UserBanned:
|
||||
newLogSetting.UserBannedId = null;
|
||||
break;
|
||||
case LogType.UserUnbanned:
|
||||
newLogSetting.UserUnbannedId = null;
|
||||
break;
|
||||
case LogType.UserUpdated:
|
||||
newLogSetting.UserUpdatedId = null;
|
||||
break;
|
||||
case LogType.UserMuted:
|
||||
newLogSetting.UserMutedId = null;
|
||||
break;
|
||||
case LogType.ChannelCreated:
|
||||
newLogSetting.ChannelCreatedId = null;
|
||||
break;
|
||||
case LogType.ChannelDestroyed:
|
||||
newLogSetting.ChannelDestroyedId = null;
|
||||
break;
|
||||
case LogType.ChannelUpdated:
|
||||
newLogSetting.ChannelUpdatedId = null;
|
||||
break;
|
||||
case LogType.UserPresence:
|
||||
newLogSetting.LogUserPresenceId = null;
|
||||
break;
|
||||
case LogType.VoicePresence:
|
||||
newLogSetting.LogVoicePresenceId = null;
|
||||
break;
|
||||
case LogType.VoicePresenceTTS:
|
||||
newLogSetting.LogVoicePresenceTTSId = null;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -40,8 +40,9 @@ namespace NadekoBot.Modules.Games
|
||||
await channel.SendConfirmAsync($"**Trivia game started! {triviaGame.WinRequirement} points needed to win.**").ConfigureAwait(false);
|
||||
else
|
||||
await triviaGame.StopGame().ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
||||
await channel.SendErrorAsync("Trivia game is already running on this server.\n" + trivia.CurrentQuestion).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@ -53,8 +54,11 @@ namespace NadekoBot.Modules.Games
|
||||
|
||||
TriviaGame trivia;
|
||||
if (RunningTrivias.TryGetValue(channel.Guild.Id, out trivia))
|
||||
{
|
||||
await channel.SendConfirmAsync("Leaderboard", trivia.GetLeaderboard()).ConfigureAwait(false);
|
||||
else
|
||||
return;
|
||||
}
|
||||
|
||||
await channel.SendErrorAsync("No trivia is running on this server.").ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@ -68,8 +72,9 @@ namespace NadekoBot.Modules.Games
|
||||
if (RunningTrivias.TryGetValue(channel.Guild.Id, out trivia))
|
||||
{
|
||||
await trivia.StopGame().ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
||||
await channel.SendErrorAsync("No trivia is running on this server.").ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
@ -20,6 +20,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<DnxInvisibleContent Include="data\questions.json" />
|
||||
<DnxInvisibleContent Include="data\questions2.json" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user