From ed3be84e0147fc8beda9ee6b75c2aeeb55562b6e Mon Sep 17 00:00:00 2001 From: Eduardo Date: Thu, 28 Mar 2024 20:41:02 +0100 Subject: [PATCH] created the conversational bit! --- conversacional.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 conversacional.go 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 +} -- 2.30.2