mirror of https://github.com/velour/catbase.git
30 lines
596 B
Go
30 lines
596 B
Go
// © 2013 the CatBase Authors under the WTFPL. See AUTHORS for the list of authors.
|
|
|
|
package msg
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/velour/catbase/bot/user"
|
|
)
|
|
|
|
type Log Messages
|
|
type Messages []Message
|
|
|
|
type Message struct {
|
|
ID string
|
|
User *user.User
|
|
// With Slack, channel is the ID of a channel
|
|
Channel string
|
|
// With slack, channelName is the nice name of a channel
|
|
ChannelName string
|
|
Body string
|
|
IsIM bool
|
|
Raw interface{}
|
|
Command bool
|
|
Action bool
|
|
Time time.Time
|
|
Host string
|
|
AdditionalData map[string]string
|
|
}
|