catbase/bot/msg/message.go

30 lines
588 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 any
Command bool
Action bool
Time time.Time
Host string
AdditionalData map[string]string
}