Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatGptClient ¶ added in v0.2.3
ChatGptClient defines an interface for interacting with ChatGPT
type ImageMetadataDescription ¶ added in v0.10.11
type RandomGenerator ¶ added in v0.2.3
RandomGenerator defines an interface for random number generation
type RealChatGptClient ¶ added in v0.2.3
type RealChatGptClient struct{}
RealChatGptClient implements ChatGptClient using the actual OpenAI API
type RealRandomGenerator ¶ added in v0.2.3
type RealRandomGenerator struct {
// contains filtered or unexported fields
}
RealRandomGenerator implements RandomGenerator using the standard library
func NewRealRandomGenerator ¶ added in v0.2.3
func NewRealRandomGenerator() *RealRandomGenerator
func (*RealRandomGenerator) Intn ¶ added in v0.2.3
func (r *RealRandomGenerator) Intn(n int) int
type ReplyPlugin ¶
type ReplyPlugin struct {
// contains filtered or unexported fields
}
func (*ReplyPlugin) Process ¶
func (p *ReplyPlugin) Process(message *telebot.Message)
func (*ReplyPlugin) SetDependencies ¶ added in v0.2.3
func (p *ReplyPlugin) SetDependencies(random RandomGenerator, chatClient ChatGptClient)
SetDependencies allows injecting dependencies for testing
func (*ReplyPlugin) Start ¶
func (p *ReplyPlugin) Start(_ interface{})
Click to show internal directories.
Click to hide internal directories.