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:
ed3be84
)
whos on roles? conversation part
author
Eduardo
<
[email protected]
>
Thu, 28 Mar 2024 19:41:29 +0000
(20:41 +0100)
committer
Eduardo
<
[email protected]
>
Thu, 28 Mar 2024 19:41:29 +0000
(20:41 +0100)
telegram.go
patch
|
blob
|
history
diff --git
a/telegram.go
b/telegram.go
index e4705d9f87fecebf1ffced32e226e6508eef3b37..106eea95accb20dd34ae234ddab414452c765bcd 100644
(file)
--- a/
telegram.go
+++ b/
telegram.go
@@
-140,6
+140,8
@@
func handleConversation(chatId int64, text string) error {
var regexRequest = regexp.MustCompile(`(?i)\bRequest\b`)
switch {
+ case onlineOnRoles(text):
+ err = sendMenu(chatId)
case text == "hola",
text == "hola sylph":
err = sendTelegramMessage(chatId, "Hola!")