diff --git a/Sharpy/Commands/General/Info.cs b/Sharpy/Commands/General/Info.cs index bc46678..f8b090e 100644 --- a/Sharpy/Commands/General/Info.cs +++ b/Sharpy/Commands/General/Info.cs @@ -56,8 +56,7 @@ namespace Sharpy.Commands.General **Total RAM Usage**: {currentRamUsage}GB/{totalRamUsage}GB ({Math.Round(currentRamUsage / totalRamUsage * 100, 2)}%)") .Build(); - await ctx.CreateResponseAsync(InteractionResponseType.UpdateMessage, - new DiscordInteractionResponseBuilder().AddEmbed(embed)); + await ctx.EditResponseAsync(new DiscordWebhookBuilder().AddEmbed(embed)); } } } diff --git a/Sharpy/Program.cs b/Sharpy/Program.cs index f6217a3..e4a0883 100644 --- a/Sharpy/Program.cs +++ b/Sharpy/Program.cs @@ -1,4 +1,7 @@ using System; +#if RELEASE +using System.Net; +#endif using System.Threading.Tasks; using DSharpPlus; using DSharpPlus.Entities; @@ -40,6 +43,8 @@ var discord = new DiscordClient(new DiscordConfiguration LogTimestampFormat = "MMM dd yyyy - hh:mm:ss tt", MinimumLogLevel = LogLevel.Information, ReconnectIndefinitely = false, + ShardCount = Convert.ToInt32(Dns.GetHostName().Substring(Dns.GetHostName().IndexOf('-') + 1)), + ShardId = Convert.ToInt32(Dns.GetHostName().Substring(Dns.GetHostName().IndexOf('-') + 1)), Token = config.GetValue("token"), TokenType = TokenType.Bot, }); diff --git a/Sharpy/Sharpy.csproj b/Sharpy/Sharpy.csproj index 9cf540b..705196c 100644 --- a/Sharpy/Sharpy.csproj +++ b/Sharpy/Sharpy.csproj @@ -33,16 +33,17 @@ - - - - - - - - - - + + + + + + + + + + +