Skip to content

Commit

Permalink
Merge pull request #47 from Vital7/renovate/archisteamfarm-digest
Browse files Browse the repository at this point in the history
Update ArchiSteamFarm commit hash to b7d9c7b
  • Loading branch information
ezhevita authored Jan 10, 2022
2 parents de251cb + cdcca9c commit f602968
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm
Submodule ArchiSteamFarm updated 261 files
20 changes: 4 additions & 16 deletions GameRemover/GameRemoverPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AssemblyMetadataAttribute>()
.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<AssemblyCompanyAttribute>()?.Company ?? throw new InvalidOperationException(nameof(AssemblyCompanyAttribute));

ASF.ArchiLogger.LogGenericInfo(Name + " by " + company + " | Support & source code: " + repository);
return Task.CompletedTask;
}

public string Name => nameof(GameRemover);
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |

0 comments on commit f602968

Please sign in to comment.