NadekoBot/NadekoBot/Classes/FlowersHandler.cs
2016-03-01 12:44:30 +01:00

23 lines
744 B
C#

using System.Threading.Tasks;
namespace NadekoBot.Classes {
internal 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,
UserId = (long)u.Id,
Value = amount,
});
});
string flows = "";
for (int i = 0; i < amount; i++) {
flows += "🌸";
}
await u.SendMessage("👑Congratulations!👑\nYou got: "+flows);
}
}
}