From 0099079328c5a4cd363e295a79e870701d740142 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 8 Dec 2010 21:19:02 +0900 Subject: :tw!resetoauth 追加。OAuthの認証情報を削除する --- twittperator.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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) { // {{{ -- cgit v1.2.3