catbase/bot/msg/message.go

31 lines
598 B
Go
Raw Permalink Normal View History

// © 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
Kind int
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
IsIM bool
Raw any
2018-05-02 11:02:04 +00:00
Command bool
Action bool
Time time.Time
Host string
AdditionalData map[string]string
}