Documentation ¶
Overview ¶
Package interaction contains the functions related to interaction with the user
Index ¶
- func AnswerDeGoma(s string) (res string)
- func CheckCion(s string) (res string)
- func CheckDisable(bot *tgbotapi.BotAPI, u tgbotapi.Update) (status bool)
- func CheckPs(s string) (res string)
- func Reply() string
- func StartPoleLogic() <-chan bool
- func WelcomeInGroup(bot *tgbotapi.BotAPI, u tgbotapi.Update)
- func Who(bot *tgbotapi.BotAPI, u tgbotapi.Update)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnswerDeGoma ¶
AnswerDeGoma returns "de goma" as answer to "mojon"
func CheckCion ¶
CheckCion checks if there is a valid word terminated in "cion" in order to modify it and add portuguese termination
func CheckDisable ¶
func CheckDisable(bot *tgbotapi.BotAPI, u tgbotapi.Update) (status bool)
Check intention to disable and defer enable
func StartPoleLogic ¶
func StartPoleLogic() <-chan bool
StartPoleLogic starts the logic to send a signal at 00:00, when it's started calculates the time until the next day and after that blocks in periods of 24h.
func WelcomeInGroup ¶
func WelcomeInGroup(bot *tgbotapi.BotAPI, u tgbotapi.Update)
Send a message when the bot has been added to a group
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.