package commands import ( "fmt" lucifer3 "git.aiterp.net/lucifer3/server" "github.com/google/uuid" ) type Assign struct { ID *uuid.UUID `json:"id"` Match string `json:"match"` Effect lucifer3.Effect `json:"effect"` } func (c Assign) CommandDescription() string { if c.ID != nil { return fmt.Sprintf("Assign(%s, %s, id=%s)", c.Match, c.Effect.EffectDescription(), *c.ID) } else { return fmt.Sprintf("Assign(%s, %s)", c.Match, c.Effect.EffectDescription()) } }