-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMyAwesomePlugin.cs
More file actions
22 lines (18 loc) · 756 Bytes
/
MyAwesomePlugin.cs
File metadata and controls
22 lines (18 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Threading.Tasks;
using ArchiSteamFarm.Core;
using ArchiSteamFarm.Plugins.Interfaces;
using JetBrains.Annotations;
namespace MyAwesomePlugin;
#pragma warning disable CA1812 // ASF uses this class during runtime
[UsedImplicitly]
internal sealed class MyAwesomePlugin : IGitHubPluginUpdates {
public string Name => nameof(MyAwesomePlugin);
public string RepositoryName => "JustArchiNET/ASF-PluginTemplate";
public Version Version => typeof(MyAwesomePlugin).Assembly.GetName().Version ?? throw new InvalidOperationException(nameof(Version));
public Task OnLoaded() {
ASF.ArchiLogger.LogGenericInfo($"Hello {Name}!");
return Task.CompletedTask;
}
}
#pragma warning restore CA1812 // ASF uses this class during runtime