send m.notice instead of m.text

This commit is contained in:
Hubert Chathi 2016-09-27 21:32:08 -04:00
parent 7d9c09ac9f
commit e0acdabe53

View File

@ -18,7 +18,10 @@ class Matrix extends Adapter
if /^(f|ht)tps?:\/\//i.test(str)
@sendImage envelope, str
else
@client.sendTextMessage envelope.room, str
@client.sendMessage envelope.room, {
msgtype: "m.notice",
body: str
}
reply: (envelope, strings...) ->
for str in strings