$lb is now paginated
This commit is contained in:
parent
dc283d1054
commit
ba19524245
@ -244,19 +244,26 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
}
|
}
|
||||||
|
|
||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
public async Task Leaderboard()
|
public async Task Leaderboard(int page = 1)
|
||||||
{
|
{
|
||||||
List<Currency> richest;
|
List<Currency> richest;
|
||||||
using (var uow = DbHandler.UnitOfWork())
|
using (var uow = DbHandler.UnitOfWork())
|
||||||
{
|
{
|
||||||
richest = uow.Currency.GetTopRichest(9).ToList();
|
richest = uow.Currency.GetTopRichest(9, 9 * (page - 1)).ToList();
|
||||||
}
|
}
|
||||||
if (!richest.Any())
|
|
||||||
return;
|
|
||||||
|
|
||||||
var embed = new EmbedBuilder()
|
var embed = new EmbedBuilder()
|
||||||
.WithOkColor()
|
.WithOkColor()
|
||||||
.WithTitle(NadekoBot.BotConfig.CurrencySign + " " + GetText("leaderboard"));
|
.WithTitle(NadekoBot.BotConfig.CurrencySign +
|
||||||
|
" " + GetText("leaderboard"))
|
||||||
|
.WithFooter(efb => efb.WithText(GetText("page", page)));
|
||||||
|
|
||||||
|
if (!richest.Any())
|
||||||
|
{
|
||||||
|
embed.WithDescription(GetText("no_users_found"));
|
||||||
|
await Context.Channel.EmbedAsync(embed).ConfigureAwait(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (var i = 0; i < richest.Count; i++)
|
for (var i = 0; i < richest.Count; i++)
|
||||||
{
|
{
|
||||||
|
18
src/NadekoBot/Resources/ResponseStrings.Designer.cs
generated
18
src/NadekoBot/Resources/ResponseStrings.Designer.cs
generated
@ -2404,6 +2404,15 @@ namespace NadekoBot.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to No users found..
|
||||||
|
/// </summary>
|
||||||
|
public static string gambling_no_users_found {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("gambling_no_users_found", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Nobody.
|
/// Looks up a localized string similar to Nobody.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -2422,6 +2431,15 @@ namespace NadekoBot.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to page {0}.
|
||||||
|
/// </summary>
|
||||||
|
public static string gambling_page {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("gambling_page", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Price.
|
/// Looks up a localized string similar to Price.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -136,7 +136,7 @@
|
|||||||
<value>{0} claimed a base #{1} in a war against {2}</value>
|
<value>{0} claimed a base #{1} in a war against {2}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="clashofclans_claimed_other" xml:space="preserve">
|
<data name="clashofclans_claimed_other" xml:space="preserve">
|
||||||
<value>@{0} You already claimed base #{1}. You can't claim a new one.</value>
|
<value>@{0} You already claimed base #{1}. You can't claim a new one.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="clashofclans_claim_expired" xml:space="preserve">
|
<data name="clashofclans_claim_expired" xml:space="preserve">
|
||||||
<value>Claim from @{0} in a war against {1} has expired.</value>
|
<value>Claim from @{0} in a war against {1} has expired.</value>
|
||||||
@ -245,10 +245,10 @@
|
|||||||
<comment>Kwoth used punch:type_icon: on Sanity:type_icon: for 50 damage.</comment>
|
<comment>Kwoth used punch:type_icon: on Sanity:type_icon: for 50 damage.</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_cant_attack_again" xml:space="preserve">
|
<data name="pokemon_cant_attack_again" xml:space="preserve">
|
||||||
<value>You can't attack again without retaliation!</value>
|
<value>You can't attack again without retaliation!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_cant_attack_yourself" xml:space="preserve">
|
<data name="pokemon_cant_attack_yourself" xml:space="preserve">
|
||||||
<value>You can't attack yourself.</value>
|
<value>You can't attack yourself.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_fainted" xml:space="preserve">
|
<data name="pokemon_fainted" xml:space="preserve">
|
||||||
<value>{0} has fainted!</value>
|
<value>{0} has fainted!</value>
|
||||||
@ -260,16 +260,16 @@
|
|||||||
<value>{0} has {1} HP remaining.</value>
|
<value>{0} has {1} HP remaining.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_invalid_move" xml:space="preserve">
|
<data name="pokemon_invalid_move" xml:space="preserve">
|
||||||
<value>You can't use {0}. Type `{1}ml` to see a list of moves you can use.</value>
|
<value>You can't use {0}. Type `{1}ml` to see a list of moves you can use.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_moves" xml:space="preserve">
|
<data name="pokemon_moves" xml:space="preserve">
|
||||||
<value>Movelist for {0} type</value>
|
<value>Movelist for {0} type</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_not_effective" xml:space="preserve">
|
<data name="pokemon_not_effective" xml:space="preserve">
|
||||||
<value>It's not effective.</value>
|
<value>It's not effective.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_no_currency" xml:space="preserve">
|
<data name="pokemon_no_currency" xml:space="preserve">
|
||||||
<value>You don't have enough {0}</value>
|
<value>You don't have enough {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_revive_other" xml:space="preserve">
|
<data name="pokemon_revive_other" xml:space="preserve">
|
||||||
<value>revived {0} with one {1}</value>
|
<value>revived {0} with one {1}</value>
|
||||||
@ -281,13 +281,13 @@
|
|||||||
<value>Your type has been changed to {0} for a {1}</value>
|
<value>Your type has been changed to {0} for a {1}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_somewhat_effective" xml:space="preserve">
|
<data name="pokemon_somewhat_effective" xml:space="preserve">
|
||||||
<value>It's somewhat effective.</value>
|
<value>It's somewhat effective.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_super_effective" xml:space="preserve">
|
<data name="pokemon_super_effective" xml:space="preserve">
|
||||||
<value>It's super effective!</value>
|
<value>It's super effective!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_too_many_moves" xml:space="preserve">
|
<data name="pokemon_too_many_moves" xml:space="preserve">
|
||||||
<value>You used too many moves in a row, so you can't move!</value>
|
<value>You used too many moves in a row, so you can't move!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pokemon_type_of_user" xml:space="preserve">
|
<data name="pokemon_type_of_user" xml:space="preserve">
|
||||||
<value>Type of {0} is {1}</value>
|
<value>Type of {0} is {1}</value>
|
||||||
@ -448,7 +448,7 @@ Reason: {1}</value>
|
|||||||
<value>Greet announcements enabled on this channel.</value>
|
<value>Greet announcements enabled on this channel.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_hierarchy" xml:space="preserve">
|
<data name="administration_hierarchy" xml:space="preserve">
|
||||||
<value>You can't use this command on users with a role higher or equal to yours in the role hierarchy.</value>
|
<value>You can't use this command on users with a role higher or equal to yours in the role hierarchy.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_images_loaded" xml:space="preserve">
|
<data name="administration_images_loaded" xml:space="preserve">
|
||||||
<value>Images loaded after {0} seconds!</value>
|
<value>Images loaded after {0} seconds!</value>
|
||||||
@ -473,19 +473,19 @@ Reason: {1}</value>
|
|||||||
<value>List of languages</value>
|
<value>List of languages</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_lang_set" xml:space="preserve">
|
<data name="administration_lang_set" xml:space="preserve">
|
||||||
<value>Your server's locale is now {0} - {1}</value>
|
<value>Your server's locale is now {0} - {1}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_lang_set_bot" xml:space="preserve">
|
<data name="administration_lang_set_bot" xml:space="preserve">
|
||||||
<value>Bot's default locale is now {0} - {1}</value>
|
<value>Bot's default locale is now {0} - {1}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_lang_set_bot_show" xml:space="preserve">
|
<data name="administration_lang_set_bot_show" xml:space="preserve">
|
||||||
<value>Bot's language is set to {0} - {1}</value>
|
<value>Bot's language is set to {0} - {1}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_lang_set_fail" xml:space="preserve">
|
<data name="administration_lang_set_fail" xml:space="preserve">
|
||||||
<value>Failed setting locale. Revisit this command's help.</value>
|
<value>Failed setting locale. Revisit this command's help.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_lang_set_show" xml:space="preserve">
|
<data name="administration_lang_set_show" xml:space="preserve">
|
||||||
<value>This server's language is set to {0} - {1}</value>
|
<value>This server's language is set to {0} - {1}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_left" xml:space="preserve">
|
<data name="administration_left" xml:space="preserve">
|
||||||
<value>{0} has left {1}</value>
|
<value>{0} has left {1}</value>
|
||||||
@ -538,10 +538,10 @@ Reason: {1}</value>
|
|||||||
</data>
|
</data>
|
||||||
<data name="administration_muted_sn" xml:space="preserve">
|
<data name="administration_muted_sn" xml:space="preserve">
|
||||||
<value>Muted</value>
|
<value>Muted</value>
|
||||||
<comment>singular "User muted."</comment>
|
<comment>singular "User muted."</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_mute_error" xml:space="preserve">
|
<data name="administration_mute_error" xml:space="preserve">
|
||||||
<value>I don't have the permission necessary for that most likely.</value>
|
<value>I don't have the permission necessary for that most likely.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_mute_role_set" xml:space="preserve">
|
<data name="administration_mute_role_set" xml:space="preserve">
|
||||||
<value>New mute role set.</value>
|
<value>New mute role set.</value>
|
||||||
@ -562,7 +562,7 @@ Reason: {1}</value>
|
|||||||
<value>Nickname changed</value>
|
<value>Nickname changed</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_no_server" xml:space="preserve">
|
<data name="administration_no_server" xml:space="preserve">
|
||||||
<value>Can't find that server</value>
|
<value>Can't find that server</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_no_shard_id" xml:space="preserve">
|
<data name="administration_no_shard_id" xml:space="preserve">
|
||||||
<value>No shard with that ID found.</value>
|
<value>No shard with that ID found.</value>
|
||||||
@ -577,7 +577,7 @@ Reason: {1}</value>
|
|||||||
<value>Old topic</value>
|
<value>Old topic</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_perms" xml:space="preserve">
|
<data name="administration_perms" xml:space="preserve">
|
||||||
<value>Error. Most likely I don't have sufficient permissions.</value>
|
<value>Error. Most likely I don't have sufficient permissions.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_perms_reset" xml:space="preserve">
|
<data name="administration_perms_reset" xml:space="preserve">
|
||||||
<value>Permissions for this server are reset.</value>
|
<value>Permissions for this server are reset.</value>
|
||||||
@ -637,7 +637,7 @@ Reason: {1}</value>
|
|||||||
<value>Failed to rename role. I have insufficient permissions.</value>
|
<value>Failed to rename role. I have insufficient permissions.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_renrole_perms" xml:space="preserve">
|
<data name="administration_renrole_perms" xml:space="preserve">
|
||||||
<value>You can't edit roles higher than your highest role.</value>
|
<value>You can't edit roles higher than your highest role.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_reprm" xml:space="preserve">
|
<data name="administration_reprm" xml:space="preserve">
|
||||||
<value>Removed the playing message: {0}</value>
|
<value>Removed the playing message: {0}</value>
|
||||||
@ -683,13 +683,13 @@ Reason: {1}</value>
|
|||||||
<value>That role is not self-assignable.</value>
|
<value>That role is not self-assignable.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_self_assign_not_have" xml:space="preserve">
|
<data name="administration_self_assign_not_have" xml:space="preserve">
|
||||||
<value>You don't have {0} role.</value>
|
<value>You don't have {0} role.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_self_assign_no_excl" xml:space="preserve">
|
<data name="administration_self_assign_no_excl" xml:space="preserve">
|
||||||
<value>Self assigned roles are now not exclusive!</value>
|
<value>Self assigned roles are now not exclusive!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_self_assign_perms" xml:space="preserve">
|
<data name="administration_self_assign_perms" xml:space="preserve">
|
||||||
<value>I am unable to add that role to you. `I can't add roles to owners or other roles higher than my role in the role hierarchy.`</value>
|
<value>I am unable to add that role to you. `I can't add roles to owners or other roles higher than my role in the role hierarchy.`</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_self_assign_rem" xml:space="preserve">
|
<data name="administration_self_assign_rem" xml:space="preserve">
|
||||||
<value>{0} has been removed from the list of self-assignable roles.</value>
|
<value>{0} has been removed from the list of self-assignable roles.</value>
|
||||||
@ -731,7 +731,7 @@ Reason: {1}</value>
|
|||||||
<value>Shutting down</value>
|
<value>Shutting down</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_slowmode_desc" xml:space="preserve">
|
<data name="administration_slowmode_desc" xml:space="preserve">
|
||||||
<value>Users can't send more than {0} messages every {1} seconds.</value>
|
<value>Users can't send more than {0} messages every {1} seconds.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_slowmode_disabled" xml:space="preserve">
|
<data name="administration_slowmode_disabled" xml:space="preserve">
|
||||||
<value>Slow mode disabled.</value>
|
<value>Slow mode disabled.</value>
|
||||||
@ -794,10 +794,10 @@ Reason: {1}</value>
|
|||||||
<value>{0} has been **muted** from text and voice chat.</value>
|
<value>{0} has been **muted** from text and voice chat.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_user_role_add" xml:space="preserve">
|
<data name="administration_user_role_add" xml:space="preserve">
|
||||||
<value>User's role added</value>
|
<value>User's role added</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_user_role_rem" xml:space="preserve">
|
<data name="administration_user_role_rem" xml:space="preserve">
|
||||||
<value>User's role removed</value>
|
<value>User's role removed</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_user_status_change" xml:space="preserve">
|
<data name="administration_user_status_change" xml:space="preserve">
|
||||||
<value>{0} is now {1}</value>
|
<value>{0} is now {1}</value>
|
||||||
@ -833,7 +833,7 @@ Reason: {1}</value>
|
|||||||
<value>Enabled voice + text feature.</value>
|
<value>Enabled voice + text feature.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_vt_exit" xml:space="preserve">
|
<data name="administration_vt_exit" xml:space="preserve">
|
||||||
<value>I don't have **manage roles** and/or **manage channels** permission, so I cannot run `voice+text` on {0} server.</value>
|
<value>I don't have **manage roles** and/or **manage channels** permission, so I cannot run `voice+text` on {0} server.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_vt_no_admin" xml:space="preserve">
|
<data name="administration_vt_no_admin" xml:space="preserve">
|
||||||
<value>You are enabling/disabling this feature and **I do not have ADMINISTRATOR permissions**. This may cause some issues, and you will have to clean up text channels yourself afterwards.</value>
|
<value>You are enabling/disabling this feature and **I do not have ADMINISTRATOR permissions**. This may cause some issues, and you will have to clean up text channels yourself afterwards.</value>
|
||||||
@ -861,7 +861,7 @@ Reason: {1}</value>
|
|||||||
<value>Migration done!</value>
|
<value>Migration done!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="adminsitration_migration_error" xml:space="preserve">
|
<data name="adminsitration_migration_error" xml:space="preserve">
|
||||||
<value>Error while migrating, check bot's console for more information.</value>
|
<value>Error while migrating, check bot's console for more information.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="administration_presence_updates" xml:space="preserve">
|
<data name="administration_presence_updates" xml:space="preserve">
|
||||||
<value>Presence updates</value>
|
<value>Presence updates</value>
|
||||||
@ -918,13 +918,13 @@ Reason: {1}</value>
|
|||||||
<value>Awarded {0} to {1} users from {2} role.</value>
|
<value>Awarded {0} to {1} users from {2} role.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_max_bet_limit" xml:space="preserve">
|
<data name="gambling_max_bet_limit" xml:space="preserve">
|
||||||
<value>You can't bet more than {0}</value>
|
<value>You can't bet more than {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_min_bet_limit" xml:space="preserve">
|
<data name="gambling_min_bet_limit" xml:space="preserve">
|
||||||
<value>You can't bet less than {0}</value>
|
<value>You can't bet less than {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_not_enough" xml:space="preserve">
|
<data name="gambling_not_enough" xml:space="preserve">
|
||||||
<value>You don't have enough {0}</value>
|
<value>You don't have enough {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_no_more_cards" xml:space="preserve">
|
<data name="gambling_no_more_cards" xml:space="preserve">
|
||||||
<value>No more cards in the deck.</value>
|
<value>No more cards in the deck.</value>
|
||||||
@ -955,7 +955,7 @@ Reason: {1}</value>
|
|||||||
</data>
|
</data>
|
||||||
<data name="gambling_sneakygamestatus_desc" xml:space="preserve">
|
<data name="gambling_sneakygamestatus_desc" xml:space="preserve">
|
||||||
<value>Users must type a secret code to get {0}.
|
<value>Users must type a secret code to get {0}.
|
||||||
Lasts {1} seconds. Don't tell anyone. Shhh.</value>
|
Lasts {1} seconds. Don't tell anyone. Shhh.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_sneakygamestatus_end" xml:space="preserve">
|
<data name="gambling_sneakygamestatus_end" xml:space="preserve">
|
||||||
<value>SneakyGame event ended. {0} users received the reward.</value>
|
<value>SneakyGame event ended. {0} users received the reward.</value>
|
||||||
@ -970,7 +970,7 @@ Lasts {1} seconds. Don't tell anyone. Shhh.</value>
|
|||||||
<value>successfully took {0} from {1}</value>
|
<value>successfully took {0} from {1}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_take_fail" xml:space="preserve">
|
<data name="gambling_take_fail" xml:space="preserve">
|
||||||
<value>was unable to take {0} from{1} because the user doesn't have that much {2}!</value>
|
<value>was unable to take {0} from{1} because the user doesn't have that much {2}!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="help_back_to_toc" xml:space="preserve">
|
<data name="help_back_to_toc" xml:space="preserve">
|
||||||
<value>Back to ToC</value>
|
<value>Back to ToC</value>
|
||||||
@ -994,7 +994,7 @@ Lasts {1} seconds. Don't tell anyone. Shhh.</value>
|
|||||||
<value>Type `{0}h CommandName` to see the help for that specified command. e.g. `{0}h >8ball`</value>
|
<value>Type `{0}h CommandName` to see the help for that specified command. e.g. `{0}h >8ball`</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="help_command_not_found" xml:space="preserve">
|
<data name="help_command_not_found" xml:space="preserve">
|
||||||
<value>I can't find that command. Please verify that the command exists before trying again.</value>
|
<value>I can't find that command. Please verify that the command exists before trying again.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="help_desc" xml:space="preserve">
|
<data name="help_desc" xml:space="preserve">
|
||||||
<value>Description</value>
|
<value>Description</value>
|
||||||
@ -1003,7 +1003,7 @@ Lasts {1} seconds. Don't tell anyone. Shhh.</value>
|
|||||||
<value>You can support the NadekoBot project on
|
<value>You can support the NadekoBot project on
|
||||||
Patreon <{0}> or
|
Patreon <{0}> or
|
||||||
Paypal <{1}>
|
Paypal <{1}>
|
||||||
Don't forget to leave your discord name or id in the message.
|
Don't forget to leave your discord name or id in the message.
|
||||||
|
|
||||||
**Thank you** ♥️</value>
|
**Thank you** ♥️</value>
|
||||||
</data>
|
</data>
|
||||||
@ -1111,7 +1111,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Top Waifus</value>
|
<value>Top Waifus</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_affinity_already" xml:space="preserve">
|
<data name="gambling_waifu_affinity_already" xml:space="preserve">
|
||||||
<value>your affinity is already set to that waifu or you're trying to remove your affinity while not having one.</value>
|
<value>your affinity is already set to that waifu or you're trying to remove your affinity while not having one.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_affinity_changed" xml:space="preserve">
|
<data name="gambling_waifu_affinity_changed" xml:space="preserve">
|
||||||
<value>changed their affinity from {0} to {1}.
|
<value>changed their affinity from {0} to {1}.
|
||||||
@ -1126,7 +1126,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Your affinity is reset. You no longer have a person you like.</value>
|
<value>Your affinity is reset. You no longer have a person you like.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_affinity_set" xml:space="preserve">
|
<data name="gambling_waifu_affinity_set" xml:space="preserve">
|
||||||
<value>wants to be {0}'s waifu. Aww <3</value>
|
<value>wants to be {0}'s waifu. Aww <3</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_claimed" xml:space="preserve">
|
<data name="gambling_waifu_claimed" xml:space="preserve">
|
||||||
<value>claimed {0} as their waifu for {1}!</value>
|
<value>claimed {0} as their waifu for {1}!</value>
|
||||||
@ -1136,11 +1136,11 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
{0} received {1} as a compensation.</value>
|
{0} received {1} as a compensation.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_egomaniac" xml:space="preserve">
|
<data name="gambling_waifu_egomaniac" xml:space="preserve">
|
||||||
<value>you can't set affinity to yourself, you egomaniac.</value>
|
<value>you can't set affinity to yourself, you egomaniac.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_fulfilled" xml:space="preserve">
|
<data name="gambling_waifu_fulfilled" xml:space="preserve">
|
||||||
<value>🎉 Their love is fulfilled! 🎉
|
<value>🎉 Their love is fulfilled! 🎉
|
||||||
{0}'s new value is {1}!</value>
|
{0}'s new value is {1}!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_isnt_cheap" xml:space="preserve">
|
<data name="gambling_waifu_isnt_cheap" xml:space="preserve">
|
||||||
<value>No waifu is that cheap. You must pay at least {0} to get a waifu, even if their actual value is lower.</value>
|
<value>No waifu is that cheap. You must pay at least {0} to get a waifu, even if their actual value is lower.</value>
|
||||||
@ -1152,7 +1152,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>That waifu is not yours.</value>
|
<value>That waifu is not yours.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_not_yourself" xml:space="preserve">
|
<data name="gambling_waifu_not_yourself" xml:space="preserve">
|
||||||
<value>You can't claim yourself.</value>
|
<value>You can't claim yourself.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_recent_divorce" xml:space="preserve">
|
<data name="gambling_waifu_recent_divorce" xml:space="preserve">
|
||||||
<value>You divorced recently. You must wait {0} hours and {1} minutes to divorce again.</value>
|
<value>You divorced recently. You must wait {0} hours and {1} minutes to divorce again.</value>
|
||||||
@ -1161,7 +1161,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Nobody</value>
|
<value>Nobody</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_waifu_divorced_notlike" xml:space="preserve">
|
<data name="gambling_waifu_divorced_notlike" xml:space="preserve">
|
||||||
<value>You have divorced a waifu who doesn't like you. You received {0} back.</value>
|
<value>You have divorced a waifu who doesn't like you. You received {0} back.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_8ball" xml:space="preserve">
|
<data name="games_8ball" xml:space="preserve">
|
||||||
<value>8ball</value>
|
<value>8ball</value>
|
||||||
@ -1206,7 +1206,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Question</value>
|
<value>Question</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_rps_draw" xml:space="preserve">
|
<data name="games_rps_draw" xml:space="preserve">
|
||||||
<value>It's a draw! Both picked {0}</value>
|
<value>It's a draw! Both picked {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_rps_win" xml:space="preserve">
|
<data name="games_rps_win" xml:space="preserve">
|
||||||
<value>{0} won! {1} beats {2}</value>
|
<value>{0} won! {1} beats {2}</value>
|
||||||
@ -1258,13 +1258,13 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Starting hangman errored.</value>
|
<value>Starting hangman errored.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_hangman_types" xml:space="preserve">
|
<data name="games_hangman_types" xml:space="preserve">
|
||||||
<value>List of "{0}hangman" term types:</value>
|
<value>List of "{0}hangman" term types:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_leaderboard" xml:space="preserve">
|
<data name="games_leaderboard" xml:space="preserve">
|
||||||
<value>Leaderboard</value>
|
<value>Leaderboard</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_not_enough" xml:space="preserve">
|
<data name="games_not_enough" xml:space="preserve">
|
||||||
<value>You don't have enough {0}</value>
|
<value>You don't have enough {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_no_results" xml:space="preserve">
|
<data name="games_no_results" xml:space="preserve">
|
||||||
<value>No results</value>
|
<value>No results</value>
|
||||||
@ -1296,13 +1296,13 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Stopping after this question.</value>
|
<value>Stopping after this question.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_trivia_times_up" xml:space="preserve">
|
<data name="games_trivia_times_up" xml:space="preserve">
|
||||||
<value>Time's up! The correct answer was {0}</value>
|
<value>Time's up! The correct answer was {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_trivia_win" xml:space="preserve">
|
<data name="games_trivia_win" xml:space="preserve">
|
||||||
<value>{0} guessed it and WON the game! The answer was: {1}</value>
|
<value>{0} guessed it and WON the game! The answer was: {1}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_ttt_against_yourself" xml:space="preserve">
|
<data name="games_ttt_against_yourself" xml:space="preserve">
|
||||||
<value>You can't play against yourself.</value>
|
<value>You can't play against yourself.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_ttt_already_running" xml:space="preserve">
|
<data name="games_ttt_already_running" xml:space="preserve">
|
||||||
<value>TicTacToe Game is already running in this channel.</value>
|
<value>TicTacToe Game is already running in this channel.</value>
|
||||||
@ -1326,7 +1326,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Time expired!</value>
|
<value>Time expired!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_ttt_users_move" xml:space="preserve">
|
<data name="games_ttt_users_move" xml:space="preserve">
|
||||||
<value>{0}'s move</value>
|
<value>{0}'s move</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_vs" xml:space="preserve">
|
<data name="games_vs" xml:space="preserve">
|
||||||
<value>{0} vs {1}</value>
|
<value>{0} vs {1}</value>
|
||||||
@ -1413,10 +1413,10 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Playlist deleted.</value>
|
<value>Playlist deleted.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="music_playlist_delete_fail" xml:space="preserve">
|
<data name="music_playlist_delete_fail" xml:space="preserve">
|
||||||
<value>Failed to delete that playlist. It either doesn't exist, or you are not its author.</value>
|
<value>Failed to delete that playlist. It either doesn't exist, or you are not its author.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="music_playlist_id_not_found" xml:space="preserve">
|
<data name="music_playlist_id_not_found" xml:space="preserve">
|
||||||
<value>Playlist with that ID doesn't exist.</value>
|
<value>Playlist with that ID doesn't exist.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="music_playlist_queue_complete" xml:space="preserve">
|
<data name="music_playlist_queue_complete" xml:space="preserve">
|
||||||
<value>Playlist queue complete.</value>
|
<value>Playlist queue complete.</value>
|
||||||
@ -1441,7 +1441,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
</data>
|
</data>
|
||||||
<data name="music_removed_song" xml:space="preserve">
|
<data name="music_removed_song" xml:space="preserve">
|
||||||
<value>Removed song</value>
|
<value>Removed song</value>
|
||||||
<comment>context: "removed song #5"</comment>
|
<comment>context: "removed song #5"</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="music_repeating_cur_song" xml:space="preserve">
|
<data name="music_repeating_cur_song" xml:space="preserve">
|
||||||
<value>Repeating current song</value>
|
<value>Repeating current song</value>
|
||||||
@ -1570,7 +1570,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Moved permission {0} from #{1} to #{2}</value>
|
<value>Moved permission {0} from #{1} to #{2}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="permissions_not_found" xml:space="preserve">
|
<data name="permissions_not_found" xml:space="preserve">
|
||||||
<value>Can't find permission at index #{0}</value>
|
<value>Can't find permission at index #{0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="permissions_no_costs" xml:space="preserve">
|
<data name="permissions_no_costs" xml:space="preserve">
|
||||||
<value>No costs set.</value>
|
<value>No costs set.</value>
|
||||||
@ -1669,7 +1669,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Bad input format, or something went wrong.</value>
|
<value>Bad input format, or something went wrong.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="searches_card_not_found" xml:space="preserve">
|
<data name="searches_card_not_found" xml:space="preserve">
|
||||||
<value>Couldn't find that card.</value>
|
<value>Couldn't find that card.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="searches_catfact" xml:space="preserve">
|
<data name="searches_catfact" xml:space="preserve">
|
||||||
<value>fact</value>
|
<value>fact</value>
|
||||||
@ -1760,7 +1760,7 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
</data>
|
</data>
|
||||||
<data name="searches_list_of_place_tags" xml:space="preserve">
|
<data name="searches_list_of_place_tags" xml:space="preserve">
|
||||||
<value>List of {0}place tags</value>
|
<value>List of {0}place tags</value>
|
||||||
<comment>Don't translate {0}place</comment>
|
<comment>Don't translate {0}place</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="searches_location" xml:space="preserve">
|
<data name="searches_location" xml:space="preserve">
|
||||||
<value>Location</value>
|
<value>Location</value>
|
||||||
@ -1769,10 +1769,10 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>Magic Items not loaded.</value>
|
<value>Magic Items not loaded.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="searches_mal_profile" xml:space="preserve">
|
<data name="searches_mal_profile" xml:space="preserve">
|
||||||
<value>{0}'s MAL profile</value>
|
<value>{0}'s MAL profile</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="searches_mashape_api_missing" xml:space="preserve">
|
<data name="searches_mashape_api_missing" xml:space="preserve">
|
||||||
<value>Bot owner didn't specify MashapeApiKey. You can't use this functionality.</value>
|
<value>Bot owner didn't specify MashapeApiKey. You can't use this functionality.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="searches_min_max" xml:space="preserve">
|
<data name="searches_min_max" xml:space="preserve">
|
||||||
<value>Min/Max</value>
|
<value>Min/Max</value>
|
||||||
@ -1868,10 +1868,10 @@ Don't forget to leave your discord name or id in the message.
|
|||||||
<value>No such stream.</value>
|
<value>No such stream.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="searches_stream_not_exist" xml:space="preserve">
|
<data name="searches_stream_not_exist" xml:space="preserve">
|
||||||
<value>Stream probably doesn't exist.</value>
|
<value>Stream probably doesn't exist.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="searches_stream_removed" xml:space="preserve">
|
<data name="searches_stream_removed" xml:space="preserve">
|
||||||
<value>Removed {0}'s stream ({1}) from notifications.</value>
|
<value>Removed {0}'s stream ({1}) from notifications.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="searches_stream_tracked" xml:space="preserve">
|
<data name="searches_stream_tracked" xml:space="preserve">
|
||||||
<value>I will notify this channel when status changes.</value>
|
<value>I will notify this channel when status changes.</value>
|
||||||
@ -2136,7 +2136,7 @@ Owner ID: {2}</value>
|
|||||||
<value>No colors are in the correct format. Use `#00ff00` for example.</value>
|
<value>No colors are in the correct format. Use `#00ff00` for example.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="utility_rrc_start" xml:space="preserve">
|
<data name="utility_rrc_start" xml:space="preserve">
|
||||||
<value>Started rotating {0} role's color.</value>
|
<value>Started rotating {0} role's color.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="utility_rrc_stop" xml:space="preserve">
|
<data name="utility_rrc_stop" xml:space="preserve">
|
||||||
<value>Stopped rotating colors for the {0} role</value>
|
<value>Stopped rotating colors for the {0} role</value>
|
||||||
@ -2185,7 +2185,7 @@ Owner ID: {2}</value>
|
|||||||
<value>Voice channels</value>
|
<value>Voice channels</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gambling_animal_race_already_in" xml:space="preserve">
|
<data name="gambling_animal_race_already_in" xml:space="preserve">
|
||||||
<value>You've already joined this race!</value>
|
<value>You've already joined this race!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="games_current_poll_results" xml:space="preserve">
|
<data name="games_current_poll_results" xml:space="preserve">
|
||||||
<value>Current poll results</value>
|
<value>Current poll results</value>
|
||||||
@ -2218,5 +2218,7 @@ Owner ID: {2}</value>
|
|||||||
<data name="games_x_votes_cast" xml:space="preserve">
|
<data name="games_x_votes_cast" xml:space="preserve">
|
||||||
<value>{0} total votes cast.</value>
|
<value>{0} total votes cast.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="gambling_page" xml:space="preserve">
|
||||||
|
<value>Page #{0}</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
@ -2224,4 +2224,10 @@ Owner ID: {2}</value>
|
|||||||
<data name="games_pick_sn" xml:space="preserve">
|
<data name="games_pick_sn" xml:space="preserve">
|
||||||
<value>Pick it up by typing `{0}pick`</value>
|
<value>Pick it up by typing `{0}pick`</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="gambling_no_users_found" xml:space="preserve">
|
||||||
|
<value>No users found.</value>
|
||||||
|
</data>
|
||||||
|
<data name="gambling_page" xml:space="preserve">
|
||||||
|
<value>page {0}</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
@ -8,6 +8,6 @@ namespace NadekoBot.Services.Database.Repositories
|
|||||||
Currency GetOrCreate(ulong userId);
|
Currency GetOrCreate(ulong userId);
|
||||||
long GetUserCurrency(ulong userId);
|
long GetUserCurrency(ulong userId);
|
||||||
bool TryUpdateState(ulong userId, long change);
|
bool TryUpdateState(ulong userId, long change);
|
||||||
IEnumerable<Currency> GetTopRichest(int count);
|
IEnumerable<Currency> GetTopRichest(int count, int skip);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ namespace NadekoBot.Services.Database.Repositories.Impl
|
|||||||
return cur;
|
return cur;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<Currency> GetTopRichest(int count) =>
|
public IEnumerable<Currency> GetTopRichest(int count, int skip = 0) =>
|
||||||
_set.OrderByDescending(c => c.Amount).Take(count).ToList();
|
_set.OrderByDescending(c => c.Amount).Skip(skip).Take(count).ToList();
|
||||||
|
|
||||||
public long GetUserCurrency(ulong userId) =>
|
public long GetUserCurrency(ulong userId) =>
|
||||||
GetOrCreate(userId).Amount;
|
GetOrCreate(userId).Amount;
|
||||||
|
@ -93,9 +93,9 @@ namespace NadekoBot.Extensions
|
|||||||
private static EmbedBuilder AddPaginatedFooter(this EmbedBuilder embed, int curPage, int? lastPage)
|
private static EmbedBuilder AddPaginatedFooter(this EmbedBuilder embed, int curPage, int? lastPage)
|
||||||
{
|
{
|
||||||
if (lastPage != null)
|
if (lastPage != null)
|
||||||
return embed.WithFooter(efb => efb.WithText($"page {curPage} / {lastPage}"));
|
return embed.WithFooter(efb => efb.WithText($"{curPage} / {lastPage}"));
|
||||||
else
|
else
|
||||||
return embed.WithFooter(efb => efb.WithText($"page {curPage}"));
|
return embed.WithFooter(efb => efb.WithText(curPage.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ReactionEventWrapper OnReaction(this IUserMessage msg, Action<SocketReaction> reactionAdded, Action<SocketReaction> reactionRemoved = null)
|
public static ReactionEventWrapper OnReaction(this IUserMessage msg, Action<SocketReaction> reactionAdded, Action<SocketReaction> reactionRemoved = null)
|
||||||
|
Loading…
Reference in New Issue
Block a user