util

package
v0.0.0-...-6bd22f4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

util/slack_util.go

Index

Constants

View Source
const (
	MaxLabels  = 3
	LabelsFile = "logs/labels.txt"
)

Variables

View Source
var (
	GlobalLabels mapset.Set[string]
)

Functions

func AddEntryToDatabase

func AddEntryToDatabase(name, dateCreated, labelTags, urlLink, summary string) error

func CallOllama

func CallOllama(input string, history []string) (string, error)

func HandleAppMentionEvent

func HandleAppMentionEvent(client *slack.Client, event *slackevents.AppMentionEvent)

HandleAppMentionEvent processes the AppMentionEvent and generates a response.

func InitLLM

func InitLLM()

func InitNotionClient

func InitNotionClient()

func InitializeSlackClient

func InitializeSlackClient() error

InitializeSlackClient initializes the Slack client and Socket Mode client.

func PrintDebug

func PrintDebug(str string)

func RunSlackServer

func RunSlackServer() error

RunSlackServer starts handling Slack events via Socket Mode.

func SetBotID

func SetBotID(id string)

SetBotID sets the bot's ID once during initialization.

func SetVerbose

func SetVerbose(v bool)

func WebScraper

func WebScraper(url string) (string, string, error)

WebScraper function (to be implemented)

Types

This section is empty.

Jump to

Keyboard shortcuts

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