diff options
author | teramako | 2011-03-26 17:35:43 +0900 |
---|---|---|
committer | teramako | 2011-03-26 17:35:43 +0900 |
commit | bad1a6955577c3bfc50248d908750bd9a7d51f6a (patch) | |
tree | 5ee3cadc3a44c185e98a7818d9f888072649b4c4 | |
parent | baeb74f8f133b09e41c0a3974081a4f8863d9271 (diff) | |
parent | 44db57c79d17caafb7cf08177bb496d8060d423b (diff) | |
download | vimperator-plugins-bad1a6955577c3bfc50248d908750bd9a7d51f6a.tar.bz2 |
Merge branch 'master' of git://github.com/t-f-m/vimperator-plugins into t-f-m-master
-rw-r--r-- | twittperator.js | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/twittperator.js b/twittperator.js index f548820..086de6e 100644 --- a/twittperator.js +++ b/twittperator.js @@ -54,6 +54,8 @@ let PLUGIN_INFO = Show @user's tweets. :tw[ittperator] {TweetText} Tweets {TweetText}. + :tw[ittperator] @user#id {TweetText} + Tweets a reply to @user. :tw[ittperator] RT @user#id: {refTweet} Does official retweet. :tw[ittperator] {TweetText} RT @user#id: {refTweet} @@ -113,6 +115,8 @@ let PLUGIN_INFO = @user のタイムラインを表示します。 :tw[ittperator] {TweetText} {TweetText}をポストします。 + :tw[ittperator] @user#id {TweetText} + @user への返信になります。 :tw[ittperator] RT @user#id: {refTweet} 公式RTになるはずです。 :tw[ittperator] {TweetText} RT @user#id: {refTweet} @@ -1222,7 +1226,7 @@ let PLUGIN_INFO = }; return p; })(); - { + {//jsonGet jsonPost jsonDelete の動的定義 'get post delete'.split(' ').forEach(function (name) { let newName = 'json' + name.replace(/^(.)(.*)/ , function(_, a, b) (a.toUpperCase() + b)); @@ -1364,7 +1368,7 @@ let PLUGIN_INFO = stop(); if (restartCount > 13) return liberator.echoerr("Twittperator: Gave up to connect to " + name + "..."); - liberator.echoerr("Twittperator: " + name + " will be restared..."); + liberator.echoerr("Twittperator: " + name + " will be restarted..."); // 試行済み回数^2 秒後にリトライ setTimeout(function() start(lastParams), Math.pow(2, restartCount) * 1000); restartCount++; @@ -2299,6 +2303,7 @@ let PLUGIN_INFO = let setting = let (gv = liberator.globalVariables) ({ useChirp: !!gv.twittperator_use_chirp, + allReplies: !!gv.twittperator_all_replies, autoStatusUpdate: !!parseInt(gv.twittperator_auto_status_update || 0), statusValidDuration: parseInt(gv.twitperator_status_valid_duration || 90), historyLimit: let (v = gv.twittperator_history_limit) (v === 0 ? 0 : (v || 1000)), @@ -2334,8 +2339,12 @@ let PLUGIN_INFO = Twittperator.loadPlugins(); - if (setting.useChirp) - ChirpUserStream.start(); + if (setting.useChirp){ + if(setting.allReplies) + ChirpUserStream.start({"replies":"all"}); + else + ChirpUserStream.start(); + } let trackWords = setting.trackWords || Store.get("trackWords"); if (trackWords) |