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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public class BestCheapViewers : AChatRule {
/// </summary>
public readonly string[] EXPECTED = [
"best viewers on",
"cheap viewers on"
"cheap viewers on",
"cheap folloewrs on",
"do you want more viewers and to rank higher on the twitch list? you can visit the website"
];

/// <inheritdoc />
Expand Down
4 changes: 3 additions & 1 deletion src/Nullinside.Api.TwitchBot/ChatRules/Naked.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Nullinside.Api.TwitchBot.ChatRules;
/// </summary>
public class Naked : AChatRule {
private const string _spam = "Want to see her naked?";
private const string _spam2 = "Want to see me naked?";

/// <inheritdoc />
public override bool ShouldRun(TwitchUserConfig config) {
Expand All @@ -21,7 +22,8 @@ public override bool ShouldRun(TwitchUserConfig config) {
public override async Task<bool> Handle(string channelId, TwitchApiProxy botProxy, ChatMessage message,
NullinsideContext db, CancellationToken stoppingToken = new()) {
if (message.IsFirstMessage &&
message.Message.TrimStart().StartsWith(_spam, StringComparison.InvariantCultureIgnoreCase)) {
(message.Message.TrimStart().StartsWith(_spam, StringComparison.InvariantCultureIgnoreCase) ||
message.Message.TrimStart().StartsWith(_spam2, StringComparison.InvariantCultureIgnoreCase))) {
await BanAndLog(channelId, botProxy, new[] { (message.UserId, message.Username) },
"[Bot] Spam (Naked)", db, stoppingToken);
return false;
Expand Down
Loading