modified "just google it" trigger
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good

see #30
This commit is contained in:
adam 2025-05-22 12:01:24 -04:00
parent 6764acc55f
commit 0506d331c5

View File

@ -20,15 +20,11 @@ public class GeneralSnarkGooglit : Behavior
public override bool ShouldAct(Message message)
{
if (Behaver.Instance.IsSelf(message.Author.Id))
return false;
}
// public override bool ShouldAct(Message message)
// {
// if(Behaver.Instance.IsSelf(message.Author.Id))
// return false;
// return Regex.IsMatch(message.Content, $"(just )?google( (it|that|things|before))?\\b", RegexOptions.IgnoreCase);
// }
return Regex.IsMatch(message.Content, $"(just )?google( (it|that|things|before))\\b", RegexOptions.IgnoreCase);
}
public override async Task<bool> ActOn(Message message)
{
@ -39,7 +35,7 @@ public class GeneralSnarkGooglit : Behavior
break;
case 1:
var results = "";
switch(Shared.r.Next(4))
switch (Shared.r.Next(4))
{
default:
results = "\"curious about the best <THING> in <CURRENT YEAR>? click here to find out\", then i clicked there to find out. They didn't know either.";