From bdbb9d3b13e0926534d51ca8a22f38b9814e7485 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Fri, 1 Apr 2016 23:07:49 +0200 Subject: [PATCH] games small refactor, added bomberman empty command file --- NadekoBot/Modules/Games/Commands/Bomberman.cs | 18 ++++++++++++++++++ .../Modules/{Games.cs => Games/GamesModule.cs} | 8 +++++--- NadekoBot/NadekoBot.cs | 3 ++- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 NadekoBot/Modules/Games/Commands/Bomberman.cs rename NadekoBot/Modules/{Games.cs => Games/GamesModule.cs} (96%) diff --git a/NadekoBot/Modules/Games/Commands/Bomberman.cs b/NadekoBot/Modules/Games/Commands/Bomberman.cs new file mode 100644 index 00000000..0d2f9214 --- /dev/null +++ b/NadekoBot/Modules/Games/Commands/Bomberman.cs @@ -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(); + } + } +} diff --git a/NadekoBot/Modules/Games.cs b/NadekoBot/Modules/Games/GamesModule.cs similarity index 96% rename from NadekoBot/Modules/Games.cs rename to NadekoBot/Modules/Games/GamesModule.cs index 6d2e39c7..14c13917 100644 --- a/NadekoBot/Modules/Games.cs +++ b/NadekoBot/Modules/Games/GamesModule.cs @@ -2,21 +2,23 @@ using Discord.Modules; using NadekoBot.Commands; using NadekoBot.Extensions; +using NadekoBot.Modules.Games.Commands; using System; using System.Linq; -namespace NadekoBot.Modules +namespace NadekoBot.Modules.Games { - internal class Games : DiscordModule + internal class GamesModule : DiscordModule { private readonly Random rng = new Random(); - public Games() + public GamesModule() { commands.Add(new Trivia(this)); commands.Add(new SpeedTyping(this)); commands.Add(new PollCommand(this)); commands.Add(new PlantPick(this)); + commands.Add(new Bomberman(this)); //commands.Add(new BetrayGame(this)); } diff --git a/NadekoBot/NadekoBot.cs b/NadekoBot/NadekoBot.cs index 2fbb48f4..6442839f 100644 --- a/NadekoBot/NadekoBot.cs +++ b/NadekoBot/NadekoBot.cs @@ -7,6 +7,7 @@ using NadekoBot.Commands; using NadekoBot.Modules; using NadekoBot.Modules.Administration; using NadekoBot.Modules.Gambling; +using NadekoBot.Modules.Games; using NadekoBot.Modules.Pokemon; using NadekoBot.Modules.Translator; using Newtonsoft.Json; @@ -163,7 +164,7 @@ namespace NadekoBot modules.Add(new PermissionModule(), "Permissions", ModuleFilter.None); modules.Add(new Conversations(), "Conversations", 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 Searches(), "Searches", ModuleFilter.None); modules.Add(new NSFW(), "NSFW", ModuleFilter.None);