processing

package
v0.0.0-...-af64693 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessData

type ProcessData struct {
	Static              *StaticProccessStructs
	Command             string // first part of command without slash(/)
	Message             string // parameters of command or plain message
	ChatId              int64
	UserId              int64
	UserName            string
	AllMembersAreAdmins bool
}

type StaticConfiguration

type StaticConfiguration struct {
	DefaultLanguage string
	ExtendedLog     bool
}

type StaticProccessStructs

type StaticProccessStructs struct {
	Config      *StaticConfiguration
	Chat        chat.Chat
	Db          *database.Database
	Trans       i18n.TranslateFunc
	CachedWords map[int64][]string
}

type UserState

type UserState int
const (
	Normal UserState = iota
	WaitingText
	WaitingVariants
	WaitingRules
)

Jump to

Keyboard shortcuts

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