mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-24 17:34:13 +00:00
Noi
ddcde10e09
All existing VB code was 'translated' to C# as closely as possible, with minor changes and additional notes. Currently untested and likely broken. Further commits will go toward making overall improvements until this version replaces the currently existing code.
15 lines
387 B
C#
15 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();
|
|
}
|
|
}
|