client

package
v0.0.0-...-fe20bed Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotsResult

type BotsResult struct {
	Bots []struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"bots"`
}

type Flowbot

type Flowbot struct {
	// contains filtered or unexported fields
}

func NewFlowbot

func NewFlowbot(accessToken string) *Flowbot

func (*Flowbot) Agent

func (v *Flowbot) Agent(content types.AgentContent) (string, error)

func (*Flowbot) Bots

func (v *Flowbot) Bots() (*BotsResult, error)

func (*Flowbot) Help

func (v *Flowbot) Help() (*HelpResult, error)

func (*Flowbot) Pull

func (v *Flowbot) Pull() (*InstructResult, error)

type HelpResult

type HelpResult struct {
	Bots []struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"bots"`
}

type Instruct

type Instruct struct {
	No       string `json:"no"`
	Bot      string `json:"bot"`
	Flag     string `json:"flag"`
	Content  any    `json:"content"`
	ExpireAt string `json:"expire_at"`
}

type InstructResult

type InstructResult struct {
	Instruct []Instruct `json:"instruct"`
}

Jump to

Keyboard shortcuts

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