Skip to content

Commit

Permalink
add extra attributes to gowon.message
Browse files Browse the repository at this point in the history
  • Loading branch information
shanedabes committed Jul 19, 2022
1 parent c73579a commit ec869e1
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions message.go
Expand Up @@ -8,12 +8,19 @@ import (
)

type Message struct {
Module string `json:"module"`
Msg string `json:"msg"`
Nick string `json:"nick,omitempty"`
Dest string `json:"dest"`
Command string `json:"command"`
Args string `json:"args"`
Module string `json:"module"`
Nick string `json:"nick,omitempty"`
Code string `json:"code"`
Raw string `json:"raw"`
Host string `json:"host"`
Source string `json:"source"`
User string `json:"user"`
Arguments []string `json:"arguments"`
Tags map[string]string `json:"tags"`
Msg string `json:"msg,omitempty"`
Dest string `json:"dest,omitempty"`
Command string `json:"command,omitempty"`
Args string `json:"args,omitempty"`
}

const ErrorMessageParseMsg = "message couldn't be parsed as message json"
Expand Down

0 comments on commit ec869e1

Please sign in to comment.