Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Created June 20, 2014 15:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penguin2716/25135bb427b68f2c1e2a to your computer and use it in GitHub Desktop.
Save penguin2716/25135bb427b68f2c1e2a to your computer and use it in GitHub Desktop.
「よ」を「Yo」に書き換えてからツイートするmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create :mikutter_yo do
filter_gui_postbox_post do |gui_postbox|
text = Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text.gsub(/よ/, "Yo")
Service.primary.post :message => text
Plugin.call(:before_postbox_post, text)
Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text = ''
Plugin.filter_cancel!
end
end
@KOBA789
Copy link

KOBA789 commented Jun 20, 2014

👎

@enkunkun
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment