mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-25 01:44:12 +00:00
11 lines
378 B
C#
11 lines
378 B
C#
namespace BirthdayBot.BackgroundServices;
|
|
|
|
abstract class BackgroundService {
|
|
protected ShardInstance ShardInstance { get; }
|
|
|
|
public BackgroundService(ShardInstance instance) => ShardInstance = instance;
|
|
|
|
protected void Log(string message) => ShardInstance.Log(GetType().Name, message);
|
|
|
|
public abstract Task OnTick(int tickCount, CancellationToken token);
|
|
}
|