mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
Reworked currency service. Some features are missing
This commit is contained in:
@@ -29,7 +29,7 @@ public class WheelOfFortuneGame
|
||||
var amount = (long)(_bet * _config.WheelOfFortune.Multipliers[result]);
|
||||
|
||||
if (amount > 0)
|
||||
await _cs.AddAsync(_userId, "Wheel Of Fortune - won", amount, true);
|
||||
await _cs.AddAsync(_userId, amount, new("wheel", "win"));
|
||||
|
||||
return new() { Index = result, Amount = amount };
|
||||
}
|
||||
|
@@ -29,7 +29,7 @@ public partial class Gambling
|
||||
if (!await CheckBetMandatory(amount))
|
||||
return;
|
||||
|
||||
if (!await _cs.RemoveAsync(ctx.User.Id, "Wheel Of Fortune - bet", amount, true))
|
||||
if (!await _cs.RemoveAsync(ctx.User.Id, amount, new("wheel", "bet")))
|
||||
{
|
||||
await ReplyErrorLocalizedAsync(strs.not_enough(CurrencySign));
|
||||
return;
|
||||
|
Reference in New Issue
Block a user