Pick/plant back, not downloading users on public bot

This commit is contained in:
Kwoth 2017-01-08 17:22:06 +01:00
parent 41c610c04f
commit 8a76d20197
2 changed files with 3 additions and 2 deletions

View File

@ -105,7 +105,7 @@ namespace NadekoBot.Modules.Games
}
catch { }
}
#if !GLOBAL_NADEKO
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Pick()
@ -168,7 +168,6 @@ namespace NadekoBot.Modules.Games
}
plantedFlowers.AddOrUpdate(Context.Channel.Id, new List<IUserMessage>() { msg }, (id, old) => { old.Add(msg); return old; });
}
#endif
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]

View File

@ -91,7 +91,9 @@ namespace NadekoBot
//connect
await Client.LoginAsync(TokenType.Bot, Credentials.Token).ConfigureAwait(false);
await Client.ConnectAsync().ConfigureAwait(false);
#if !GLOBAL_NADEKO
await Client.DownloadAllUsersAsync().ConfigureAwait(false);
#endif
_log.Info("Connected");