Kirneh / Auto Claim Twitch Channel Bonus Points

// ==UserScript==
// @name         Auto Claim Twitch Channel Bonus Points
// @namespace    http://twitter.com/Kirnehx
// @homepageURL  http://twitter.com/Kirnehx
// @supportURL   https://openuserjs.org/scripts/Kirneh/Auto_Claim_Twitch_Channel_Bonus_Points/issues
// @downloadURL  https://openuserjs.org/install/Kirneh/Auto_Claim_Twitch_Channel_Bonus_Points.user.js
// @updateURL    https://openuserjs.org/meta/Kirneh/Auto_Claim_Twitch_Channel_Bonus_Points.meta.js
// @version      0.2.1
// @description  Automaticly claims twitch channel bonus points
// @author       Kirneh
// @match        https://www.twitch.tv/*
// @grant        none
// @license      MIT
// ==/UserScript==

let AutoClaim = setInterval(() => {
  var box = document.querySelectorAll(".community-points-summary button");

  if (box.length > 1) {
    console.log("[AutoClaim] Claimed bonus points");
    box[1].click();
  }
}, 10000);

console.log("[AutoClaim] AutoClaim Initialized");