|
|
@ -122,11 +122,15 @@ class tweetCommand extends Command {
|
|
|
|
status: text
|
|
|
|
status: text
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (data) {
|
|
|
|
if (data && args.text) {
|
|
|
|
options = {
|
|
|
|
options = {
|
|
|
|
status: text,
|
|
|
|
status: text,
|
|
|
|
media_ids: new Array(data.media_id_string)
|
|
|
|
media_ids: new Array(data.media_id_string)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
} else if (data) {
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
media_ids: new Array(data.media_id_string)
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
T.post('statuses/update', options, function (err, response) {
|
|
|
|
T.post('statuses/update', options, function (err, response) {
|
|
|
|