Documentation
¶
Overview ¶
util/slack_util.go
Index ¶
- Constants
- Variables
- func AddEntryToDatabase(name, dateCreated, labelTags, urlLink, summary string) error
- func CallOllama(input string, history []string) (string, error)
- func HandleAppMentionEvent(client *slack.Client, event *slackevents.AppMentionEvent)
- func InitLLM()
- func InitNotionClient()
- func InitializeSlackClient() error
- func PrintDebug(str string)
- func RunSlackServer() error
- func SetBotID(id string)
- func SetVerbose(v bool)
- func WebScraper(url string) (string, string, error)
Constants ¶
View Source
const ( MaxLabels = 3 LabelsFile = "logs/labels.txt" )
Variables ¶
View Source
var (
GlobalLabels mapset.Set[string]
)
Functions ¶
func AddEntryToDatabase ¶
func HandleAppMentionEvent ¶
func HandleAppMentionEvent(client *slack.Client, event *slackevents.AppMentionEvent)
HandleAppMentionEvent processes the AppMentionEvent and generates a response.
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 SetVerbose ¶
func SetVerbose(v bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.