chatbot

package
v0.0.0-...-4a6ce05 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHMAC

func GenerateHMAC(message, key string) string

Types

type Bot

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

func NewBot

func NewBot(env *conf.Env) (*Bot, error)

func (*Bot) ListUsers

func (b *Bot) ListUsers(ctx context.Context, cursor func(int64)) error

func (*Bot) Start

func (b *Bot) Start(ctx context.Context) error

func (*Bot) SyncUser

func (b *Bot) SyncUser(ctx context.Context, user *UserStatus) error

type UserStatus

type UserStatus struct {
	ID           int64
	Email        string
	ActiveMember bool
}

Jump to

Keyboard shortcuts

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