forked from adam/discord-bot-shtik
"just google it" general snark disabled
All checks were successful
gitea/vassago/pipeline/head This commit looks good
All checks were successful
gitea/vassago/pipeline/head This commit looks good
"temporarily"
This commit is contained in:
parent
b84e47344b
commit
a63a3fcb58
@ -20,11 +20,15 @@ public class GeneralSnarkGooglit : Behavior
|
|||||||
|
|
||||||
public override bool ShouldAct(Message message)
|
public override bool ShouldAct(Message message)
|
||||||
{
|
{
|
||||||
if(Behaver.Instance.IsSelf(message.Author.Id))
|
return false;
|
||||||
return false;
|
|
||||||
|
|
||||||
return Regex.IsMatch(message.Content, $"(just )?google( (it|that|things|before))?\\b", RegexOptions.IgnoreCase);
|
|
||||||
}
|
}
|
||||||
|
// 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);
|
||||||
|
// }
|
||||||
|
|
||||||
public override async Task<bool> ActOn(Message message)
|
public override async Task<bool> ActOn(Message message)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user