Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
485 B
6
Indexable
var parsedData = response.data;
        var allWords = "";
        
        for (var i = 0; i < parsedData.word_pages.length; i++) {
          var wordPage = parsedData.word_pages[i];
          for (var j = 0; j < wordPage.word_list.length; j++) {
            wordCount = wordPage.word_list[j].word.length
            allWords += "\n["+wordCount+"]> " + wordPage.word_list[j].word;
          }
        }
        api.sendMessage(`Words from "${args[0]}"\n${allWords}`, threadID, msgID);