strongo_bots_example_calculator

package module
v0.0.0-...-4e96425 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

README

bots-example-calculator

Calculator Messenger Bot - an open source demo to show off Strong Bots Framework

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BotsBy = bots.NewBotSettingsBy(
	telegram_bot.NewTelegramBot("StrongoCalcBot", "{TELEGRAM_BOT_EN_ID}:{TELEGRAM_BOT_EN_TOKEN}", SupportedLocalesByCode5[strongo.LOCALE_EN_US]),
	telegram_bot.NewTelegramBot("StrongoCalcRuBot", "{TELEGRAM_BOT_RU_ID}:{TELEGRAM_BOT_RU_ID}", SupportedLocalesByCode5[strongo.LOCALE_RU_RU]),
)
View Source
var CalculateCommand = bots.Command{
	Code:  "calculate",
	Title: "Calculate",
	Action: func(whc bots.WebhookContext) (bots.MessageFromBot, error) {
		return
	},
}
View Source
var HelpCommand = bots.Command{
	Code:  "help",
	Title: "Help",
	Action: func(whc bots.WebhookContext) (bots.MessageFromBot, error) {
		return
	},
}
View Source
var StartCommand = bots.Command{
	Code:  "start",
	Title: "Start",
	Action: func(whc bots.WebhookContext) (bots.MessageFromBot, error) {
		return
	},
}
View Source
var SupportedLocalesByCode5 = map[string]strongo.Locale{
	strongo.LOCALE_EN_US: strongo.LocaleEnUs,
	strongo.LOCALE_RU_RU: strongo.LocaleRuRu,
	strongo.LOCALE_IT_IT: strongo.LocaleItIt,
	strongo.LOCALE_ID_ID: strongo.LocaleIdId,
	strongo.LOCALE_DE_DE: strongo.LocaleDeDe,
	strongo.LOCALE_ES_ES: strongo.LocaleEsEs,
	strongo.LOCALE_FR_FR: strongo.LocaleFrFr,
	strongo.LOCALE_PT_PT: strongo.LocalePtPt,
	strongo.LOCALE_PT_BR: strongo.LocalePtBr,
	strongo.LOCALE_FA_IR: strongo.LocaleFaIr,
}

Functions

func Init

func Init(botHost bots.BotHost)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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