Skip to content

Instantly share code, notes, and snippets.

@PeterBerthelsen
Created January 21, 2019 14:58
Show Gist options
  • Save PeterBerthelsen/7ef9924b86ae880d1b257eadad46597f to your computer and use it in GitHub Desktop.
Save PeterBerthelsen/7ef9924b86ae880d1b257eadad46597f to your computer and use it in GitHub Desktop.
OrthoBot Reply Processing
//////////////////////////Reply/Thread////////////////////////////////////////////////////////
if (IdInResponseTo == 0 || IdInResponseTo == null) { //If no reply is provided...
console.log("No reply ID provided."); //log no reply
} else { //If Reply (or thread) is set up...
var ReplyId = IdInResponseTo; //variable for replies, passed to .sendTweet
console.log("In response to: " + ReplyId) //log response to
params.in_reply_to_status_id = ReplyId; //send with reply
params.auto_populate_reply_metadata = true; //auto-mentions previous user (for thread)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment