Skip to content

Commit

Permalink
update to net6.0 and tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudokhvist committed Dec 14, 2021
1 parent a838b6a commit cfc8f4c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ArchiSteamFarm
Submodule ArchiSteamFarm updated 297 files
13 changes: 8 additions & 5 deletions Commandless-Redeem/Commandless-Redeem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Composition;
using System.Threading.Tasks;
using ArchiSteamFarm.Core;
Expand All @@ -13,10 +13,13 @@ public sealed class CommandlessRedeem : IBotMessage, IBotCommand {
public string Name => nameof(CommandlessRedeem);
public Version Version => typeof(CommandlessRedeem).Assembly.GetName().Version ?? new Version("0");

public void OnLoaded() => ASF.ArchiLogger.LogGenericInfo("Commandless Redeem Plugin by Ryzhehvost, powered by ginger cats");
public Task OnLoaded() {
ASF.ArchiLogger.LogGenericInfo("Commandless Redeem Plugin by Ryzhehvost, powered by ginger cats");
return Task.CompletedTask;
}

public async Task<string?> OnBotMessage([NotNull] Bot bot, ulong steamID, [NotNull] string message) {
if (!bot.HasAccess(steamID,BotConfig.EAccess.Operator)) {
public async Task<string?> OnBotMessage(Bot bot, ulong steamID, string message) {
if (!bot.HasAccess(steamID, BotConfig.EAccess.Operator)) {
return null;
}

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

public async Task<string?> OnBotCommand([NotNull] Bot bot, ulong steamID, [NotNull] string message, string[] args) => await OnBotMessage(bot, steamID, string.Join(" ", args)).ConfigureAwait(false);
public async Task<string?> OnBotCommand(Bot bot, ulong steamID, string message, string[] args) => await OnBotMessage(bot, steamID, string.Join(" ", args)).ConfigureAwait(false);
}
}
4 changes: 2 additions & 2 deletions Commandless-Redeem/Commandless-Redeem.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<Authors>Ryzhehvost</Authors>
<AssemblyVersion>0.5.0.0</AssemblyVersion>
<TargetFrameworks>net5.0;net48</TargetFrameworks>
<AssemblyVersion>0.5.1.0</AssemblyVersion>
<TargetFrameworks>net6.0;net48</TargetFrameworks>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if exist out rmdir /Q /S out

rem release generic version

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

0 comments on commit cfc8f4c

Please sign in to comment.