* Removed OpenRouter from BotServices and converted it into a static class

* Moved hostess from MemeCommands.cs to KasinoUserCommands.cs
* Added missing KasinoCommand attribute. Also added WagerCommand so it'll do the exclusion check before running
This commit is contained in:
barelyprofessional
2025-12-19 01:05:39 -06:00
parent a88045c63d
commit 8503636a29
4 changed files with 100 additions and 115 deletions

View File

@@ -40,7 +40,6 @@ public class BotServices
private Owncast? _owncastStatusCheck;
private ShuffleDotUs? _shuffleDotUs;
private YouTubePubSub? _youTubePubSub;
public OpenRouter? OpenRouter;
private Task? _websocketWatchdog;
private Task? _howlggGetUserTimer;
@@ -91,8 +90,7 @@ public class BotServices
BuildDLiveStatusCheck(),
BuildPeerTubeLiveStatusCheck(),
BuildOwncastLiveStatusCheck(),
BuildShuffleDotUs(),
BuildOpenRouter()
BuildShuffleDotUs()
];
try
{
@@ -108,13 +106,6 @@ 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()
{