check error
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
stryan 2023-05-14 17:39:08 -04:00
parent 4938f28ace
commit de2e8d014a

View File

@ -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)