.unstuck, added points, clearer descriptions, $$$ command

This commit is contained in:
Master Kwoth
2016-02-09 23:12:54 +01:00
parent a270f3c91a
commit 9f9ef8923b
11 changed files with 80 additions and 12 deletions

View File

@ -110,7 +110,16 @@ namespace NadekoBot.Classes.Trivia {
await _channel.SendMessage($"☑️ {e.User.Mention} guessed it! The answer was: **{CurrentQuestion.Answer}**");
if (users[e.User] == WinRequirement) {
ShouldStopGame = true;
await _channel.Send($":exclamation: We have a winner! Its {e.User.Mention}");
await _channel.Send($":exclamation: We have a winner! Its {e.User.Mention}.");
// add points to the winner
await Task.Run(async () => {
DBHandler.Instance.InsertData(new _DataModels.CurrencyTransaction {
Reason = "Won Trivia",
UserId = (long)e.User.Id,
Value = 2,
});
await e.User.SendMessage("👑Congratulations!👑\nYou got: 🌸🌸");
});
}
}
}