behaviors

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BehaviorHandler

type BehaviorHandler struct {
	Bot                    *telego.Bot
	LinkRegex, DirectRegex *regexp.Regexp
	GQLClient              *graphql.Client
	DB                     database.Database
}

func (BehaviorHandler) About

func (bh BehaviorHandler) About(chatID int64) error

func (BehaviorHandler) Add

func (bh BehaviorHandler) Add(chatID int64, messageID int) error

func (BehaviorHandler) DeleteRepo

func (bh BehaviorHandler) DeleteRepo(chatID int64, messageID int, data string) error

func (BehaviorHandler) FlipPreRelease

func (bh BehaviorHandler) FlipPreRelease(chatID int64, messageID int, repoIDwithOP string) error

func (BehaviorHandler) Menu

func (bh BehaviorHandler) Menu(chatID int64, messageID int) error

func (BehaviorHandler) SeeRepos added in v1.0.4

func (bh BehaviorHandler) SeeRepos(chatID int64, messageID, limit, page int) error

func (BehaviorHandler) SentRepo

func (bh BehaviorHandler) SentRepo(messageText string, messageID int, chatID int64) error

func (BehaviorHandler) Start

func (bh BehaviorHandler) Start(chatID int64) error

func (BehaviorHandler) UnknownCommand

func (bh BehaviorHandler) UnknownCommand(chatID int64) error

func (BehaviorHandler) UpdateRepos

func (bh BehaviorHandler) UpdateRepos(logger zap.SugaredLogger) []erroredRepo

Jump to

Keyboard shortcuts

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