#391 take now dms the user that he lost flowers.
This commit is contained in:
parent
718f0d4871
commit
98f6498711
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user