Fixes to cross server thingy
This commit is contained in:
parent
caf8bcc761
commit
1557ba2e81
@ -56,20 +56,20 @@ namespace NadekoBot.Modules.Administration
|
|||||||
|
|
||||||
public static readonly ConcurrentDictionary<int, HashSet<ITextChannel>> Subscribers = new ConcurrentDictionary<int, HashSet<ITextChannel>>();
|
public static readonly ConcurrentDictionary<int, HashSet<ITextChannel>> Subscribers = new ConcurrentDictionary<int, HashSet<ITextChannel>>();
|
||||||
|
|
||||||
//todo owner only
|
////todo owner only
|
||||||
[LocalizedCommand, LocalizedDescription, LocalizedSummary]
|
//[LocalizedCommand, LocalizedDescription, LocalizedSummary]
|
||||||
[RequireContext(ContextType.Guild)]
|
//[RequireContext(ContextType.Guild)]
|
||||||
public async Task Scsc(IUserMessage msg)
|
//public async Task Scsc(IUserMessage msg)
|
||||||
{
|
//{
|
||||||
var channel = (ITextChannel)msg.Channel;
|
// var channel = (ITextChannel)msg.Channel;
|
||||||
var token = new Random().Next();
|
// var token = new Random().Next();
|
||||||
var set = new HashSet<ITextChannel>();
|
// var set = new HashSet<ITextChannel>();
|
||||||
if (Subscribers.TryAdd(token, set))
|
// if (Subscribers.TryAdd(token, set))
|
||||||
{
|
// {
|
||||||
set.Add(channel);
|
// set.Add(channel);
|
||||||
await ((IGuildUser)msg.Author).SendMessageAsync("This is your CSC token:" + token.ToString()).ConfigureAwait(false);
|
// await ((IGuildUser)msg.Author).SendMessageAsync("This is your CSC token:" + token.ToString()).ConfigureAwait(false);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
[LocalizedCommand, LocalizedDescription, LocalizedSummary]
|
[LocalizedCommand, LocalizedDescription, LocalizedSummary]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
@ -88,7 +88,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
[LocalizedCommand, LocalizedDescription, LocalizedSummary]
|
[LocalizedCommand, LocalizedDescription, LocalizedSummary]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[RequirePermission(GuildPermission.ManageGuild)]
|
[RequirePermission(GuildPermission.ManageGuild)]
|
||||||
public async Task cmd(IUserMessage imsg)
|
public async Task Lcsc(IUserMessage imsg)
|
||||||
{
|
{
|
||||||
var channel = (ITextChannel)imsg.Channel;
|
var channel = (ITextChannel)imsg.Channel;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user