#391 take now dms the user that he lost flowers.
This commit is contained in:
parent
718f0d4871
commit
98f6498711
@ -26,7 +26,7 @@ namespace NadekoBot.Classes
|
|||||||
await u.SendMessage("👑Congratulations!👑\nYou received: " + flows).ConfigureAwait(false);
|
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)
|
if (amount <= 0)
|
||||||
return false;
|
return false;
|
||||||
@ -42,6 +42,8 @@ namespace NadekoBot.Classes
|
|||||||
UserId = (long)u.Id,
|
UserId = (long)u.Id,
|
||||||
Value = -amount,
|
Value = -amount,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await u.SendMessage("👎`Bot owner has taken:" + amount + " from you.`").ConfigureAwait(false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user