Skip to content

Commit f15ffc3

Browse files
committed
fixes for asf5
1 parent ebfeba1 commit f15ffc3

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

ArchiSteamFarm

Submodule ArchiSteamFarm updated 136 files

Commandless-Redeem/Commandless-Redeem.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ public sealed class CommandlessRedeem : IBotMessage, IBotCommand {
1111
public string Name => nameof(CommandlessRedeem);
1212
public Version Version => typeof(CommandlessRedeem).Assembly.GetName().Version ?? new Version("0");
1313

14-
public void OnLoaded() {
15-
ASF.ArchiLogger.LogGenericInfo("Commandless Redeem Plugin by Ryzhehvost, powered by ginger cats");
16-
}
14+
public void OnLoaded() => ASF.ArchiLogger.LogGenericInfo("Commandless Redeem Plugin by Ryzhehvost, powered by ginger cats");
1715

1816
public async Task<string?> OnBotMessage([NotNull] Bot bot, ulong steamID, [NotNull] string message) {
19-
if (!bot.HasPermission(steamID,BotConfig.EPermission.Operator)) {
17+
if (!bot.HasAccess(steamID,BotConfig.EAccess.Operator)) {
2018
return null;
2119
}
2220

@@ -27,8 +25,6 @@ public void OnLoaded() {
2725
return await bot.Commands.Response(steamID, "r " + bot.BotName + " " + message).ConfigureAwait(false);
2826
}
2927

30-
public async Task<string?> OnBotCommand([NotNull] Bot bot, ulong steamID, [NotNull] string message, string[] args) {
31-
return await OnBotMessage(bot, steamID, string.Join(" ", args)).ConfigureAwait(false);
32-
}
33-
}
28+
public async Task<string?> OnBotCommand([NotNull] Bot bot, ulong steamID, [NotNull] string message, string[] args) => await OnBotMessage(bot, steamID, string.Join(" ", args)).ConfigureAwait(false);
29+
}
3430
}

Commandless-Redeem/Commandless-Redeem.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Authors>Ryzhehvost</Authors>
55
<AssemblyVersion>0.3.0.0</AssemblyVersion>
6-
<TargetFrameworks>netcoreapp3.1;net48</TargetFrameworks>
6+
<TargetFrameworks>net5.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 "netcoreapp3.1" -o "out/generic" "/p:LinkDuringPublish=false"
24+
dotnet publish -c "Release" -f "net5.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)