created the conversational bit!
authorEduardo <[email protected]>
Thu, 28 Mar 2024 19:41:02 +0000 (20:41 +0100)
committerEduardo <[email protected]>
Thu, 28 Mar 2024 19:41:02 +0000 (20:41 +0100)
conversacional.go [new file with mode: 0644]

diff --git a/conversacional.go b/conversacional.go
new file mode 100644 (file)
index 0000000..4708131
--- /dev/null
@@ -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
+}