now builds, more changes inc
This commit is contained in:
parent
50cd1f50b5
commit
d9a8a6d4fa
@ -146,7 +146,7 @@ public class Cards
|
||||
}
|
||||
public override string ToString() => string.Join("", cardPool.Select(c => c.ToString())) + Environment.NewLine;
|
||||
|
||||
internal override void InitHandValues() {
|
||||
private void InitHandValues() {
|
||||
Func<List<Card>, bool> hasPair =
|
||||
cards => cards.GroupBy(card => card.Number)
|
||||
.Count(group => group.Count() == 2) == 1;
|
||||
|
@ -34,7 +34,7 @@ namespace NadekoBot.Commands {
|
||||
|
||||
private readonly object playingPlaceholderLock = new object();
|
||||
|
||||
public PlayingRotate() {
|
||||
public PlayingRotate(DiscordModule module) : base(module) {
|
||||
var i = -1;
|
||||
timer.Elapsed += (s, e) => {
|
||||
try {
|
||||
|
@ -15,12 +15,12 @@ using NadekoBot.Classes._DataModels;
|
||||
namespace NadekoBot.Modules {
|
||||
internal class Administration : DiscordModule {
|
||||
public Administration() {
|
||||
commands.Add(new ServerGreetCommand());
|
||||
commands.Add(new LogCommand());
|
||||
commands.Add(new MessageRepeater());
|
||||
commands.Add(new PlayingRotate());
|
||||
commands.Add(new RatelimitCommand());
|
||||
commands.Add(new VoicePlusTextCommand());
|
||||
commands.Add(new ServerGreetCommand(this));
|
||||
commands.Add(new LogCommand(this));
|
||||
commands.Add(new MessageRepeater(this));
|
||||
commands.Add(new PlayingRotate(this));
|
||||
commands.Add(new RatelimitCommand(this));
|
||||
commands.Add(new VoicePlusTextCommand(this));
|
||||
}
|
||||
|
||||
public override string Prefix { get; } = ".";
|
||||
|
@ -17,8 +17,8 @@ namespace NadekoBot.Modules {
|
||||
internal class Conversations : DiscordModule {
|
||||
private const string firestr = "🔥 ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้ 🔥";
|
||||
public Conversations() {
|
||||
commands.Add(new CopyCommand());
|
||||
commands.Add(new RequestsCommand());
|
||||
commands.Add(new CopyCommand(this));
|
||||
commands.Add(new RequestsCommand(this));
|
||||
}
|
||||
|
||||
public override string Prefix { get; } = String.Format("<@{0}>", NadekoBot.Creds.BotId);
|
||||
|
@ -11,9 +11,9 @@ namespace NadekoBot.Modules
|
||||
{
|
||||
|
||||
public Gambling() {
|
||||
commands.Add(new DrawCommand());
|
||||
commands.Add(new FlipCoinCommand());
|
||||
commands.Add(new DiceRollCommand());
|
||||
commands.Add(new DrawCommand(this));
|
||||
commands.Add(new FlipCoinCommand(this));
|
||||
commands.Add(new DiceRollCommand(this));
|
||||
}
|
||||
|
||||
public override string Prefix { get; } = "$";
|
||||
|
@ -15,10 +15,10 @@ namespace NadekoBot.Modules {
|
||||
private readonly Random rng = new Random();
|
||||
|
||||
public Games() {
|
||||
commands.Add(new Trivia());
|
||||
commands.Add(new SpeedTyping());
|
||||
commands.Add(new PollCommand());
|
||||
commands.Add(new ClashOfClans());
|
||||
commands.Add(new Trivia(this));
|
||||
commands.Add(new SpeedTyping(this));
|
||||
commands.Add(new PollCommand(this));
|
||||
commands.Add(new ClashOfClans(this));
|
||||
|
||||
_8BallAnswers = JArray.Parse(File.ReadAllText("data/8ball.json")).Select(t => t.ToString()).ToArray();
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ namespace NadekoBot.Modules {
|
||||
internal class Help : DiscordModule {
|
||||
|
||||
public Help() {
|
||||
commands.Add(new HelpCommand());
|
||||
commands.Add(new HelpCommand(this));
|
||||
}
|
||||
|
||||
public override string Prefix { get; } = "-";
|
||||
|
@ -14,7 +14,7 @@ namespace NadekoBot.Modules {
|
||||
public override string Prefix { get; } = ";";
|
||||
|
||||
public PermissionModule() {
|
||||
commands.Add(new FilterInvitesCommand());
|
||||
commands.Add(new FilterInvitesCommand(this));
|
||||
}
|
||||
|
||||
public override void Install(ModuleManager manager) {
|
||||
|
@ -15,7 +15,7 @@ namespace NadekoBot.Modules {
|
||||
internal class Searches : DiscordModule {
|
||||
private readonly Random rng;
|
||||
public Searches() {
|
||||
commands.Add(new LoLCommands());
|
||||
commands.Add(new LoLCommands(this));
|
||||
rng = new Random();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user