From 1557ba2e81a669df23456f5c695f025a9ecd93fa Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 31 Aug 2016 15:16:01 +0200 Subject: [PATCH] Fixes to cross server thingy --- .../Commands/CrossServerTextChannel.cs | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Commands/CrossServerTextChannel.cs b/src/NadekoBot/Modules/Administration/Commands/CrossServerTextChannel.cs index d68b2f78..f1be8e56 100644 --- a/src/NadekoBot/Modules/Administration/Commands/CrossServerTextChannel.cs +++ b/src/NadekoBot/Modules/Administration/Commands/CrossServerTextChannel.cs @@ -56,20 +56,20 @@ namespace NadekoBot.Modules.Administration public static readonly ConcurrentDictionary> Subscribers = new ConcurrentDictionary>(); - //todo owner only - [LocalizedCommand, LocalizedDescription, LocalizedSummary] - [RequireContext(ContextType.Guild)] - public async Task Scsc(IUserMessage msg) - { - var channel = (ITextChannel)msg.Channel; - var token = new Random().Next(); - var set = new HashSet(); - if (Subscribers.TryAdd(token, set)) - { - set.Add(channel); - await ((IGuildUser)msg.Author).SendMessageAsync("This is your CSC token:" + token.ToString()).ConfigureAwait(false); - } - } + ////todo owner only + //[LocalizedCommand, LocalizedDescription, LocalizedSummary] + //[RequireContext(ContextType.Guild)] + //public async Task Scsc(IUserMessage msg) + //{ + // var channel = (ITextChannel)msg.Channel; + // var token = new Random().Next(); + // var set = new HashSet(); + // if (Subscribers.TryAdd(token, set)) + // { + // set.Add(channel); + // await ((IGuildUser)msg.Author).SendMessageAsync("This is your CSC token:" + token.ToString()).ConfigureAwait(false); + // } + //} [LocalizedCommand, LocalizedDescription, LocalizedSummary] [RequireContext(ContextType.Guild)] @@ -88,7 +88,7 @@ namespace NadekoBot.Modules.Administration [LocalizedCommand, LocalizedDescription, LocalizedSummary] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] - public async Task cmd(IUserMessage imsg) + public async Task Lcsc(IUserMessage imsg) { var channel = (ITextChannel)imsg.Channel;