Flowers handler, moved currency granting over there
This commit is contained in:
@ -112,14 +112,7 @@ namespace NadekoBot.Classes.Trivia {
|
||||
ShouldStopGame = true;
|
||||
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: 🌸🌸");
|
||||
});
|
||||
await FlowersHandler.AddFlowersAsync(e.User, "Won Trivia", 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user