Advertisement
Parisito1234

GSheet Nightbot - Felwinter's Lie

May 14th, 2020
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var obj = JSON.parse(raw);
  2. let e = [];
  3. res = '';
  4. len1 = parseInt(obj.feed.entry.length);
  5. len2 = len1 - 1;
  6. for (i = 0; i < len1; i++) {
  7.     cc = obj.feed.entry[i].gs$cell;
  8.     if (cc.$t.includes("/Nightbot")) {
  9.         len2 = i;
  10.     }
  11.     if (i > len2) {
  12.         res = res.concat(cc.$t);
  13.     }
  14. }
  15. res;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement