wicked

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package wicked is a plugin for bawt that facilitates conferences over Slack

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision struct {
	ID        string
	Timestamp time.Time
	AddedBy   *User
	Text      string
	Plusplus  []*Plusplus
}

func (*Decision) IsProposition

func (decision *Decision) IsProposition() bool

func (*Decision) RecordPlusplus

func (decision *Decision) RecordPlusplus(user *User)

type Meeting

type Meeting struct {
	ID           string
	CreatedBy    *User
	Channel      string
	ChannelID    string
	Goal         string
	TimeLimit    time.Duration
	StartTime    time.Time
	EndTime      time.Time
	Logs         []*Message
	Decisions    []*Decision
	Refs         []*Reference
	Participants []*User
	// contains filtered or unexported fields
}

func NewMeeting

func NewMeeting(id string, user *slack.User, goal string, bot *bawt.Bot, channel *bawt.Channel, uuidNow time.Time) *Meeting

func (*Meeting) AddDecision

func (meeting *Meeting) AddDecision(user *User, text string, uuidNow time.Time) *Decision

func (*Meeting) AddReference

func (meeting *Meeting) AddReference(user *User, text string, uuidNow time.Time) *Reference

func (*Meeting) Conclude

func (meeting *Meeting) Conclude()

func (*Meeting) GetDecisionByID

func (meeting *Meeting) GetDecisionByID(id string) *Decision

func (*Meeting) ImportUser

func (meeting *Meeting) ImportUser(user *slack.User) *User

func (*Meeting) NextDecisionID

func (meeting *Meeting) NextDecisionID() string

type Message

type Message struct {
	From      *User
	Timestamp time.Time
	Text      string
}

TODO: add highlight

type Plusplus

type Plusplus struct {
	From *User
}

func NewPlusplus

func NewPlusplus(from *User) *Plusplus

type Reference

type Reference struct {
	AddedBy   *User
	Timestamp time.Time
	URL       string
	Text      string
}

type User

type User struct {
	Email    string
	Fullname string
	PhotoURL string
}

type Wicked

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

Wicked stores the configuration for wicked

func (*Wicked) ChatHandler

func (w *Wicked) ChatHandler(listen *bawt.Listener, msg *bawt.Message)

func (*Wicked) FindAvailableRoom

func (w *Wicked) FindAvailableRoom(fromRoom string) *bawt.Channel

func (*Wicked) HelpInfo added in v0.0.4

func (w *Wicked) HelpInfo() (name string, description string)

func (*Wicked) InitPlugin

func (w *Wicked) InitPlugin(bot *bawt.Bot)

func (*Wicked) InitWebPlugin

func (wicked *Wicked) InitWebPlugin(bot *bawt.Bot, privRouter *mux.Router, pubRouter *mux.Router)

func (*Wicked) NextMeetingID

func (w *Wicked) NextMeetingID() string

Jump to

Keyboard shortcuts

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