games small refactor, added bomberman empty command file

This commit is contained in:
Master Kwoth 2016-04-01 23:07:49 +02:00
parent 3c8a0f0074
commit bdbb9d3b13
3 changed files with 25 additions and 4 deletions

View File

@ -0,0 +1,18 @@
using Discord.Commands;
using NadekoBot.Commands;
using System;
namespace NadekoBot.Modules.Games.Commands
{
class Bomberman : DiscordCommand
{
public Bomberman(DiscordModule module) : base(module)
{
}
internal override void Init(CommandGroupBuilder cgb)
{
throw new NotImplementedException();
}
}
}

View File

@ -2,21 +2,23 @@
using Discord.Modules; using Discord.Modules;
using NadekoBot.Commands; using NadekoBot.Commands;
using NadekoBot.Extensions; using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Commands;
using System; using System;
using System.Linq; using System.Linq;
namespace NadekoBot.Modules namespace NadekoBot.Modules.Games
{ {
internal class Games : DiscordModule internal class GamesModule : DiscordModule
{ {
private readonly Random rng = new Random(); private readonly Random rng = new Random();
public Games() public GamesModule()
{ {
commands.Add(new Trivia(this)); commands.Add(new Trivia(this));
commands.Add(new SpeedTyping(this)); commands.Add(new SpeedTyping(this));
commands.Add(new PollCommand(this)); commands.Add(new PollCommand(this));
commands.Add(new PlantPick(this)); commands.Add(new PlantPick(this));
commands.Add(new Bomberman(this));
//commands.Add(new BetrayGame(this)); //commands.Add(new BetrayGame(this));
} }

View File

@ -7,6 +7,7 @@ using NadekoBot.Commands;
using NadekoBot.Modules; using NadekoBot.Modules;
using NadekoBot.Modules.Administration; using NadekoBot.Modules.Administration;
using NadekoBot.Modules.Gambling; using NadekoBot.Modules.Gambling;
using NadekoBot.Modules.Games;
using NadekoBot.Modules.Pokemon; using NadekoBot.Modules.Pokemon;
using NadekoBot.Modules.Translator; using NadekoBot.Modules.Translator;
using Newtonsoft.Json; using Newtonsoft.Json;
@ -163,7 +164,7 @@ namespace NadekoBot
modules.Add(new PermissionModule(), "Permissions", ModuleFilter.None); modules.Add(new PermissionModule(), "Permissions", ModuleFilter.None);
modules.Add(new Conversations(), "Conversations", ModuleFilter.None); modules.Add(new Conversations(), "Conversations", ModuleFilter.None);
modules.Add(new GamblingModule(), "Gambling", ModuleFilter.None); modules.Add(new GamblingModule(), "Gambling", ModuleFilter.None);
modules.Add(new Games(), "Games", ModuleFilter.None); modules.Add(new GamesModule(), "Games", ModuleFilter.None);
modules.Add(new Music(), "Music", ModuleFilter.None); modules.Add(new Music(), "Music", ModuleFilter.None);
modules.Add(new Searches(), "Searches", ModuleFilter.None); modules.Add(new Searches(), "Searches", ModuleFilter.None);
modules.Add(new NSFW(), "NSFW", ModuleFilter.None); modules.Add(new NSFW(), "NSFW", ModuleFilter.None);