projects
/
sylphiette-bot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7626d1e
)
created the conversational bit!
author
Eduardo
<
[email protected]
>
Thu, 28 Mar 2024 19:41:02 +0000
(20:41 +0100)
committer
Eduardo
<
[email protected]
>
Thu, 28 Mar 2024 19:41:02 +0000
(20:41 +0100)
conversacional.go
[new file with mode: 0644]
patch
|
blob
diff --git a/conversacional.go
b/conversacional.go
new file mode 100644
(file)
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
+}