Support dice messages
This commit is contained in:
parent
6f4cd5547a
commit
d2f35075e3
|
@ -486,6 +486,9 @@ func (c *Client) messageToText(message *client.Message) string {
|
|||
contact.Contact.Vcard,
|
||||
jid,
|
||||
)
|
||||
case client.TypeMessageDice:
|
||||
dice, _ := message.Content.(*client.MessageDice)
|
||||
return fmt.Sprintf("%s 1d6: [%v]", dice.Emoji, dice.Value)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("unknown message (%s)", message.Content.MessageContentType())
|
||||
|
|
Loading…
Reference in a new issue