2016-04-01 14:20:03 +00:00
|
|
|
// © 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 {
|
2019-06-07 16:19:24 +00:00
|
|
|
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
|
2019-06-06 14:33:50 +00:00
|
|
|
IsIM bool
|
2019-06-07 16:19:24 +00:00
|
|
|
Raw interface{}
|
2018-05-02 11:02:04 +00:00
|
|
|
Command bool
|
|
|
|
Action bool
|
|
|
|
Time time.Time
|
|
|
|
Host string
|
2017-06-17 20:20:06 +00:00
|
|
|
AdditionalData map[string]string
|
2016-04-01 14:20:03 +00:00
|
|
|
}
|