Add !hostess command (#12)

* Add basic !hostess command

* Add openrouter integration
This commit is contained in:
cohlexyz
2025-12-19 07:42:57 +01:00
committed by GitHub
parent 71e534a396
commit 72a162b67a
4 changed files with 206 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ public class BotServices
private PeerTube? _peerTubeStatusCheck;
private Owncast? _owncastStatusCheck;
private ShuffleDotUs? _shuffleDotUs;
public OpenRouter? OpenRouter;
private Task? _websocketWatchdog;
private Task? _howlggGetUserTimer;
@@ -89,7 +90,8 @@ public class BotServices
BuildDLiveStatusCheck(),
BuildPeerTubeLiveStatusCheck(),
BuildOwncastLiveStatusCheck(),
BuildShuffleDotUs()
BuildShuffleDotUs(),
BuildOpenRouter()
];
try
{
@@ -105,6 +107,13 @@ public class BotServices
_websocketWatchdog = WebsocketWatchdog();
_howlggGetUserTimer = HowlggGetUserTimer();
}
private async Task BuildOpenRouter()
{
_logger.Debug("Building OpenRouter client");
var proxySetting = await SettingsProvider.GetValueAsync(BuiltIn.Keys.Proxy);
OpenRouter = new OpenRouter(proxySetting.Value);
}
private async Task BuildShuffle()
{