NadekoFlowers, fix
This commit is contained in:
@@ -7,6 +7,8 @@ using System.Threading.Tasks;
|
||||
namespace NadekoBot.Classes {
|
||||
static class FlowersHandler {
|
||||
public static async Task AddFlowersAsync(Discord.User u, string reason, int amount) {
|
||||
if (amount <= 0)
|
||||
return;
|
||||
await Task.Run(() => {
|
||||
DBHandler.Instance.InsertData(new _DataModels.CurrencyTransaction {
|
||||
Reason = reason,
|
||||
@@ -14,7 +16,11 @@ namespace NadekoBot.Classes {
|
||||
Value = amount,
|
||||
});
|
||||
});
|
||||
await u.SendMessage("👑Congratulations!👑\nYou got: 🌸🌸");
|
||||
string flows = "";
|
||||
for (int i = 0; i < amount; i++) {
|
||||
flows += "🌸";
|
||||
}
|
||||
await u.SendMessage("👑Congratulations!👑\nYou got: "+flows);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user