Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Nullinside.Api.TwitchBot/ChatRules/StreamRise.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ namespace Nullinside.Api.TwitchBot.ChatRules;
/// </summary>
public class StreamRise : AChatRule {
private const string SPAM = "Hello, sorry for bothering you. I want to offer promotion of your channel, " +
"viewers, followers, views, chat bots, etc...The price is lower than any competitor, " +
"the quality is guaranteed to be the best. Flexible and convenient order management " +
"panel, chat panel, everything is in your hands, a huge number of custom settings. Go " +
"to streamrise";
"viewers, followers, views, chat bots, etc...The price is lower than any competitor, " +
"the quality is guaranteed to be the best. Flexible and convenient order management " +
"panel, chat panel, everything is in your hands, a huge number of custom settings. Go " +
"to streamrise";

/// <inheritdoc />
public override bool ShouldRun(TwitchUserConfig config) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
<ItemGroup>
<PackageReference Include="FlexLabs.EntityFrameworkCore.Upsert" Version="9.0.0"/>
<PackageReference Include="log4net.Ext.Json" Version="3.0.3"/>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.7" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.7"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="8.0.0"/>
<PackageReference Include="Nullinside.MySql.EntityFrameworkCore" Version="9.0.3"/>
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.3" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.3"/>
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1"/>
</ItemGroup>

Expand Down
9 changes: 9 additions & 0 deletions src/Nullinside.Api.TwitchBot/Services/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,18 @@ public MainService(IServiceScopeFactory serviceScopeFactory) {
_db = _scope.ServiceProvider.GetRequiredService<INullinsideContext>();
_api = _scope.ServiceProvider.GetRequiredService<ITwitchApiProxy>();
_client = _scope.ServiceProvider.GetRequiredService<ITwitchClientProxy>();
_client.AddDisconnectedCallback(OnTwitchClientDisconected);
_chatMessageConsumer = new TwitchChatMessageMonitorConsumer(_db, _api, _receivedMessageProcessingQueue);
}

/// <summary>
/// Called when the twitch client is disconnected.
/// </summary>
private void OnTwitchClientDisconected() {
_log.Info("Twitch Client Disconnected, exiting app");
Environment.Exit(0);
}

/// <summary>
/// The execute called by the .NET runtime.
/// </summary>
Expand Down