mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
added botcut setting to gambling.yml in which you can configure shopcut for now (how much money the bot takes when something is sold in the shop)
This commit is contained in:
@@ -283,8 +283,8 @@ public partial class Gambling
|
||||
}
|
||||
}
|
||||
|
||||
private static long GetProfitAmount(int price)
|
||||
=> (int)Math.Ceiling(0.90 * price);
|
||||
private long GetProfitAmount(int price)
|
||||
=> (int)Math.Ceiling((1.0m - Config.BotCuts.ShopSaleCut) * price);
|
||||
|
||||
[Cmd]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
|
Reference in New Issue
Block a user