Blacklisting done

This commit is contained in:
Kwoth
2016-10-03 04:19:14 +02:00
parent 4459c19e70
commit 8f2b48c291
10 changed files with 102 additions and 86 deletions

View File

@@ -197,13 +197,12 @@ namespace NadekoBot.Modules.Gambling
await channel.SendMessageAsync(
richest.Aggregate(new StringBuilder(
$@"```xl
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓
┃ Id ┃ $$$ ┃
"),
(cur, cs) => cur.AppendLine(
$@"┣━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━┫
┃{(channel.Guild.GetUser(cs.UserId)?.Username.TrimTo(18, true) ?? cs.UserId.ToString()),-20} ┃ {cs,5} ┃")
).ToString() + "┗━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━┛```").ConfigureAwait(false);
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━
┃ Id ┃ $$$
"),
(cur, cs) => cur.AppendLine($@"┣━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃{(channel.Guild.GetUser(cs.UserId)?.Username.TrimTo(18, true) ?? cs.UserId.ToString()),-20} ┃ {cs.Amount,6} ┃")
).ToString() + "┗━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━┛```").ConfigureAwait(false);
}
}
}

View File

@@ -13,8 +13,8 @@ namespace NadekoBot.Modules.Games.Trivia
{
private readonly SemaphoreSlim _guessLock = new SemaphoreSlim(1, 1);
private IGuild guild { get; }
private ITextChannel channel { get; }
public IGuild guild { get; }
public ITextChannel channel { get; }
private int QuestionDurationMiliseconds { get; } = 30000;
private int HintTimeoutMiliseconds { get; } = 6000;

View File

@@ -43,7 +43,7 @@ namespace NadekoBot.Modules.Permissions
}
else
{
permIndex = i + 1;
permIndex = i;
return result.Value;
}
}

View File

@@ -15,7 +15,7 @@ using Discord.API;
namespace NadekoBot.Modules.Permissions
{
[NadekoModule("Permissions", ";")]
public class Permissions : DiscordModule
public partial class Permissions : DiscordModule
{
public Permissions(ILocalization loc, CommandService cmds, ShardedDiscordClient client) : base(loc, cmds, client)
{

View File

@@ -98,7 +98,7 @@ namespace NadekoBot.Modules.Utility
public async Task UserId(IUserMessage msg, IGuildUser target = null)
{
var usr = target ?? msg.Author;
await msg.Reply($"Id of the user { usr.Username } is { usr.Id })").ConfigureAwait(false);
await msg.Reply($"Id of the user { usr.Username } is { usr.Id }").ConfigureAwait(false);
}
[LocalizedCommand, LocalizedRemarks, LocalizedSummary, LocalizedAlias]