forked from adam/discord-bot-shtik
modified "just google it" trigger
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good
see #30
This commit is contained in:
parent
6764acc55f
commit
0506d331c5
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user