title: Is there a way to check if the user is streaming and display it?
body: <p>I've tried to make a bot that checks if certain user is streaming but for some reason it doesn't go further than check 3.</p>
  <pre class="lang-js prettyprint-override"><code>client.on(&quot;presenceUpdate&quot;, (oldPresence, newPresence) =&gt; {
      if(newPresence.user.id === config.LORD_ID) {
          console.log(&quot;Check 2 passed&quot;)
      if(newPresence.guild.id === config.STRATZ_SERVER_ID) {
          console.log(&quot;Check 3 passed&quot;)
      if (!newPresence.activities) return false;
      newPresence.activities.forEach(activity =&gt; {
          if (activity.type == &quot;STREAMING&quot;) {
              console.log(&quot;Check 4 passed&quot;)
              if (canNotifyStreaming) {
                  console.log(&quot;Check 5 passed&quot;)
                  if(activity.url.startsWith(&quot;www.youtube.com&quot;)) {
                      console.log(&quot;Final check passed&quot;)
                      itsYOUTUBESTREAMTIME();
                      canNotifyStreaming = false;
                      setTimeout(() =&gt; { canNotifyStreaming = true; }, 86400000);
                  } else if(activity.url.startsWith(&quot;www.twitch.tv&quot;)) {
                      console.log(&quot;Final check for twitch passed&quot;)
                      itsSTREAMTIME();
                      canNotifyStreaming = false;
                      setTimeout(() =&gt; { canNotifyStreaming = true; }, 86400000);
                  }
              }
          };
      });
     }
   }
  });
  </code></pre>
  <p>Is there a reason that the code refuses to go further than check 3?</p>
  <p>Note: sorry if the problem is stupid, i've only coded with discord.js and node.js in general only for 3 months</p>