Fixed some minor things
This commit is contained in:
parent
62a24b55c2
commit
46a6bddb55
@ -5,7 +5,6 @@ using NadekoBot.Attributes;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
//todo owner only
|
|
||||||
namespace NadekoBot.Modules.Administration
|
namespace NadekoBot.Modules.Administration
|
||||||
{
|
{
|
||||||
public partial class Administration
|
public partial class Administration
|
||||||
|
@ -70,7 +70,7 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
arr[i] = rng.Next(1, n2 + 1);
|
arr[i] = rng.Next(1, n2 + 1);
|
||||||
}
|
}
|
||||||
var elemCnt = 0;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace NadekoBot.Modules.Games
|
namespace NadekoBot.Modules.Games
|
||||||
{
|
{
|
||||||
|
//todo make currency generation change and cooldown modifyable
|
||||||
|
//only by bot owner through commands
|
||||||
public partial class Games
|
public partial class Games
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -27,7 +27,7 @@ namespace NadekoBot.Modules.Searches
|
|||||||
}
|
}
|
||||||
[LocalizedCommand, LocalizedRemarks, LocalizedSummary, LocalizedAlias]
|
[LocalizedCommand, LocalizedRemarks, LocalizedSummary, LocalizedAlias]
|
||||||
[RequireContext(ContextType.Guild)]
|
[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;
|
var channel = (ITextChannel)umsg.Channel;
|
||||||
|
|
||||||
|
@ -2625,7 +2625,7 @@ namespace NadekoBot.Resources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
public static string gencurrency_desc {
|
public static string gencurrency_desc {
|
||||||
get {
|
get {
|
||||||
@ -2634,7 +2634,7 @@ namespace NadekoBot.Resources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to `>gc` or `>gc 60`.
|
/// Looks up a localized string similar to `>gc`.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string gencurrency_summary {
|
public static string gencurrency_summary {
|
||||||
get {
|
get {
|
||||||
|
@ -1588,10 +1588,10 @@
|
|||||||
<value>gencurrency gc</value>
|
<value>gencurrency gc</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gencurrency_desc" xml:space="preserve">
|
<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>
|
||||||
<data name="gencurrency_summary" xml:space="preserve">
|
<data name="gencurrency_summary" xml:space="preserve">
|
||||||
<value>`>gc` or `>gc 60`</value>
|
<value>`>gc`</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="leet_text" xml:space="preserve">
|
<data name="leet_text" xml:space="preserve">
|
||||||
<value>leet</value>
|
<value>leet</value>
|
||||||
|
Loading…
Reference in New Issue
Block a user