check error
continuous-integration/drone/push Build is passing Details

This commit is contained in:
stryan 2023-05-14 17:39:08 -04:00
parent 4938f28ace
commit de2e8d014a
1 changed files with 4 additions and 0 deletions

View File

@ -226,6 +226,10 @@ func main() {
//check to see if already embeded
var content YoutubeWidget
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 v.AnnounceLive {
client.SendText(room, v.LiveMsg)