feat(mode): Jev solo/conspiracy/split classification on nest requests (#22)

This commit is contained in:
Smokey committed 2026-10-28 05:26:30 -06:00
1 parent 5b3701d6e2
commit 9205cece65
3 files changed
+131 -47

No files matched your search

+12 -9
View File
@@ -13,15 +13,18 @@ import (
// contract. IDs are assigned by the store; MsgID is "<nest_id>-<n>" and is
// what the contract exposes.
type Message struct {
NestID string `json:"nest_id"`
ID int `json:"id"`
Kind string `json:"kind"`
Author string `json:"author"`
Text string `json:"text"`
To string `json:"to,omitempty"`
RefersTo string `json:"refers_to,omitempty"`
TaggedBy string `json:"tagged_by,omitempty"`
Timestamp string `json:"ts"`
NestID string `json:"nest_id"`
ID int `json:"id"`
Kind string `json:"kind"`
Author string `json:"author"`
Text string `json:"text"`
To string `json:"to,omitempty"`
RefersTo string `json:"refers_to,omitempty"`
TaggedBy string `json:"tagged_by,omitempty"`
Mode string `json:"mode,omitempty"` // solo | conspiracy | split (requests only, Epic C)
ModeTagged string `json:"mode_tagged_by,omitempty"`
Invited int `json:"invited,omitempty"`
Timestamp string `json:"ts"`
}
func (m Message) MsgID() string { return fmt.Sprintf("%s-%d", m.NestID, m.ID) }