move or stay almost complete

This commit is contained in:
Kwoth 2017-03-04 03:15:31 +01:00
parent 0be6f8c86c
commit 751bd85b3e
3 changed files with 203 additions and 101 deletions

View File

@ -1,4 +1,5 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
@ -14,28 +15,54 @@ namespace NadekoBot.Modules.Gambling
//public partial class Gambling
//{
// [Group]
// public class MoveOrStayCommands : NadekoSubmodule
// public class Lucky7Commands : NadekoSubmodule
// {
// [NadekoCommand, Usage, Description, Aliases]
// [RequireContext(ContextType.Guild)]
// [OwnerOnly]
// public async Task MoveOrStayTest()
// public async Task Lucky7Test(uint tests)
// {
// //test 1, just stop on second one
// if (tests <= 0)
// return;
// //test 2, stop when winning
// var dict = new Dictionary<float, int>();
// var totalWon = 0;
// for (var i = 0; i < tests; i++)
// {
// var g = new Lucky7Game(10);
// while (!g.Ended)
// {
// if (g.CurrentPosition == 0)
// g.Stay();
// else
// g.Move();
// }
// totalWon += (int)(g.CurrentMultiplier * g.Bet);
// if (!dict.ContainsKey(g.CurrentMultiplier))
// dict.Add(g.CurrentMultiplier, 0);
// dict[g.CurrentMultiplier] ++;
// }
// await Context.Channel.EmbedAsync(new EmbedBuilder().WithOkColor()
// .WithTitle("Move Or Stay test")
// .WithDescription(string.Join("\n",
// dict.Select(x => $"x{x.Key} occured {x.Value} times {x.Value * 1.0f / tests * 100:F2}%")))
// .WithFooter(
// efb => efb.WithText($"Total Bet: {tests * 10} | Payout: {totalWon} | {totalWon *1.0f / tests * 10}%")));
// }
// private static readonly ConcurrentDictionary<ulong, MoveOrStayGame> _games = new ConcurrentDictionary<ulong, MoveOrStayGame>();
// private static readonly ConcurrentDictionary<ulong, Lucky7Game> _games =
// new ConcurrentDictionary<ulong, Lucky7Game>();
// [NadekoCommand, Usage, Description, Aliases]
// [RequireContext(ContextType.Guild)]
// public async Task MoveOrStay(int bet)
// public async Task Lucky7(int bet)
// {
// if (bet < 4)
// return;
// var game = new MoveOrStayGame(bet);
// var game = new Lucky7Game(bet);
// if (!_games.TryAdd(Context.User.Id, game))
// {
// await ReplyAsync("You're already betting on move or stay.").ConfigureAwait(false);
@ -44,14 +71,15 @@ namespace NadekoBot.Modules.Gambling
// if (!await CurrencyHandler.RemoveCurrencyAsync(Context.User, "MoveOrStay bet", bet, false))
// {
// await ReplyAsync("You don't have enough money");
// _games.TryRemove(Context.User.Id, out game);
// await ReplyConfirmLocalized("not_enough", CurrencySign).ConfigureAwait(false);
// return;
// }
// await Context.Channel.EmbedAsync(GetGameState(game),
// await Context.Channel.EmbedAsync(GetGameState(game),
// string.Format("{0} rolled {1}.", Context.User, game.Rolled)).ConfigureAwait(false);
// }
// public enum Mors
// public enum MoveOrStay
// {
// Move = 1,
// M = 1,
@ -61,38 +89,40 @@ namespace NadekoBot.Modules.Gambling
// [NadekoCommand, Usage, Description, Aliases]
// [RequireContext(ContextType.Guild)]
// public async Task MoveOrStay(Mors action)
// public async Task Lucky7(MoveOrStay action)
// {
// MoveOrStayGame game;
// Lucky7Game game;
// if (!_games.TryGetValue(Context.User.Id, out game))
// {
// await ReplyAsync("You're not betting on move or stay.").ConfigureAwait(false);
// return;
// }
// if (action == Mors.Move)
// if (action == MoveOrStay.Move)
// {
// game.Move();
// await Context.Channel.EmbedAsync(GetGameState(game), string.Format("{0} rolled {1}.", Context.User, game.Rolled)).ConfigureAwait(false); if (game.Ended)
// await Context.Channel.EmbedAsync(GetGameState(game),
// string.Format("{0} rolled {1}.", Context.User, game.Rolled)).ConfigureAwait(false);
// if (game.Ended)
// _games.TryRemove(Context.User.Id, out game);
// }
// else if (action == Mors.Stay)
// else if (action == MoveOrStay.Stay)
// {
// var won = game.Stay();
// await CurrencyHandler.AddCurrencyAsync(Context.User, "MoveOrStay stay", won, false)
// .ConfigureAwait(false);
// _games.TryRemove(Context.User.Id, out game);
// await ReplyAsync(string.Format("You've finished with {0}",
// won + CurrencySign))
// await ReplyAsync(string.Format("You've finished with {0}",
// won + CurrencySign))
// .ConfigureAwait(false);
// }
// }
// private EmbedBuilder GetGameState(MoveOrStayGame game)
// private EmbedBuilder GetGameState(Lucky7Game game)
// {
// var arr = MoveOrStayGame.Winnings.ToArray();
// var arr = Lucky7Game.Winnings.ToArray();
// var sb = new StringBuilder();
// for (var i = 0; i < arr.Length; i++)
// {
@ -110,18 +140,18 @@ namespace NadekoBot.Modules.Gambling
// }
// return new EmbedBuilder().WithOkColor()
// .WithTitle("Move or Stay")
// .WithTitle("Lucky7")
// .WithDescription(sb.ToString())
// .AddField(efb => efb.WithName("Bet")
// .WithValue(game.Bet.ToString())
// .WithIsInline(true))
// .WithValue(game.Bet.ToString())
// .WithIsInline(true))
// .AddField(efb => efb.WithName("Current Value")
// .WithValue((game.CurrentMultiplier * game.Bet).ToString(_cultureInfo))
// .WithIsInline(true));
// .WithValue((game.CurrentMultiplier * game.Bet).ToString(_cultureInfo))
// .WithIsInline(true));
// }
// }
// public class MoveOrStayGame
// public class Lucky7Game
// {
// public int Bet { get; }
// public bool Ended { get; private set; }
@ -130,13 +160,13 @@ namespace NadekoBot.Modules.Gambling
// public int Rolled { get; private set; }
// public float CurrentMultiplier => Winnings[CurrentPosition];
// private readonly NadekoRandom _rng = new NadekoRandom();
// public static readonly ImmutableArray<float> Winnings = new[]
// {
// 1.5f, 0.75f, 1f, 0.5f, 0.25f, 0.25f, 2.5f, 0f, 0f
// 1.2f, 0.8f, 0.75f, 0.90f, 0.7f, 0.5f, 1.8f, 0f, 0f
// }.ToImmutableArray();
// public MoveOrStayGame(int bet)
// public Lucky7Game(int bet)
// {
// Bet = bet;
// Move();
@ -150,7 +180,7 @@ namespace NadekoBot.Modules.Gambling
// Rolled = _rng.Next(1, 4);
// CurrentPosition += Rolled;
// if (CurrentPosition >= 7)
// if (CurrentPosition >= 6)
// Ended = true;
// }

