mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Add !hostess command (#12)
* Add basic !hostess command * Add openrouter integration
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user