From: Eduardo Date: Thu, 28 Mar 2024 19:41:29 +0000 (+0100) Subject: whos on roles? conversation part X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=b3b15ee279de7f05722a7f635607d9ac00b7f55f;p=sylphiette-bot.git whos on roles? conversation part --- diff --git a/telegram.go b/telegram.go index e4705d9..106eea9 100644 --- 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!")