View File

@ -150,7 +150,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Add a custom reaction with a trigger and a response. Running this command in server requires Administration permission. Running this command in DM is Bot Owner only and adds a new global custom reaction. Guide here: &lt;http://nadekobot.readthedocs.io/en/latest/Custom%20Reactions/&gt;.
/// Looks up a localized string similar to Add a custom reaction with a trigger and a response. Running this command in server requires the Administration permission. Running this command in DM is Bot Owner only and adds a new global custom reaction. Guide here: &lt;http://nadekobot.readthedocs.io/en/latest/Custom%20Reactions/&gt;.
/// </summary>
public static string addcustreact_desc {
get {
@ -177,7 +177,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Adds a specified string to the list of playing strings to rotate. Supported placeholders: %servers%, %users%, %playing%, %queued%, %time%,%shardid%,%shardcount%, %shardguilds%.
/// Looks up a localized string similar to Adds a specified string to the list of playing strings to rotate. Supported placeholders: `%servers%`, `%users%`, `%playing%`, `%queued%`, `%time%`, `%shardid%`, `%shardcount%`, `%shardguilds%`..
/// </summary>
public static string addplaying_desc {
get {
@ -231,7 +231,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles the automatic deletion of confirmations for {0}iam and {0}iamn commands..
/// Looks up a localized string similar to Toggles the automatic deletion of confirmations for `{0}iam` and `{0}iamn` commands..
/// </summary>
public static string adsarm_desc {
get {
@ -420,7 +420,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sends a message to all servers&apos; general channel bot is connected to..
/// Looks up a localized string similar to Sends a message to all servers&apos; default channel that bot is connected to..
/// </summary>
public static string announce_desc {
get {
@ -501,7 +501,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Stops people from repeating same message X times in a row. You can specify to either mute, kick or ban the offenders. Max message count is 10..
/// Looks up a localized string similar to Stops people from repeating same message X times in a row. You can specify to either mute, kick or ban the offenders. Max message count is 10..
/// </summary>
public static string antispam_desc {
get {
@ -690,7 +690,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles autoplay - When the song is finished, automatically queue a related youtube song. (Works only for youtube songs and when queue is empty).
/// Looks up a localized string similar to Toggles autoplay - When the song is finished, automatically queue a related Youtube song. (Works only for Youtube songs and when queue is empty).
/// </summary>
public static string autoplay_desc {
get {
@ -1014,7 +1014,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets the time it takes (in seconds) for bye messages to be auto-deleted. Set 0 to disable automatic deletion..
/// Looks up a localized string similar to Sets the time it takes (in seconds) for bye messages to be auto-deleted. Set it to `0` to disable automatic deletion..
/// </summary>
public static string byedel_desc {
get {
@ -1041,7 +1041,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets a new leave announcement message. Type %user% if you want to show the name the user who left. Type %id% to show id. Using this command with no message will show the current bye message. You can use embed json from &lt;http://nadekobot.xyz/embedbuilder/&gt; instead of a regular text, if you want the message to be embedded..
/// Looks up a localized string similar to Sets a new leave announcement message. Type `%user%` if you want to show the name the user who left. Type `%id%` to show id. Using this command with no message will show the current bye message. You can use embed json from &lt;http://nadekobot.xyz/embedbuilder/&gt; instead of a regular text, if you want the message to be embedded..
/// </summary>
public static string byemsg_desc {
get {
@ -1068,7 +1068,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Shows all available operations in {0}calc command.
/// Looks up a localized string similar to Shows all available operations in the `{0}calc` command.
/// </summary>
public static string calcops_desc {
get {
@ -1419,7 +1419,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles automatic deleting of invites posted in the channel. Does not negate the {0}srvrfilterinv enabled setting. Does not affect Bot Owner..
/// Looks up a localized string similar to Toggles automatic deletion of invites posted in the channel. Does not negate the `{0}srvrfilterinv` enabled setting. Does not affect the Bot Owner..
/// </summary>
public static string chnlfilterinv_desc {
get {
@ -1446,7 +1446,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles automatic deleting of messages containing banned words on the channel. Does not negate the {0}srvrfilterwords enabled setting. Does not affect bot owner..
/// Looks up a localized string similar to Toggles automatic deletion of messages containing filtered words on the channel. Does not negate the `{0}srvrfilterwords` enabled setting. Does not affect the Bot Owner..
/// </summary>
public static string chnlfilterwords_desc {
get {
@ -1527,7 +1527,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Shows a random chucknorris joke from &lt;http://tambal.azurewebsites.net/joke/random&gt;.
/// Looks up a localized string similar to Shows a random Chuck Norris joke from &lt;http://tambal.azurewebsites.net/joke/random&gt;.
/// </summary>
public static string chucknorris_desc {
get {
@ -1743,7 +1743,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets a cooldown per user for a command. Set to 0 to remove the cooldown..
/// Looks up a localized string similar to Sets a cooldown per user for a command. Set it to 0 to remove the cooldown..
/// </summary>
public static string cmdcooldown_desc {
get {
@ -1770,7 +1770,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Shows a list of command costs. Paginated with 9 command per page..
/// Looks up a localized string similar to Shows a list of command costs. Paginated with 9 commands per page..
/// </summary>
public static string cmdcosts_desc {
get {
@ -1851,7 +1851,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to List all of the bot&apos;s commands from a certain module. You can either specify full, or only first few letters of the module name..
/// Looks up a localized string similar to List all of the bot&apos;s commands from a certain module. You can either specify the full name or only the first few letters of the module name..
/// </summary>
public static string commands_desc {
get {
@ -2310,7 +2310,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Deletes a custom reaction on a specific index. If ran in DM, it is bot owner only and deletes a global custom reaction. If ran in a server, it requires Administration priviledges and removes server custom reaction..
/// Looks up a localized string similar to Deletes a custom reaction on a specific index. If ran in DM, it is bot owner only and deletes a global custom reaction. If ran in a server, it requires Administration privileges and removes server custom reaction..
/// </summary>
public static string delcustreact_desc {
get {
@ -2337,7 +2337,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Deletes a saved playlist. Only if you made it or if you are the bot owner..
/// Looks up a localized string similar to Deletes a saved playlist. Works only if you made it or if you are the bot owner..
/// </summary>
public static string deleteplaylist_desc {
get {
@ -2391,7 +2391,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles the automatic deletion of user&apos;s successful command message to prevent chat flood..
/// Looks up a localized string similar to Toggles the automatic deletion of the user&apos;s successful command message to prevent chat flood..
/// </summary>
public static string delmsgoncmd_desc {
get {
@ -2607,7 +2607,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to List of lovely people who donated to keep this project alive..
/// Looks up a localized string similar to List of the lovely people who donated to keep this project alive..
/// </summary>
public static string donators_desc {
get {
@ -2715,7 +2715,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles fairplay. While enabled, music player will prioritize songs from users who didn&apos;t have their song recently played instead of the song&apos;s position in the queue..
/// Looks up a localized string similar to Toggles fairplay. While enabled, the bot will prioritize songs from users who didn&apos;t have their song recently played instead of the song&apos;s position in the queue..
/// </summary>
public static string fairplay_desc {
get {
@ -2823,7 +2823,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles whether messages will be forwarded to all bot owners or only to the first one specified in the credentials.json.
/// Looks up a localized string similar to Toggles whether messages will be forwarded to all bot owners or only to the first one specified in the credentials.json file.
/// </summary>
public static string forwardtoall_desc {
get {
@ -2931,7 +2931,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Get a google search link for some terms..
/// Looks up a localized string similar to Get a Google search link for some terms..
/// </summary>
public static string google_desc {
get {
@ -3012,7 +3012,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets the time it takes (in seconds) for greet messages to be auto-deleted. Set 0 to disable automatic deletion..
/// Looks up a localized string similar to Sets the time it takes (in seconds) for greet messages to be auto-deleted. Set it to 0 to disable automatic deletion..
/// </summary>
public static string greetdel_desc {
get {
@ -3066,7 +3066,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets a new join announcement message which will be sent to the user who joined. Type %user% if you want to mention the new member. Using it with no message will show the current DM greet message. You can use embed json from &lt;http://nadekobot.xyz/embedbuilder/&gt; instead of a regular text, if you want the message to be embedded..
/// Looks up a localized string similar to Sets a new join announcement message which will be sent to the user who joined. Type `%user%` if you want to mention the new member. Using it with no message will show the current DM greet message. You can use embed json from &lt;http://nadekobot.xyz/embedbuilder/&gt; instead of a regular text, if you want the message to be embedded..
/// </summary>
public static string greetdmmsg_desc {
get {
@ -3093,7 +3093,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets a new join announcement message which will be shown in the server&apos;s channel. Type %user% if you want to mention the new member. Using it with no message will show the current greet message. You can use embed json from &lt;http://nadekobot.xyz/embedbuilder/&gt; instead of a regular text, if you want the message to be embedded..
/// Looks up a localized string similar to Sets a new join announcement message which will be shown in the server&apos;s channel. Type `%user%` if you want to mention the new member. Using it with no message will show the current greet message. You can use embed json from &lt;http://nadekobot.xyz/embedbuilder/&gt; instead of a regular text, if you want the message to be embedded..
/// </summary>
public static string greetmsg_desc {
get {
@ -3156,7 +3156,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to `{0}h !!q` or `{0}h`.
/// Looks up a localized string similar to `{0}h {0}cmds` or `{0}h`.
/// </summary>
public static string h_usage {
get {
@ -3174,7 +3174,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets the music volume to 50%..
/// Looks up a localized string similar to Sets the music playback volume to 50%..
/// </summary>
public static string half_desc {
get {
@ -3282,7 +3282,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Heals someone. Revives those who fainted. Costs a NadekoFlower.
/// Looks up a localized string similar to Heals someone. Revives those who fainted. Costs a NadekoFlower. .
/// </summary>
public static string heal_desc {
get {
@ -3498,7 +3498,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Pulls the first image found using a search parameter. Use {0}rimg for different results..
/// Looks up a localized string similar to Pulls the first image found using a search parameter. Use `{0}rimg` for different results..
/// </summary>
public static string image_desc {
get {
@ -3687,7 +3687,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets this server&apos;s response language If bot&apos;s response strings have been translated to that language, bot will use that language in this server. Reset by using `default` as the locale name. Provide no arguments to see currently set language..
/// Looks up a localized string similar to Sets this server&apos;s response language. If bot&apos;s response strings have been translated to that language, bot will use that language in this server. Reset by using `default` as the locale name. Provide no arguments to see currently set language..
/// </summary>
public static string languageset_desc {
get {
@ -3768,7 +3768,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Leaves Cross server channel instance from this channel..
/// Looks up a localized string similar to Leaves a cross server channel instance from this channel..
/// </summary>
public static string lcsc_desc {
get {
@ -3795,7 +3795,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Displays bot currency leaderboard..
/// Looks up a localized string similar to Displays the bot&apos;s currency leaderboard..
/// </summary>
public static string leaderboard_desc {
get {
@ -3822,7 +3822,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Makes Nadeko leave the server. Either name or id required..
/// Looks up a localized string similar to Makes Nadeko leave the server. Either server name or server ID is required..
/// </summary>
public static string leave_desc {
get {
@ -4128,7 +4128,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to `{0}lw [war_number] or {0}lw`.
/// Looks up a localized string similar to `{0}lw [war_number]` or `{0}lw`.
/// </summary>
public static string listwar_usage {
get {
@ -4173,7 +4173,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Loads a saved playlist using it&apos;s ID. Use `{0}pls` to list all saved playlists and {0}save to save new ones..
/// Looks up a localized string similar to Loads a saved playlist using its ID. Use `{0}pls` to list all saved playlists and `{0}save` to save new ones..
/// </summary>
public static string load_desc {
get {
@ -4254,7 +4254,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles logging event. Disables it if it&apos;s active anywhere on the server. Enables if it&apos;s not active. Use `{0}logevents` to see a list of all events you can subscribe to..
/// Looks up a localized string similar to Toggles logging event. Disables it if it is active anywhere on the server. Enables if it isn&apos;t active. Use `{0}logevents` to see a list of all events you can subscribe to..
/// </summary>
public static string log_desc {
get {
@ -4308,7 +4308,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles whether the .logserver command ignores this channel. Useful if you have hidden admin channel and public log channel..
/// Looks up a localized string similar to Toggles whether the `.logserver` command ignores this channel. Useful if you have hidden admin channel and public log channel..
/// </summary>
public static string logignore_desc {
get {
@ -4460,6 +4460,60 @@ namespace NadekoBot.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to lucky7 l7.
/// </summary>
public static string lucky7_cmd {
get {
return ResourceManager.GetString("lucky7_cmd", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Bet currency on the game and start rolling 3 sided dice. At any point you can choose to [m]ove (roll again) or [s]tay (get the amount bet times the current multiplier)..
/// </summary>
public static string lucky7_desc {
get {
return ResourceManager.GetString("lucky7_desc", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to `{0}l7 10` or `{0}l7 move` or `{0}l7 s`.
/// </summary>
public static string lucky7_usage {
get {
return ResourceManager.GetString("lucky7_usage", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to lucky7test l7t.
/// </summary>
public static string lucky7test_cmd {
get {
return ResourceManager.GetString("lucky7test_cmd", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Tests the l7 command..
/// </summary>
public static string lucky7test_desc {
get {
return ResourceManager.GetString("lucky7test_desc", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to `{0}l7t 10000`.
/// </summary>
public static string lucky7test_usage {
get {
return ResourceManager.GetString("lucky7test_usage", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to magicitem mi.
/// </summary>
@ -4470,7 +4524,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Shows a random magicitem from &lt;https://1d4chan.org/wiki/List_of_/tg/%27s_magic_items&gt;.
/// Looks up a localized string similar to Shows a random magic item from &lt;https://1d4chan.org/wiki/List_of_/tg/%27s_magic_items&gt;.
/// </summary>
public static string magicitem_desc {
get {
@ -4524,7 +4578,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Shows basic info from myanimelist profile..
/// Looks up a localized string similar to Shows basic info from a MyAnimeList profile..
/// </summary>
public static string mal_desc {
get {
@ -4578,7 +4632,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets the music volume to 100%..
/// Looks up a localized string similar to Sets the music playback volume to 100%..
/// </summary>
public static string max_desc {
get {
@ -4713,7 +4767,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Mentions every person from the provided role or roles (separated by a &apos;,&apos;) on this server. Requires you to have mention everyone permission..
/// Looks up a localized string similar to Mentions every person from the provided role or roles (separated by a &apos;,&apos;) on this server. Requires you to have the mention everyone permission..
/// </summary>
public static string mentionrole_desc {
get {
@ -4848,7 +4902,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Moves permission from one position to another in Permissions list..
/// Looks up a localized string similar to Moves permission from one position to another in the Permissions list..
/// </summary>
public static string moveperm_desc {
get {
@ -4956,7 +5010,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Shows the song currently playing..
/// Looks up a localized string similar to Shows the song that the bot is currently playing..
/// </summary>
public static string nowplaying_desc {
get {
@ -5145,7 +5199,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets a role which can change permissions. Or supply no parameters to find out the current one. Default one is &apos;Nadeko&apos;..
/// Looks up a localized string similar to Sets a role which can change permissions. Supply no parameters to see the current one. Default is &apos;Nadeko&apos;..
/// </summary>
public static string permrole_desc {
get {
@ -5307,7 +5361,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Lists all playlists. Paginated. 20 per page. Default page is 0..
/// Looks up a localized string similar to Lists all playlists. Paginated, 20 per page. Default page is 0..
/// </summary>
public static string playlists_desc {
get {
@ -5469,7 +5523,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to `{0}prune` removes all nadeko&apos;s messages in the last 100 messages.`{0}prune X` removes last X messages from the channel (up to 100)`{0}prune @Someone` removes all Someone&apos;s messages in the last 100 messages.`{0}prune @Someone X` removes last X &apos;Someone&apos;s&apos; messages in the channel..
/// Looks up a localized string similar to `{0}prune` removes all Nadeko&apos;s messages in the last 100 messages. `{0}prune X` removes last `X` number of messages from the channel (up to 100). `{0}prune @Someone` removes all Someone&apos;s messages in the last 100 messages. `{0}prune @Someone X` removes last `X` number of &apos;Someone&apos;s&apos; messages in the channel..
/// </summary>
public static string prune_desc {
get {
@ -5523,7 +5577,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Queue a song using keywords or a link. Bot will join your voice channel.**You must be in a voice channel**..
/// Looks up a localized string similar to Queue a song using keywords or a link. Bot will join your voice channel. **You must be in a voice channel**..
/// </summary>
public static string queue_desc {
get {
@ -5793,7 +5847,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sends a message to you or a channel after certain amount of time. First argument is me/here/&apos;channelname&apos;. Second argument is time in a descending order (mo&gt;w&gt;d&gt;h&gt;m) example: 1w5d3h10m. Third argument is a (multiword)message..
/// Looks up a localized string similar to Sends a message to you or a channel after certain amount of time. First argument is `me`/`here`/&apos;channelname&apos;. Second argument is time in a descending order (mo&gt;w&gt;d&gt;h&gt;m) example: 1w5d3h10m. Third argument is a (multiword) message..
/// </summary>
public static string remind_desc {
get {
@ -5820,7 +5874,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets message for when the remind is triggered. Available placeholders are %user% - user who ran the command, %message% - Message specified in the remind, %target% - target channel of the remind..
/// Looks up a localized string similar to Sets message for when the remind is triggered. Available placeholders are `%user%` - user who ran the command, `%message%` - Message specified in the remind, `%target%` - target channel of the remind..
/// </summary>
public static string remindtemplate_desc {
get {
@ -5901,7 +5955,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Removes a permission from a given position in Permissions list..
/// Looks up a localized string similar to Removes a permission from a given position in the Permissions list..
/// </summary>
public static string removeperm_desc {
get {
@ -6009,7 +6063,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Renames a role. Roles you are renaming must be lower than bot&apos;s highest role..
/// Looks up a localized string similar to Renames a role. The role you are renaming must be lower than bot&apos;s highest role..
/// </summary>
public static string renamerole_desc {
get {
@ -6036,7 +6090,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Repeat a message every X minutes in the current channel. You can have up to 5 repeating messages on the server in total..
/// Looks up a localized string similar to Repeat a message every `X` minutes in the current channel. You can have up to 5 repeating messages on the server in total..
/// </summary>
public static string repeat_desc {
get {
@ -6198,7 +6252,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Resets BOT&apos;s permissions module on this server to the default value..
/// Looks up a localized string similar to Resets the bot&apos;s permissions module on this server to the default value..
/// </summary>
public static string resetpermissions_desc {
get {
@ -6252,7 +6306,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Returns a google reverse image search for someone&apos;s avatar..
/// Looks up a localized string similar to Returns a Google reverse image search for someone&apos;s avatar..
/// </summary>
public static string revav_desc {
get {
@ -6279,7 +6333,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Returns a google reverse image search for an image from a link..
/// Looks up a localized string similar to Returns a Google reverse image search for an image from a link..
/// </summary>
public static string revimg_desc {
get {
@ -6387,7 +6441,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to List roles on this server or a roles of a specific user if specified. Paginated. 20 roles per page..
/// Looks up a localized string similar to List roles on this server or a roles of a specific user if specified. Paginated, 20 roles per page..
/// </summary>
public static string roles_desc {
get {
@ -6414,7 +6468,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Rolls 0-100. If you supply a number [x] it rolls up to 30 normal dice. If you split 2 numbers with letter d (xdy) it will roll x dice from 1 to y. Y can be a letter &apos;F&apos; if you want to roll fate dice instead of dnd..
/// Looks up a localized string similar to Rolls 0-100. If you supply a number `X` it rolls up to 30 normal dice. If you split 2 numbers with letter `d` (`xdy`) it will roll `X` dice from 1 to `y`. `Y` can be a letter &apos;F&apos; if you want to roll fate dice instead of dnd..
/// </summary>
public static string roll_desc {
get {
@ -6441,7 +6495,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Rolls X normal dice (up to 30) unordered. If you split 2 numbers with letter d (xdy) it will roll x dice from 1 to y..
/// Looks up a localized string similar to Rolls `X` normal dice (up to 30) unordered. If you split 2 numbers with letter `d` (`xdy`) it will roll `X` dice from 1 to `y`..
/// </summary>
public static string rolluo_desc {
get {
@ -6522,7 +6576,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Play a game of rocket paperclip scissors with Nadeko..
/// Looks up a localized string similar to Play a game of Rocket-Paperclip-Scissors with Nadeko..
/// </summary>
public static string rps_desc {
get {
@ -6630,7 +6684,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Saves a playlist under a certain name. Name must be no longer than 20 characters and mustn&apos;t contain dashes..
/// Looks up a localized string similar to Saves a playlist under a certain name. Playlist name must be no longer than 20 characters and must not contain dashes..
/// </summary>
public static string save_desc {
get {
@ -6738,7 +6792,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sends a message to someone on a different server through the bot. Separate server and channel/user ids with `|` and prepend channel id with `c:` and user id with `u:`..
/// Looks up a localized string similar to Sends a message to someone on a different server through the bot. Separate server and channel/user ids with `|` and prefix the channel id with `c:` and the user id with `u:`..
/// </summary>
public static string send_desc {
get {
@ -6765,7 +6819,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Either [add]s or [rem]oves a server specified by a Name or ID from a blacklist..
/// Looks up a localized string similar to Either [add]s or [rem]oves a server specified by a Name or an ID from a blacklist..
/// </summary>
public static string serverblacklist_desc {
get {
@ -7548,7 +7602,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Queue a soundcloud playlist using a link..
/// Looks up a localized string similar to Queue a Soundcloud playlist using a link..
/// </summary>
public static string soundcloudpl_desc {
get {
@ -7575,7 +7629,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Queue a soundcloud song using keywords. Bot will join your voice channel.**You must be in a voice channel**..
/// Looks up a localized string similar to Queue a soundcloud song using keywords. Bot will join your voice channel. **You must be in a voice channel**..
/// </summary>
public static string soundcloudqueue_desc {
get {
@ -7629,7 +7683,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles automatic deleting of invites posted in the server. Does not affect Bot Owner..
/// Looks up a localized string similar to Toggles automatic deletion of invites posted in the server. Does not affect the Bot Owner..
/// </summary>
public static string srvrfilterinv_desc {
get {
@ -7656,7 +7710,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles automatic deleting of messages containing forbidden words on the server. Does not affect Bot Owner..
/// Looks up a localized string similar to Toggles automatic deletion of messages containing filtered words on the server. Does not affect the Bot Owner..
/// </summary>
public static string srvrfilterwords_desc {
get {
@ -8088,7 +8142,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Starts a game of trivia. You can add nohint to prevent hints.First player to get to 10 points wins by default. You can specify a different number. 30 seconds per question..
/// Looks up a localized string similar to Starts a game of trivia. You can add `nohint` to prevent hints. First player to get to 10 points wins by default. You can specify a different number. 30 seconds per question..
/// </summary>
public static string trivia_desc {
get {
@ -8439,7 +8493,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Either [add]s or [rem]oves a user specified by a mention or ID from a blacklist..
/// Looks up a localized string similar to Either [add]s or [rem]oves a user specified by a Mention or an ID from a blacklist..
/// </summary>
public static string userblacklist_desc {
get {
@ -8682,7 +8736,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Creates a text channel for each voice channel only users in that voice channel can see.If you are server owner, keep in mind you will see them all the time regardless..
/// Looks up a localized string similar to Creates a text channel for each voice channel only users in that voice channel can see. If you are server owner, keep in mind you will see them all the time regardless..
/// </summary>
public static string voiceplustext_desc {
get {
@ -8763,7 +8817,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets the music volume 0-100%.
/// Looks up a localized string similar to Sets the music playback volume (0-100%).
/// </summary>
public static string volume_desc {
get {

View File

@ -3150,4 +3150,22 @@
<data name="rategirl_usage" xml:space="preserve">
<value>`{0}rategirl @SomeGurl`</value>
</data>
</root>
<data name="lucky7test_cmd" xml:space="preserve">
<value>lucky7test l7t</value>
</data>
<data name="lucky7test_desc" xml:space="preserve">
<value>Tests the l7 command.</value>
</data>
<data name="lucky7test_usage" xml:space="preserve">
<value>`{0}l7t 10000`</value>
</data>
<data name="lucky7_cmd" xml:space="preserve">
<value>lucky7 l7</value>
</data>
<data name="lucky7_desc" xml:space="preserve">
<value>Bet currency on the game and start rolling 3 sided dice. At any point you can choose to [m]ove (roll again) or [s]tay (get the amount bet times the current multiplier).</value>
</data>
<data name="lucky7_usage" xml:space="preserve">
<value>`{0}l7 10` or `{0}l7 move` or `{0}l7 s`</value>
</data>
</root>