From: Eduardo Date: Thu, 28 Mar 2024 19:41:02 +0000 (+0100) Subject: created the conversational bit! X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=ed3be84e0147fc8beda9ee6b75c2aeeb55562b6e;p=sylphiette-bot.git created the conversational bit! --- diff --git a/conversacional.go b/conversacional.go new file mode 100644 index 0000000..4708131 --- /dev/null +++ b/conversacional.go @@ -0,0 +1,21 @@ +package main + +import ( + "strings" +) + +func onlineOnRoles(s string) bool { + if !strings.Contains(s, "quien") { + return false + } + + if !strings.Contains(s, "roles") && !strings.Contains(s, "roleito") { + return false + } + + if !strings.Contains(s, "online") && !strings.Contains(s, "linea") && !strings.Contains(s, "esta") { + return false + } + + return true +}