Fixed some minor things

This commit is contained in:
Kwoth 2016-09-30 04:45:23 +02:00
parent 62a24b55c2
commit 46a6bddb55
6 changed files with 8 additions and 7 deletions

View File

@ -5,7 +5,6 @@ using NadekoBot.Attributes;
using System.Linq;
using System.Threading.Tasks;
//todo owner only
namespace NadekoBot.Modules.Administration
{
public partial class Administration

View File

@ -70,7 +70,7 @@ namespace NadekoBot.Modules.Gambling
arr[i] = rng.Next(1, n2 + 1);
}
var elemCnt = 0;
await channel.SendMessageAsync($"`{umsg.Author.Mention} rolled {n1} {(n1 == 1 ? "die" : "dice")} 1-{n2}.`\n`Result:` " + string.Join(", ", (ordered ? arr.OrderBy(x => x).AsEnumerable() : arr).Select(x => elemCnt++ % 2 == 0 ? $"**{x}**" : x.ToString()))).ConfigureAwait(false);
await channel.SendMessageAsync($"{umsg.Author.Mention} rolled {n1} {(n1 == 1 ? "die" : "dice")} 1-{n2}.\n`Result:` " + string.Join(", ", (ordered ? arr.OrderBy(x => x).AsEnumerable() : arr).Select(x => elemCnt++ % 2 == 0 ? $"**{x}**" : x.ToString()))).ConfigureAwait(false);
}
}
}

View File

@ -16,6 +16,8 @@ using System.Threading.Tasks;
namespace NadekoBot.Modules.Games
{
//todo make currency generation change and cooldown modifyable
//only by bot owner through commands
public partial class Games
{
/// <summary>

View File

@ -27,7 +27,7 @@ namespace NadekoBot.Modules.Searches
}
[LocalizedCommand, LocalizedRemarks, LocalizedSummary, LocalizedAlias]
[RequireContext(ContextType.Guild)]
public async Task Osu(IUserMessage umsg, string usr, string mode)
public async Task Osu(IUserMessage umsg, string usr, [Remainder] string mode = null)
{
var channel = (ITextChannel)umsg.Channel;

View File

@ -2625,7 +2625,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Toggles currency generation on this channel. Every posted message will have 2% chance to spawn a NadekoFlower. Optional parameter cooldown time in minutes, 5 minutes by default. Requires Manage Messages permission..
/// Looks up a localized string similar to Toggles currency generation on this channel. Every posted message will have 2% chance to spawn a NadekoFlower. Requires Manage Messages permission..
/// </summary>
public static string gencurrency_desc {
get {
@ -2634,7 +2634,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to `&gt;gc` or `&gt;gc 60`.
/// Looks up a localized string similar to `&gt;gc`.
/// </summary>
public static string gencurrency_summary {
get {

View File

@ -1588,10 +1588,10 @@
<value>gencurrency gc</value>
</data>
<data name="gencurrency_desc" xml:space="preserve">
<value>Toggles currency generation on this channel. Every posted message will have 2% chance to spawn a NadekoFlower. Optional parameter cooldown time in minutes, 5 minutes by default. Requires Manage Messages permission.</value>
<value>Toggles currency generation on this channel. Every posted message will have 2% chance to spawn a NadekoFlower. Requires Manage Messages permission.</value>
</data>
<data name="gencurrency_summary" xml:space="preserve">
<value>`&gt;gc` or `&gt;gc 60`</value>
<value>`&gt;gc`</value>
</data>
<data name="leet_text" xml:space="preserve">
<value>leet</value>