Updated commandlist
This commit is contained in:
		@@ -145,60 +145,60 @@ namespace NadekoBot.Modules.Gambling
 | 
			
		||||
                await Context.Channel.SendErrorAsync($"{Context.User.Mention} was unable to take {amount} {(amount == 1 ? CurrencyName : CurrencyPluralName)} from `{usrId}` because the user doesn't have that much {CurrencyPluralName}!").ConfigureAwait(false);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        [NadekoCommand, Usage, Description, Aliases]
 | 
			
		||||
        [OwnerOnly]
 | 
			
		||||
        public Task BrTest(int tests = 1000)
 | 
			
		||||
        {
 | 
			
		||||
            var t = Task.Run(async () =>
 | 
			
		||||
            {
 | 
			
		||||
                if (tests <= 0)
 | 
			
		||||
                    return;
 | 
			
		||||
                //multi vs how many times it occured
 | 
			
		||||
                var dict = new Dictionary<int, int>();
 | 
			
		||||
                var generator = new NadekoRandom();
 | 
			
		||||
                for (int i = 0; i < tests; i++)
 | 
			
		||||
                {
 | 
			
		||||
                    var rng = generator.Next(0, 101);
 | 
			
		||||
                    var mult = 0;
 | 
			
		||||
                    if (rng < 67)
 | 
			
		||||
                    {
 | 
			
		||||
                        mult = 0;
 | 
			
		||||
                    }
 | 
			
		||||
                    else if (rng < 91)
 | 
			
		||||
                    {
 | 
			
		||||
                        mult = 2;
 | 
			
		||||
                    }
 | 
			
		||||
                    else if (rng < 100)
 | 
			
		||||
                    {
 | 
			
		||||
                        mult = 4;
 | 
			
		||||
                    }
 | 
			
		||||
                    else
 | 
			
		||||
                        mult = 10;
 | 
			
		||||
        //[NadekoCommand, Usage, Description, Aliases]
 | 
			
		||||
        //[OwnerOnly]
 | 
			
		||||
        //public Task BrTest(int tests = 1000)
 | 
			
		||||
        //{
 | 
			
		||||
        //    var t = Task.Run(async () =>
 | 
			
		||||
        //    {
 | 
			
		||||
        //        if (tests <= 0)
 | 
			
		||||
        //            return;
 | 
			
		||||
        //        //multi vs how many times it occured
 | 
			
		||||
        //        var dict = new Dictionary<int, int>();
 | 
			
		||||
        //        var generator = new NadekoRandom();
 | 
			
		||||
        //        for (int i = 0; i < tests; i++)
 | 
			
		||||
        //        {
 | 
			
		||||
        //            var rng = generator.Next(0, 101);
 | 
			
		||||
        //            var mult = 0;
 | 
			
		||||
        //            if (rng < 67)
 | 
			
		||||
        //            {
 | 
			
		||||
        //                mult = 0;
 | 
			
		||||
        //            }
 | 
			
		||||
        //            else if (rng < 91)
 | 
			
		||||
        //            {
 | 
			
		||||
        //                mult = 2;
 | 
			
		||||
        //            }
 | 
			
		||||
        //            else if (rng < 100)
 | 
			
		||||
        //            {
 | 
			
		||||
        //                mult = 4;
 | 
			
		||||
        //            }
 | 
			
		||||
        //            else
 | 
			
		||||
        //                mult = 10;
 | 
			
		||||
 | 
			
		||||
                    if (dict.ContainsKey(mult))
 | 
			
		||||
                        dict[mult] += 1;
 | 
			
		||||
                    else
 | 
			
		||||
                        dict.Add(mult, 1);
 | 
			
		||||
                }
 | 
			
		||||
        //            if (dict.ContainsKey(mult))
 | 
			
		||||
        //                dict[mult] += 1;
 | 
			
		||||
        //            else
 | 
			
		||||
        //                dict.Add(mult, 1);
 | 
			
		||||
        //        }
 | 
			
		||||
 | 
			
		||||
                var sb = new StringBuilder();
 | 
			
		||||
                const int bet = 1;
 | 
			
		||||
                int payout = 0;
 | 
			
		||||
                foreach (var key in dict.Keys.OrderByDescending(x => x))
 | 
			
		||||
                {
 | 
			
		||||
                    sb.AppendLine($"x{key} occured {dict[key]} times. {dict[key] * 1.0f / tests * 100}%");
 | 
			
		||||
                    payout += key * dict[key];
 | 
			
		||||
                }
 | 
			
		||||
                try
 | 
			
		||||
                {
 | 
			
		||||
                    await Context.Channel.SendConfirmAsync("BetRoll Test Results", sb.ToString(),
 | 
			
		||||
                        footer: $"Total Bet: {tests * bet} | Payout: {payout * bet} | {payout * 1.0f / tests * 100}%");
 | 
			
		||||
                }
 | 
			
		||||
                catch { }
 | 
			
		||||
        //        var sb = new StringBuilder();
 | 
			
		||||
        //        const int bet = 1;
 | 
			
		||||
        //        int payout = 0;
 | 
			
		||||
        //        foreach (var key in dict.Keys.OrderByDescending(x => x))
 | 
			
		||||
        //        {
 | 
			
		||||
        //            sb.AppendLine($"x{key} occured {dict[key]} times. {dict[key] * 1.0f / tests * 100}%");
 | 
			
		||||
        //            payout += key * dict[key];
 | 
			
		||||
        //        }
 | 
			
		||||
        //        try
 | 
			
		||||
        //        {
 | 
			
		||||
        //            await Context.Channel.SendConfirmAsync("BetRoll Test Results", sb.ToString(),
 | 
			
		||||
        //                footer: $"Total Bet: {tests * bet} | Payout: {payout * bet} | {payout * 1.0f / tests * 100}%");
 | 
			
		||||
        //        }
 | 
			
		||||
        //        catch { }
 | 
			
		||||
 | 
			
		||||
            });
 | 
			
		||||
            return Task.CompletedTask;
 | 
			
		||||
        }
 | 
			
		||||
        //    });
 | 
			
		||||
        //    return Task.CompletedTask;
 | 
			
		||||
        //}
 | 
			
		||||
 | 
			
		||||
        [NadekoCommand, Usage, Description, Aliases]
 | 
			
		||||
        public async Task BetRoll(long amount)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								src/NadekoBot/Resources/CommandStrings.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										12
									
								
								src/NadekoBot/Resources/CommandStrings.Designer.cs
									
									
									
										generated
									
									
									
								
							@@ -2499,7 +2499,7 @@ namespace NadekoBot.Resources {
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        ///    Looks up a localized string similar to Releases your claim on a specific waifu. You will get a part of your money back unless that waifu has an affinity towards you..
 | 
			
		||||
        ///    Looks up a localized string similar to Releases your claim on a specific waifu. You will get some of the money you've spent back unless that waifu has an affinity towards you. 6 hours cooldown..
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public static string divorce_desc {
 | 
			
		||||
            get {
 | 
			
		||||
@@ -8439,7 +8439,7 @@ namespace NadekoBot.Resources {
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        ///    Looks up a localized string similar to Sets your affinity towards someone you want to be claimed by. Setting affinity will reduce their `{0}claim` on you by 20%.
 | 
			
		||||
        ///    Looks up a localized string similar to Sets your affinity towards someone you want to be claimed by. Setting affinity will reduce their `{0}claim` on you by 20%. You can leave second argument empty to clear your affinity. 30 minutes cooldown..
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public static string waifuclaimeraffinity_desc {
 | 
			
		||||
            get {
 | 
			
		||||
@@ -8448,7 +8448,7 @@ namespace NadekoBot.Resources {
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        ///    Looks up a localized string similar to `{0}affinity`.
 | 
			
		||||
        ///    Looks up a localized string similar to `{0}affinity @MyHusband` or `{0}affinity`.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public static string waifuclaimeraffinity_usage {
 | 
			
		||||
            get {
 | 
			
		||||
@@ -8466,7 +8466,7 @@ namespace NadekoBot.Resources {
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        ///    Looks up a localized string similar to Shows waifu stats for a target person..
 | 
			
		||||
        ///    Looks up a localized string similar to Shows waifu stats for a target person. Defaults to you if no user is provided..
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public static string waifuinfo_desc {
 | 
			
		||||
            get {
 | 
			
		||||
@@ -8475,7 +8475,7 @@ namespace NadekoBot.Resources {
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        ///    Looks up a localized string similar to `{0}waifuinfo @MyCrush`.
 | 
			
		||||
        ///    Looks up a localized string similar to `{0}waifuinfo @MyCrush` or `{0}waifuinfo`.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public static string waifuinfo_usage {
 | 
			
		||||
            get {
 | 
			
		||||
@@ -8493,7 +8493,7 @@ namespace NadekoBot.Resources {
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        ///    Looks up a localized string similar to Shows top 10 waifus..
 | 
			
		||||
        ///    Looks up a localized string similar to Shows top 9 waifus..
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public static string waifuleaderboard_desc {
 | 
			
		||||
            get {
 | 
			
		||||
 
 | 
			
		||||
@@ -2983,10 +2983,10 @@
 | 
			
		||||
    <value>affinity</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="waifuclaimeraffinity_desc" xml:space="preserve">
 | 
			
		||||
    <value>Sets your affinity towards someone you want to be claimed by. Setting affinity will reduce their `{0}claim` on you by 20%</value>
 | 
			
		||||
    <value>Sets your affinity towards someone you want to be claimed by. Setting affinity will reduce their `{0}claim` on you by 20%. You can leave second argument empty to clear your affinity. 30 minutes cooldown.</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="waifuclaimeraffinity_usage" xml:space="preserve">
 | 
			
		||||
    <value>`{0}affinity`</value>
 | 
			
		||||
    <value>`{0}affinity @MyHusband` or `{0}affinity`</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="waifuclaim_cmd" xml:space="preserve">
 | 
			
		||||
    <value>claimwaifu claim</value>
 | 
			
		||||
@@ -3001,7 +3001,7 @@
 | 
			
		||||
    <value>waifus waifulb</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="waifuleaderboard_desc" xml:space="preserve">
 | 
			
		||||
    <value>Shows top 10 waifus.</value>
 | 
			
		||||
    <value>Shows top 9 waifus.</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="waifuleaderboard_usage" xml:space="preserve">
 | 
			
		||||
    <value>`{0}waifus`</value>
 | 
			
		||||
@@ -3010,7 +3010,7 @@
 | 
			
		||||
    <value>divorce</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="divorce_desc" xml:space="preserve">
 | 
			
		||||
    <value>Releases your claim on a specific waifu. You will get a part of your money back unless that waifu has an affinity towards you.</value>
 | 
			
		||||
    <value>Releases your claim on a specific waifu. You will get some of the money you've spent back unless that waifu has an affinity towards you. 6 hours cooldown.</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="divorce_usage" xml:space="preserve">
 | 
			
		||||
    <value>`{0}divorce @CheatingSloot`</value>
 | 
			
		||||
@@ -3019,9 +3019,9 @@
 | 
			
		||||
    <value>waifuinfo waifustats</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="waifuinfo_desc" xml:space="preserve">
 | 
			
		||||
    <value>Shows waifu stats for a target person.</value>
 | 
			
		||||
    <value>Shows waifu stats for a target person. Defaults to you if no user is provided.</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="waifuinfo_usage" xml:space="preserve">
 | 
			
		||||
    <value>`{0}waifuinfo @MyCrush`</value>
 | 
			
		||||
    <value>`{0}waifuinfo @MyCrush` or `{0}waifuinfo`</value>
 | 
			
		||||
  </data>
 | 
			
		||||
</root>
 | 
			
		||||
@@ -15,7 +15,7 @@ namespace NadekoBot.Services.Impl
 | 
			
		||||
        private DiscordShardedClient client;
 | 
			
		||||
        private DateTime started;
 | 
			
		||||
 | 
			
		||||
        public const string BotVersion = "1.1.3";
 | 
			
		||||
        public const string BotVersion = "1.1.4";
 | 
			
		||||
 | 
			
		||||
        public string Author => "Kwoth#2560";
 | 
			
		||||
        public string Library => "Discord.Net";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user