diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 7b8c249..76b9ded 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -3,7 +3,7 @@ name: .NET on: [ push, pull_request ] env: - DOTNET_SDK_VERSION: 5.0.x + DOTNET_SDK_VERSION: 6.0.x jobs: build-generic: @@ -24,7 +24,7 @@ jobs: run: dotnet restore - name: Build with .NET Core - run: dotnet publish -c Release -f net5.0 -o out/${{ github.event.repository.name }}-generic + run: dotnet publish -c Release -f net6.0 -o out/${{ github.event.repository.name }}-generic - name: Upload generic artifacts uses: actions/upload-artifact@v2 diff --git a/ArchiSteamFarm b/ArchiSteamFarm index 4174403..b7d9c7b 160000 --- a/ArchiSteamFarm +++ b/ArchiSteamFarm @@ -1 +1 @@ -Subproject commit 417440340a51b32375876d19283a64181099947e +Subproject commit b7d9c7b6dab1994a9af701801366245ddb50463f diff --git a/GameRemover/GameRemoverPlugin.cs b/GameRemover/GameRemoverPlugin.cs index aa335ca..00e3564 100644 --- a/GameRemover/GameRemoverPlugin.cs +++ b/GameRemover/GameRemoverPlugin.cs @@ -21,23 +21,11 @@ namespace GameRemover { [Export(typeof(IPlugin))] [UsedImplicitly] public class GameRemoverPlugin : IBotCommand { - public void OnLoaded() { - Assembly assembly = Assembly.GetExecutingAssembly(); - string repository = assembly - .GetCustomAttributes() - .First(x => x.Key == "RepositoryUrl") - .Value ?? throw new InvalidOperationException(nameof(AssemblyMetadataAttribute)); + public Task OnLoaded() + { + ASF.ArchiLogger.LogGenericInfo($"{Name} by Vital7 | Support & source code: https://github.com/Vital7/{Name}"); - const string git = ".git"; - int index = repository.IndexOf(git, StringComparison.Ordinal); - if (index >= 0) { - repository = repository[..(index + 1)]; - } - - string company = assembly - .GetCustomAttribute()?.Company ?? throw new InvalidOperationException(nameof(AssemblyCompanyAttribute)); - - ASF.ArchiLogger.LogGenericInfo(Name + " by " + company + " | Support & source code: " + repository); + return Task.CompletedTask; } public string Name => nameof(GameRemover); diff --git a/README.md b/README.md index 44dee2d..a3aefb1 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,6 @@ ASF plugin to remove games from account. ## Commands -Command | Access | Description ---- | --- | --- -`deletegame [Bots] {AppID}` | `Master` | Removes game `appID` from the given bot instances. +| Command | Access | Description | +|-----------------------------|----------|----------------------------------------------------| +| `deletegame [Bots] {AppID}` | `Master` | Removes game `appID` from the given bot instances. |