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:
c47d631
)
added a bunch of sylph commands all going to the conversational part
author
Eduardo
<
[email protected]
>
Thu, 28 Mar 2024 19:37:41 +0000
(20:37 +0100)
committer
Eduardo
<
[email protected]
>
Thu, 28 Mar 2024 19:37:41 +0000
(20:37 +0100)
telegram.go
patch
|
blob
|
history
diff --git
a/telegram.go
b/telegram.go
index 1a36def827e9bf832ddcd44bfe381bc9525be0be..4dc91080780f075543cd3a8c37fa0f8ed659b4d6 100644
(file)
--- a/
telegram.go
+++ b/
telegram.go
@@
-115,8
+115,12
@@
func handleCommand(chatId int64, command string) error {
case "/help":
err = sendTelegramMessage(chatId, "Currently my only comands are /start, /help and /sylph\n I'm a work in progress, please don't tease me.")
- case "/sylph":
- err = sendTelegramMessage(chatId, "Hola!")
+ case "/s",
+ "/sylph",
+ "/sylphi",
+ "/sylphie",
+ "/sylphiette":
+ err = handleConversation(chatId, text)
}
return err