#391 take now dms the user that he lost flowers.

This commit is contained in:
Master Kwoth 2016-07-11 11:47:27 +02:00
parent 718f0d4871
commit 98f6498711

View File

@ -21,12 +21,12 @@ namespace NadekoBot.Classes
if (silent)
return;
var flows = amount +" " + NadekoBot.Config.CurrencySign;
var flows = amount + " " + NadekoBot.Config.CurrencySign;
await u.SendMessage("👑Congratulations!👑\nYou received: " + flows).ConfigureAwait(false);
}
public static bool RemoveFlowers(Discord.User u, string reason, int amount)
public static async Task<bool> RemoveFlowers(Discord.User u, string reason, int amount)
{
if (amount <= 0)
return false;
@ -42,6 +42,8 @@ namespace NadekoBot.Classes
UserId = (long)u.Id,
Value = -amount,
});
await u.SendMessage("👎`Bot owner has taken:" + amount + " from you.`").ConfigureAwait(false);
return true;
}
}