bot

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainMenuState = "m00_00"

	NewPriceAgentState  = "m01_00"
	ViewPriceAgentState = "m01_01"

	ShowWishlistPriceagentsState = "m02_00"
	ShowProductPriceagentsState  = "m02_01"

	ShowPriceagentDetailState = "m03_00"

	ChangePriceagentSettingsState = "m04_00"
	SetNotificationAlwaysState    = "m04_01"
	SetNotificationBelowState     = "m04_02"
	DeletePriceagentConfirmState  = "m04_98"
	DeletePriceagentState         = "m04_99"

	ShowPriceHistoryState     = "m05_00"
	UpdateHistoryGraph1State  = "m05_01"
	UpdateHistoryGraph3State  = "m05_03"
	UpdateHistoryGraph6State  = "m05_06"
	UpdateHistoryGraph12State = "m05_12"

	StopConfirmState = "m06_01"
	StopCancelState  = "m06_02"
)
View Source
const (
	Menu0 = "00"
	Menu1 = "01"
	Menu2 = "02"
)

Variables

View Source
var ErrOutOfRange = errors.New("price is out of range")

Functions

func Start

func Start(botConfig config.Config)

Start is the main function to start the bot.

func UpdatePricesJob

func UpdatePricesJob(updateFrequency time.Duration)

UpdatePricesJob is a job that updates prices of all price agents at a given interval.

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