This commit is contained in:
parent
4938f28ace
commit
de2e8d014a
4
main.go
4
main.go
@ -226,6 +226,10 @@ func main() {
|
|||||||
//check to see if already embeded
|
//check to see if already embeded
|
||||||
var content YoutubeWidget
|
var content YoutubeWidget
|
||||||
err = client.StateEvent(room, event.NewEventType("im.vector.modular.widgets"), "dimension-m.video-simp-"+v.Name, &content)
|
err = client.StateEvent(room, event.NewEventType("im.vector.modular.widgets"), "dimension-m.video-simp-"+v.Name, &content)
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("error getting state event in room %v: %v", room, err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
if content.ID == "" {
|
if content.ID == "" {
|
||||||
if v.AnnounceLive {
|
if v.AnnounceLive {
|
||||||
client.SendText(room, v.LiveMsg)
|
client.SendText(room, v.LiveMsg)
|
||||||
|
Loading…
Reference in New Issue
Block a user