services

package
v0.0.0-...-661c384 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CMD_CommandToText = map[string]func(
	ctx context.Context,
	in string,
) string{
	`/gpt`:    handlers.ChatGPT,
	`/gemini`: handlers.GeminiAI,
}
View Source
var CMD_General = map[string]func() string{
	`/menu`: handlers.Menu,
	`/help`: handlers.Help,
}
View Source
var CMD_ImageToImage = map[string]func(
	client *whatsmeow.Client,
	img *waProto.ImageMessage,
	id string,
) ([]byte, string, error){
	`/buriq`: handlers.Buriq,
}

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Name   string
	Log    waLog.Logger
	Device *store.Device
}

func NewBot

func NewBot(botName string, botLog waLog.Logger, botDevice *store.Device) *Bot

func (*Bot) Start

func (b *Bot) Start()

type Store

type Store struct {
	Log     waLog.Logger
	DB      string
	Address string
}

func NewStore

func NewStore(dbName, dbAddress string, dbLog waLog.Logger) *Store

func (*Store) GetDevice

func (s *Store) GetDevice() *store.Device

Jump to

Keyboard shortcuts

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