mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-25 01:44:12 +00:00
16 lines
387 B
C#
16 lines
387 B
C#
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace BirthdayBot.BackgroundServices
|
|||
|
{
|
|||
|
abstract class BackgroundService
|
|||
|
{
|
|||
|
protected BirthdayBot BotInstance { get; }
|
|||
|
|
|||
|
public BackgroundService(BirthdayBot instance) => BotInstance = instance;
|
|||
|
|
|||
|
protected void Log(string message) => Program.Log(GetType().Name, message);
|
|||
|
|
|||
|
public abstract Task OnTick();
|
|||
|
}
|
|||
|
}
|