Created
January 21, 2019 14:58
-
-
Save PeterBerthelsen/7ef9924b86ae880d1b257eadad46597f to your computer and use it in GitHub Desktop.
OrthoBot Reply Processing
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
//////////////////////////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