Example #1
0
        public async Task DailyMoney()
        {
            if (Context.Channel is IPrivateChannel)
            {
                return;
            }

            await EconomyService.DailyCommandErrorMessage(Context.Guild, Context.Channel);
        }
Example #2
0
        public async Task TransferMoney(IGuildUser user, ulong MoneyToTransfer)
        {
            if (Context.Channel is IPrivateChannel)
            {
                return;
            }

            await EconomyService.TransferMoney(Context.Guild, Context.Channel, Context.Message, (IGuildUser)Context.User, user, MoneyToTransfer);
        }
Example #3
0
        public async Task Balance()
        {
            if (Context.Channel is IPrivateChannel)
            {
                return;
            }

            await EconomyService.BalanceCommandErrorMessage(Context.Guild, Context.Channel);
        }
 private void Start()
 {
     _economyService = ServiceProvider.ProvideEconomy();
     _audioSource    = GetComponent <AudioSource>();
 }
Example #5
0
 public EconomyModule(EconomyService economy)
 {
     _economy = economy;
 }
 private void Awake()
 {
     economyService = ServiceProvider.ProvideEconomy();
     Coins.text     = economyService.QuantityCoins().ToString();
     economyService.CoinsChanged += OnCoinsChanged;
 }