>gc is bot owner only on public nadeko now

This commit is contained in:
Master Kwoth 2017-05-15 14:32:40 +02:00
parent af7df8b0ca
commit 6a90b0a406

View File

@ -181,10 +181,13 @@ namespace NadekoBot.Modules.Games
return old; return old;
}); });
} }
#if !GLOBAL_NADEKO
[NadekoCommand, Usage, Description, Aliases] [NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)] [RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.ManageMessages)] [RequireUserPermission(GuildPermission.ManageMessages)]
#if GLOBAL_NADEKO
[OwnerOnly]
#endif
public async Task GenCurrency() public async Task GenCurrency()
{ {
var channel = (ITextChannel)Context.Channel; var channel = (ITextChannel)Context.Channel;
@ -218,7 +221,6 @@ namespace NadekoBot.Modules.Games
await ReplyConfirmLocalized("curgen_disabled").ConfigureAwait(false); await ReplyConfirmLocalized("curgen_disabled").ConfigureAwait(false);
} }
} }
#endif
private static KeyValuePair<string, ImmutableArray<byte>> GetRandomCurrencyImage() private static KeyValuePair<string, ImmutableArray<byte>> GetRandomCurrencyImage()
{ {