Documentation ¶
Index ¶
- Constants
- func BootWithGAE(path string, port string)
- func BootWithUpdate(path string)
- func Download(message *tgbotapi.Message) (able tgbotapi.Chattable)
- func HookMessage(update tgbotapi.Update, ct chan<- tgbotapi.Chattable)
- func InitBoot(botapi *tgbotapi.BotAPI)
- func InitDB(name string, fns ...func(db *xorm.Engine)) (e error)
- func List(message *tgbotapi.Message) (ct []tgbotapi.Chattable)
- func LoadProperty(pathname string) error
- func Recognition(message *tgbotapi.Message, id string) (able tgbotapi.Chattable, e error)
- func RunRecognition(ctx context.Context, path string) (result []string, e error)
- func ShowDatabaseSQL() func(engine *xorm.Engine)
- func Video(message *tgbotapi.Message, s string) (ct []tgbotapi.Chattable)
- type Property
Constants ¶
View Source
const DefaultPoint = 0.43
DefaultPoint ...
View Source
const LocalURL = "http://localhost:8080/ipfs/"
LocalURL ...
View Source
const ServerURL = "https://ipfs.io/ipfs/"
ServerURL ...
View Source
const WhiteSpace = " "
WhiteSpace ...
Variables ¶
This section is empty.
Functions ¶
func HookMessage ¶
HookMessage ...
func Recognition ¶
Recognition ...
func RunRecognition ¶
RunRecognition ...
func ShowDatabaseSQL ¶
Types ¶
type Property ¶
type Property struct { Welcome string `json:"welcome"` GroupName string `json:"group_name"` BotName string `json:"bot_name"` Host string `json:"host"` HookAddress string `json:"hook_address"` Token string `json:"token"` Download string `json:"download"` Recognition string `json:"recognition"` Database string `json:"database"` Point float64 `json:"point"` RecognitionCMD string `json:"recognition_cmd"` KnownPath string `json:"known_path"` Rule string `json:"rule"` LocalURL string `json:"local_url"` }
Property ...
Click to show internal directories.
Click to hide internal directories.