moved .commands and .modules to help, -h takes a command name optionaly. Fixes.
This commit is contained in:
1 parent
c13eebb69d
commit
b08e37f89d
8 files changed
+56
-32
No files matched your search
@@ -81,15 +81,14 @@ namespace NadekoBot.Classes.Trivia {
|
||||
|
||||
private async Task End() {
|
||||
ShouldStopGame = true;
|
||||
await _channel.SendMessage("**Trivia game ended**");
|
||||
await _channel.SendMessage(GetLeaderboard());
|
||||
await _channel.SendMessage("**Trivia game ended**\n"+GetLeaderboard());
|
||||
TriviaGame throwAwayValue;
|
||||
Commands.Trivia.runningTrivias.TryRemove(_server, out throwAwayValue);
|
||||
}
|
||||
|
||||
public void StopGame() {
|
||||
public async void StopGame() {
|
||||
if (!ShouldStopGame)
|
||||
_channel.SendMessage(":exclamation: Trivia will stop after this question.");
|
||||
await _channel.SendMessage(":exclamation: Trivia will stop after this question.");
|
||||
ShouldStopGame = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user