diff --git a/Program.cs b/Program.cs index 8058273..15140df 100644 --- a/Program.cs +++ b/Program.cs @@ -224,6 +224,9 @@ internal static async Task Main() slash.RegisterCommands(HomeServer.Id); Discord.Logger.LogInformation(BotEventId, "Slash commands registered globally"); + + // and CommandsNext commands + commands.RegisterCommands(); #endif await Discord.ConnectAsync(); diff --git a/ServerSpecificFeatures.cs b/ServerSpecificFeatures.cs index 4b97119..68797b8 100644 --- a/ServerSpecificFeatures.cs +++ b/ServerSpecificFeatures.cs @@ -192,8 +192,17 @@ public async Task Poop(CommandContext ctx) try { - var chan = await Program.Discord.GetChannelAsync(892978015309557870); - var msg = await chan.GetMessageAsync(1085253151155830895); + // ReSharper disable JoinDeclarationAndInitializer + DiscordChannel chan; + DiscordMessage msg; + // ReSharper restore JoinDeclarationAndInitializer + #if DEBUG + chan = await Program.Discord.GetChannelAsync(893654247709741088); + msg = await chan.GetMessageAsync(1282187612844589168); + #else + chan = await Program.Discord.GetChannelAsync(892978015309557870); + msg = await chan.GetMessageAsync(1085253151155830895); + #endif var phrases = msg.Content.Split("\n");