mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-22 05:54:36 +00:00
Noi
6f34fbe657
-Removed a number of diagnostic messages -Removed ConnectionStatus, connection scores, etc. -Modified work intervals for certain background tasks -Updated code style
14 lines
433 B
C#
14 lines
433 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
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);
|
|
}
|