Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
すべてのツイートを匿名にするmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create :anonymous do
UserConfig[:anonymous_all_tweets] ||= false
filter_show_filter do |msgs|
if UserConfig[:anonymous_all_tweets]
msgs.map!{|m| Message.new(:message => m[:message], :system => true) }
end
[msgs]
end
settings "ツイートの匿名化" do
boolean "ツイートの匿名化を有効にする", :anonymous_all_tweets
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.