mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Refactors. Cleanup. Refactored responses source gen a little. Parametrized localized strings are now generic. Refactored .cash bank interaction. Updated changelog. Reverted clubapps/ban/unban to use .ToString method and configured it to not have right to left unicode. Added extension methods to SocketMessageComponent akin to ones on the IMessageChannel (RespondConfirm, etc...)
This commit is contained in:
@@ -39,13 +39,19 @@ public abstract class GamblingModule<TService> : NadekoModule<TService>
|
||||
return true;
|
||||
}
|
||||
|
||||
public static string N(long cur, IFormatProvider format)
|
||||
=> cur.ToString("C0", format);
|
||||
|
||||
public static string N(decimal cur, IFormatProvider format)
|
||||
=> cur.ToString("C0", format);
|
||||
|
||||
protected string N(long cur)
|
||||
=> cur.ToString("C0", GetFlowersCiInternal());
|
||||
=> N(cur, GetFlowersCiInternal());
|
||||
|
||||
protected string N(decimal cur)
|
||||
=> cur.ToString("C0", GetFlowersCiInternal());
|
||||
=> N(cur, GetFlowersCiInternal());
|
||||
|
||||
private IFormatProvider GetFlowersCiInternal()
|
||||
protected IFormatProvider GetFlowersCiInternal()
|
||||
{
|
||||
var flowersCi = (CultureInfo)Culture.Clone();
|
||||
flowersCi.NumberFormat.CurrencySymbol = CurrencySign;
|
||||
|
Reference in New Issue
Block a user