interaction

package
v0.0.0-...-aa48d00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2019 License: GPL-3.0 Imports: 16 Imported by: 1

Documentation

Overview

Package interaction contains the functions related to interaction with the user

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnswerDeGoma

func AnswerDeGoma(s string) (res string)

AnswerDeGoma returns "de goma" as answer to "mojon"

func CheckCion

func CheckCion(s string) (res string)

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 CheckPs

func CheckPs(s string) (res string)

CheckPs returns pspsps to a ps

func Reply

func Reply() string

Reply returns a phrase randomly

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

func Who

func Who(bot *tgbotapi.BotAPI, u tgbotapi.Update)

Who identifies when someone

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL