Pokemon module placeholder, Dragon should PR here

This commit is contained in:
Kwoth
2016-08-16 15:52:26 +02:00
parent d6465fb6af
commit 915153cd0a
6 changed files with 28 additions and 364 deletions

View File

@@ -3,7 +3,6 @@ using Newtonsoft.Json;
using System;
using System.Linq;
using System.Text;
//using Manatee.Json.Serialization;
namespace NadekoBot.Classes.ClashOfClans
{

View File

@@ -1,17 +1,15 @@
using Discord.Commands;
using NadekoBot.Classes.ClashOfClans;
using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Discord;
using NadekoBot.Services;
using NadekoBot.Attributes;
//todo DB
namespace NadekoBot.Modules.ClashOfClans
{
[Module(",",AppendSpace = false)]
@@ -19,8 +17,6 @@ namespace NadekoBot.Modules.ClashOfClans
{
public static ConcurrentDictionary<ulong, List<ClashWar>> ClashWars { get; set; } = new ConcurrentDictionary<ulong, List<ClashWar>>();
private readonly object writeLock = new object();
public ClashOfClansModule(ILocalization loc, CommandService cmds, IBotConfiguration config, IDiscordClient client) : base(loc, cmds, config, client)
{
}

View File

@@ -8,14 +8,11 @@ using System.Collections.Concurrent;
using System.Linq;
using System.Threading.Tasks;
//todo DB
//todo Rewrite?
//todo Rewrite? Fix trivia not stopping bug
namespace NadekoBot.Modules.Games.Commands
{
public partial class GamesModule
{
[Group]
public class TriviaCommands
{

View File

@@ -0,0 +1,26 @@
using Discord.Commands;
using Discord;
using NadekoBot.Attributes;
using System.Threading.Tasks;
using NadekoBot.Services;
namespace NadekoBot.Modules.Games.Commands
{
[Module(">", AppendSpace = false)]
public partial class PokemonModule : DiscordModule
{
public PokemonModule(ILocalization loc, CommandService cmds, IBotConfiguration config, IDiscordClient client) : base(loc, cmds, config, client)
{
}
//todo Dragon should PR this in
[LocalizedCommand, LocalizedDescription, LocalizedSummary]
[RequireContext(ContextType.Guild)]
public async Task Poke(IMessage imsg)
{
var channel = imsg.Channel as IGuildChannel;
}
}
}