threader

package module
v0.0.0-...-d459394 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: MIT Imports: 7 Imported by: 0

README

threader

Plugin for the Slick bot framework to track threads

Documentation

Overview

Package threader provides a Slick plugin that keeps track of threads in Slack and presents a way of quering those threads. Returned threads have the original message and a link to open the thread.

Right now, the only query that works is the word "threads". When said to the bot in a private message, the bot will reply with a list of threads that had new messages since the last time the user asked.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brain

type Brain struct {
	TsToThread map[string]*Thread
	Messages   []*Message
	UserSeen   map[string]string
}

Brain is the main serialized data structure for this plugin. It tracks threads by timestamp, messages that are in threads and how long ago a user requested thread information.

type Message

type Message struct {
	Channel, Text, Ts, ThreadTs string
}

Message is a smaller data structure that contains information required to track messages that belong to a thread.

type Thread

type Thread struct {
	Channel, Text, Ts, LastMsgTs string
}

Thread is a smaller data structure that contains just the information required to track threads

Jump to

Keyboard shortcuts

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