public async Task InfoAsync([Remainder] string Remainder = null)
        {
            if (Operators.ContainsKey(Context.Message.Author.Id))
            {
                RainBorg.tipBalance = RainBorg.GetBalance();

                decimal i = RainBorg.tipMin + RainBorg.tipFee - RainBorg.tipBalance;
                if (i < 0)
                {
                    i = 0;
                }

                string m = "```Current tip balance: " + RainBorg.Format(RainBorg.tipBalance) + " " + RainBorg.currencyName + "\n" +
                           "Amount needed for next tip: " + RainBorg.Format(i) + " " + RainBorg.currencyName + "\n" +
                           "Next tip at: " + RainBorg.waitNext + "\n" +
                           "Tip minimum: " + RainBorg.Format(RainBorg.tipMin) + " " + RainBorg.currencyName + "\n" +
                           "Tip maximum: " + RainBorg.Format(RainBorg.tipMax) + " " + RainBorg.currencyName + "\n" +
                           "Megatip amount: " + RainBorg.Format(RainBorg.megaTipAmount) + " " + RainBorg.currencyName + "\n" +
                           "Megatip chance: " + RainBorg.Format(RainBorg.megaTipChance) + "%\n" +
                           "Minimum users: " + RainBorg.userMin + "\n" +
                           "Maximum users: " + RainBorg.userMax + "\n" +
                           "Minimum wait time: " + String.Format("{0:n0}", RainBorg.waitMin) + "s (" + TimeSpan.FromSeconds(RainBorg.waitMin).ToString() + ")\n" +
                           "Maximum wait time: " + String.Format("{0:n0}", RainBorg.waitMax) + "s (" + TimeSpan.FromSeconds(RainBorg.waitMax).ToString() + ")\n" +
                           "Message timeout: " + String.Format("{0:n0}", RainBorg.timeoutPeriod) + "s (" + TimeSpan.FromSeconds(RainBorg.timeoutPeriod).ToString() + ")\n" +
                           "Minimum account age: " + TimeSpan.FromHours(RainBorg.accountAge).ToString() + "\n" +
                           "Flush pools on tip: " + RainBorg.flushPools + "\n" +
                           "Operators: " + Operators.Count + "\n" +
                           "Blacklisted: " + Blacklist.Count + "\n" +
                           "Greylisted: " + RainBorg.Greylist.Count + "\n" +
                           "Channels: " + RainBorg.UserPools.Keys.Count + "\n" +
                           "Paused: " + RainBorg.Paused.ToString() +
                           "```";
                await Context.Message.Author.SendMessageAsync(m);
            }
        }
Beispiel #2
0
        public async Task BalanceAsync([Remainder] string Remainder = null)
        {
            // Get balance
            RainBorg.tipBalance = RainBorg.GetBalance();

            decimal i = RainBorg.tipMin - RainBorg.tipBalance;

            if (i < 0)
            {
                i = 0;
            }

            string m = "Current tip balance: " + RainBorg.Format(RainBorg.tipBalance) + RainBorg.currencyName;

            await ReplyAsync(m);
        }