mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
Gambling moved to a separate project. Project builds
This commit is contained in:
18
src/NadekoBot/Modules/Gambling/CurrencyProvider.cs
Normal file
18
src/NadekoBot/Modules/Gambling/CurrencyProvider.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Nadeko.Bot.Common;
|
||||
using NadekoBot.Modules.Gambling.Services;
|
||||
|
||||
namespace NadekoBot.Modules.Gambling;
|
||||
|
||||
// todo do we need both currencyprovider and currencyservice
|
||||
public sealed class CurrencyProvider : ICurrencyProvider
|
||||
{
|
||||
private readonly GamblingConfigService _cs;
|
||||
|
||||
public CurrencyProvider(GamblingConfigService cs)
|
||||
{
|
||||
_cs = cs;
|
||||
}
|
||||
|
||||
public string GetCurrencySign()
|
||||
=> _cs.Data.Currency.Sign;
|
||||
}
|
Reference in New Issue
Block a user