Skip to content

Commit cfc8f4c

Browse files
committed
update to net6.0 and tasks
1 parent a838b6a commit cfc8f4c

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

ArchiSteamFarm

Submodule ArchiSteamFarm updated 297 files

Commandless-Redeem/Commandless-Redeem.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Composition;
33
using System.Threading.Tasks;
44
using ArchiSteamFarm.Core;
@@ -13,10 +13,13 @@ public sealed class CommandlessRedeem : IBotMessage, IBotCommand {
1313
public string Name => nameof(CommandlessRedeem);
1414
public Version Version => typeof(CommandlessRedeem).Assembly.GetName().Version ?? new Version("0");
1515

16-
public void OnLoaded() => ASF.ArchiLogger.LogGenericInfo("Commandless Redeem Plugin by Ryzhehvost, powered by ginger cats");
16+
public Task OnLoaded() {
17+
ASF.ArchiLogger.LogGenericInfo("Commandless Redeem Plugin by Ryzhehvost, powered by ginger cats");
18+
return Task.CompletedTask;
19+
}
1720

18-
public async Task<string?> OnBotMessage([NotNull] Bot bot, ulong steamID, [NotNull] string message) {
19-
if (!bot.HasAccess(steamID,BotConfig.EAccess.Operator)) {
21+
public async Task<string?> OnBotMessage(Bot bot, ulong steamID, string message) {
22+
if (!bot.HasAccess(steamID, BotConfig.EAccess.Operator)) {
2023
return null;
2124
}
2225

@@ -27,6 +30,6 @@ public sealed class CommandlessRedeem : IBotMessage, IBotCommand {
2730
return await bot.Commands.Response(steamID, "r " + bot.BotName + " " + message).ConfigureAwait(false);
2831
}
2932

30-
public async Task<string?> OnBotCommand([NotNull] Bot bot, ulong steamID, [NotNull] string message, string[] args) => await OnBotMessage(bot, steamID, string.Join(" ", args)).ConfigureAwait(false);
33+
public async Task<string?> OnBotCommand(Bot bot, ulong steamID, string message, string[] args) => await OnBotMessage(bot, steamID, string.Join(" ", args)).ConfigureAwait(false);
3134
}
3235
}

Commandless-Redeem/Commandless-Redeem.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<Authors>Ryzhehvost</Authors>
5-
<AssemblyVersion>0.5.0.0</AssemblyVersion>
6-
<TargetFrameworks>net5.0;net48</TargetFrameworks>
5+
<AssemblyVersion>0.5.1.0</AssemblyVersion>
6+
<TargetFrameworks>net6.0;net48</TargetFrameworks>
77
<Nullable>enable</Nullable>
88
<LangVersion>latest</LangVersion>
99
</PropertyGroup>

build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if exist out rmdir /Q /S out
2121

2222
rem release generic version
2323

24-
dotnet publish -c "Release" -f "net5.0" -o "out/generic" "/p:LinkDuringPublish=false"
24+
dotnet publish -c "Release" -f "net6.0" -o "out/generic" "/p:LinkDuringPublish=false"
2525
mkdir .\out\%CurrDirName%
2626
copy .\out\generic\%CurrDirName%.dll .\out\%CurrDirName%
2727
7z a -tzip -mx7 .\out\%CurrDirName%.zip .\out\%CurrDirName%

0 commit comments

Comments
 (0)