File tree Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: .NET
3
3
on : [ push, pull_request ]
4
4
5
5
env :
6
- DOTNET_SDK_VERSION : 5 .0.x
6
+ DOTNET_SDK_VERSION : 6 .0.x
7
7
8
8
jobs :
9
9
build-generic :
24
24
run : dotnet restore
25
25
26
26
- name : Build with .NET Core
27
- run : dotnet publish -c Release -f net5 .0 -o out/${{ github.event.repository.name }}-generic
27
+ run : dotnet publish -c Release -f net6 .0 -o out/${{ github.event.repository.name }}-generic
28
28
29
29
- name : Upload generic artifacts
30
30
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -21,23 +21,11 @@ namespace GameRemover {
21
21
[ Export ( typeof ( IPlugin ) ) ]
22
22
[ UsedImplicitly ]
23
23
public class GameRemoverPlugin : IBotCommand {
24
- public void OnLoaded ( ) {
25
- Assembly assembly = Assembly . GetExecutingAssembly ( ) ;
26
- string repository = assembly
27
- . GetCustomAttributes < AssemblyMetadataAttribute > ( )
28
- . First ( x => x . Key == "RepositoryUrl" )
29
- . Value ?? throw new InvalidOperationException ( nameof ( AssemblyMetadataAttribute ) ) ;
24
+ public Task OnLoaded ( )
25
+ {
26
+ ASF . ArchiLogger . LogGenericInfo ( $ "{ Name } by Vital7 | Support & source code: https://github.com/Vital7/{ Name } ") ;
30
27
31
- const string git = ".git" ;
32
- int index = repository . IndexOf ( git , StringComparison . Ordinal ) ;
33
- if ( index >= 0 ) {
34
- repository = repository [ ..( index + 1 ) ] ;
35
- }
36
-
37
- string company = assembly
38
- . GetCustomAttribute < AssemblyCompanyAttribute > ( ) ? . Company ?? throw new InvalidOperationException ( nameof ( AssemblyCompanyAttribute ) ) ;
39
-
40
- ASF . ArchiLogger . LogGenericInfo ( Name + " by " + company + " | Support & source code: " + repository ) ;
28
+ return Task . CompletedTask ;
41
29
}
42
30
43
31
public string Name => nameof ( GameRemover ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ ASF plugin to remove games from account.
7
7
8
8
## Commands
9
9
10
- Command | Access | Description
11
- --- | --- | ---
12
- ` deletegame [Bots] {AppID} ` | ` Master ` | Removes game ` appID ` from the given bot instances.
10
+ | Command | Access | Description |
11
+ | ----------------------------- | ---------- | ---------------------------------------------------- |
12
+ | ` deletegame [Bots] {AppID} ` | ` Master ` | Removes game ` appID ` from the given bot instances. |
You can’t perform that action at this time.
0 commit comments