mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-04-26 06:05:05 +03:00
Bump .net version and dependencies
This commit is contained in:
parent
fa8a30463c
commit
bd2859913f
@ -62,7 +62,7 @@ public class JetKarmaBot : IDisposable
|
|||||||
public async Task Stop()
|
public async Task Stop()
|
||||||
{
|
{
|
||||||
if (stopped) return;
|
if (stopped) return;
|
||||||
Client?.CloseAsync();
|
Client?.Close();
|
||||||
timeoutWaitTaskToken?.Cancel();
|
timeoutWaitTaskToken?.Cancel();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
||||||
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.2" />
|
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="9.0.0" />
|
||||||
<PackageReference Include="Telegram.Bot" Version="22.0.2" />
|
<PackageReference Include="Telegram.Bot" Version="22.9.6" />
|
||||||
<PackageReference Include="NLog" Version="5.3.4" />
|
<PackageReference Include="NLog" Version="6.1.2" />
|
||||||
<ProjectReference Include="..\perfusion\Perfusion\Perfusion.csproj" />
|
<ProjectReference Include="..\perfusion\Perfusion\Perfusion.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -18,7 +18,7 @@ public class ChatCommandRouter : IRequestHandler
|
|||||||
|
|
||||||
public async Task Start()
|
public async Task Start()
|
||||||
{
|
{
|
||||||
Me = await Client.GetMeAsync();
|
Me = await Client.GetMe();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task Handle(RequestContext ctx, Func<RequestContext, Task> next)
|
public Task Handle(RequestContext ctx, Func<RequestContext, Task> next)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user