commands

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCustomCommand

func CreateCustomCommand(
	feishuClient feishu.Client,
	chatgptClient chatgpt.Client,
	cfg *config.Config,
) *chatbot.Command

func CreateDrawCommand

func CreateDrawCommand(
	feishuClient feishu.Client,
	chatgptClient chatgpt.Client,
) *chatbot.Command

func CreateMessageCommand

func CreateMessageCommand(
	feishuClient feishu.Client,
	chatgptClient chatgpt.Client,
	cfg *config.Config,
) *chatbot.Command

func CreateModelCommand

func CreateModelCommand(
	feishuClient feishu.Client,
	chatgptClient chatgpt.Client,
	cfg *config.Config,
) *chatbot.Command

func CreateOfflineCommand

func CreateOfflineCommand(
	feishuClient feishu.Client,
	chatgptClient chatgpt.Client,
	cfg *config.Config,
) *chatbot.Command

func CreateOnlineCommand

func CreateOnlineCommand(
	feishuClient feishu.Client,
	chatgptClient chatgpt.Client,
	cfg *config.Config,
) *chatbot.Command

func CreatePingCommand

func CreatePingCommand(
	feishuClient feishu.Client,
	chatgptClient chatgpt.Client,
) *chatbot.Command

func CreateResetCommand

func CreateResetCommand(
	feishuClient feishu.Client,
	chatgptClient chatgpt.Client,
	cfg *config.Config,
) *chatbot.Command

Types

type TimeConsumer added in v1.10.5

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

func NewTimeConsumer added in v1.10.5

func NewTimeConsumer() *TimeConsumer

func (*TimeConsumer) Consume added in v1.10.5

func (c *TimeConsumer) Consume() *TimeDuration

func (*TimeConsumer) Start added in v1.10.5

func (c *TimeConsumer) Start()

type TimeDuration added in v1.10.5

type TimeDuration struct {
	Duration time.Duration
}

func (*TimeDuration) String added in v1.10.5

func (d *TimeDuration) String() string

Jump to

Keyboard shortcuts

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