Fixed .feed related commands and updated an example to a working one. Updated packages

This commit is contained in:
Kwoth
2022-03-22 11:49:32 +01:00
parent bed3347cd9
commit 77195843d0
4 changed files with 19 additions and 21 deletions

View File

@@ -39,13 +39,18 @@ public abstract class GamblingModule<TService> : NadekoModule<TService>
return true;
}
protected string N<T>(T cur)
where T : INumber<T>
protected string N(long cur)
=> cur.ToString("C0", GetFlowersCiInternal());
protected string N(decimal cur)
=> cur.ToString("C0", GetFlowersCiInternal());
private IFormatProvider GetFlowersCiInternal()
{
var flowersCi = (CultureInfo)Culture.Clone();
flowersCi.NumberFormat.CurrencySymbol = CurrencySign;
flowersCi.NumberFormat.CurrencyNegativePattern = 5;
return cur.ToString("C0", flowersCi);
return flowersCi;
}
protected Task<bool> CheckBetMandatory(long amount)