using LibMatrix.Homeservers; using LibMatrix.RoomTypes; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace Jenny; public class JennyBot(AuthenticatedHomeserverGeneric hs, ILogger logger, JennyConfiguration configuration) : IHostedService { private Task _listenerTask; // private GenericRoom _policyRoom; private GenericRoom? _logRoom; private GenericRoom? _controlRoom; /// Triggered when the application host is ready to start the service. /// Indicates that the start process has been aborted. public async Task StartAsync(CancellationToken cancellationToken) { _listenerTask = Run(cancellationToken); logger.LogInformation("Bot started!"); } private async Task Run(CancellationToken cancellationToken) { } /// Triggered when the application host is performing a graceful shutdown. /// Indicates that the shutdown process should no longer be graceful. public async Task StopAsync(CancellationToken cancellationToken) { logger.LogInformation("Shutting down bot!"); } }