aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
authoranekos2010-12-08 21:19:02 +0900
committeranekos2010-12-08 21:36:31 +0900
commit0099079328c5a4cd363e295a79e870701d740142 (patch)
tree6b1ec7da7ebbc8531eef84f84e20888c32cd96ed /twittperator.js
parenta1a9f7ae53b03fd397de357929024cc21b72d46f (diff)
downloadvimperator-plugins-0099079328c5a4cd363e295a79e870701d740142.tar.bz2
:tw!resetoauth 追加。OAuthの認証情報を削除する
Diffstat (limited to 'twittperator.js')
-rw-r--r--twittperator.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/twittperator.js b/twittperator.js
index d250d91..411905b 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -2038,6 +2038,20 @@ let PLUGIN_INFO =
timelineCompleter: true,
completer: Completers.id(function (it) it.in_reply_to_status_id)
}),
+ SubCommand({
+ command: ["resetoauth"],
+ description: "Reset OAuth Information",
+ action: function(arg) {
+ Store.remove("consumerKey");
+ Store.remove("consumerSecret");
+ Store.remove("token");
+ Store.remove("tokenSecret");
+ Store.save();
+ Twittperator.echo("OAuth information were reset.");
+ },
+ timelineCompleter: false,
+ completer: Completers.id(function (it) it.in_reply_to_status_id)
+ }),
]; // }}}
function findSubCommand(s) { // {{{