update deps

This commit is contained in:
13xforever 2020-03-21 15:15:52 +05:00
parent 132f38e0f1
commit 819e0ee289
5 changed files with 22 additions and 14 deletions

View File

@ -14,9 +14,9 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="1.3.2" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="1.3.3" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="NLog" Version="4.6.8" />
<PackageReference Include="NLog" Version="4.7.0" />
</ItemGroup>
</Project>

View File

@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Crc32.NET" Version="1.2.0" />
<PackageReference Include="DiscUtils.OpticalDisk" Version="0.15.1-ci0002" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="1.3.2" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="1.3.3" />
</ItemGroup>
<ItemGroup>

View File

@ -15,7 +15,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="3.1.2" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="1.3.2" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="1.3.3" />
</ItemGroup>
<ItemGroup>

View File

@ -63,7 +63,7 @@ namespace CompatBot.Commands
return;
msg = await ctx.RespondAsync("Restarting...").ConfigureAwait(false);
Restart(ctx.Channel.Id);
Restart(ctx.Channel.Id, "Restarted after successful bot update");
}
catch (Exception e)
{
@ -90,7 +90,7 @@ namespace CompatBot.Commands
msg = await ctx.RespondAsync("Saving state...").ConfigureAwait(false);
await StatsStorage.SaveAsync(true).ConfigureAwait(false);
msg = await msg.UpdateOrCreateMessageAsync(ctx.Channel, "Restarting...").ConfigureAwait(false);
Restart(ctx.Channel.Id);
Restart(ctx.Channel.Id, "Restarted due to command request");
}
catch (Exception e)
{
@ -178,7 +178,7 @@ namespace CompatBot.Commands
return (true, stdout);
}
internal static void Restart(ulong channelId)
internal static void Restart(ulong channelId, string restartMsg)
{
if (SandboxDetector.Detect() == SandboxType.Docker)
{
@ -192,6 +192,14 @@ namespace CompatBot.Commands
}
else
ch.Value = channelId.ToString();
var msg = db.BotState.FirstOrDefault(k => k.Key == "bot-restart-msg");
if (msg is null)
{
msg = new BotState {Key = "bot-restart-msg", Value = restartMsg};
db.BotState.Add(msg);
}
else
msg.Value = restartMsg;
db.SaveChanges();
}
RestartNoSaving(channelId);

View File

@ -24,11 +24,11 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="DSharpPlus" Version="4.0.0-nightly-00668" />
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.0.0-nightly-00668" />
<PackageReference Include="DSharpPlus.Interactivity" Version="4.0.0-nightly-00668" />
<PackageReference Include="DSharpPlus" Version="4.0.0-nightly-00669" />
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.0.0-nightly-00669" />
<PackageReference Include="DSharpPlus.Interactivity" Version="4.0.0-nightly-00669" />
<PackageReference Include="DuoVia.FuzzyStrings" Version="2.0.1" />
<PackageReference Include="Google.Apis.Drive.v3" Version="1.44.1.1876" />
<PackageReference Include="Google.Apis.Drive.v3" Version="1.44.1.1888" />
<PackageReference Include="ksemenenko.ColorThief" Version="1.1.1.4" />
<PackageReference Include="MathParser.org-mXparser" Version="4.4.2" />
<PackageReference Include="MegaApiClient" Version="1.7.1" />
@ -44,14 +44,14 @@
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.2" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="1.3.2" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="1.3.3" />
<PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="16.153.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.9.10" />
<PackageReference Include="Microsoft.VisualStudio.Services.Client" Version="16.153.0" />
<PackageReference Include="Nerdbank.Streams" Version="2.4.60" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="NLog" Version="4.6.8" />
<PackageReference Include="NLog.Extensions.Logging" Version="1.6.1" />
<PackageReference Include="NLog" Version="4.7.0" />
<PackageReference Include="NLog.Extensions.Logging" Version="1.6.2" />
<PackageReference Include="NReco.Text.AhoCorasickDoubleArrayTrie" Version="1.0.2" />
<PackageReference Include="SharpCompress" Version="0.24.0" />
<PackageReference Include="System.Drawing.Common" Version="4.7.0" />