This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tweetThread(stringToTweet,delim,img,r){ //pass a string variable with additional option to parse (used for bookending tweets) | |
//////////////////////////Variables//////////////////////////////////////////////////////// | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); //spreadsheet | |
var twtMax = 280; //Character limit for Twitter (variable in case it changes) | |
var tweets = new Array(0); //create final array to populate with tweets | |
var total = ""; //variable for 'total' tweet-length section if parsing is required | |
var start = 0; //starting character for .substring() function, default 0 | |
var excess = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function readingThread(){ | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); //Spreadsheet | |
var d = new Date(); //set date | |
var h = d.getHours(); //set hour | |
var m = d.getMinutes(); //set minutes | |
var delim = "|"; | |
console.log("initiating readingThread"); | |
console.log("Hour defined: " + h); | |
console.log("Minute defined: " + m); | |
if (h < 2) { |
OlderNewer