Skip to content

Instantly share code, notes, and snippets.

@tumugin
Created May 22, 2014 12:55
Show Gist options
  • Save tumugin/d4341a874795f6943ec0 to your computer and use it in GitHub Desktop.
Save tumugin/d4341a874795f6943ec0 to your computer and use it in GitHub Desktop.
イ゛エ゛ニ゛カ゛エ゛ッチ゛ャッタ゛ノ゛?
def KotoriGoHome(str)
kotori = str.chars
niko = ""
kotori.each{|honoka|
niko += honoka + "゛"
}
return niko
end
Plugin.create :mikutter_lovelive_gohome do
command(:kotori_gohome,
name: 'イ゛エ゛ニ゛カ゛エ゛ッチ゛ャッタ゛ノ゛?',
condition: lambda{ |opt| true },
visible: true,
role: :postbox
) do |opt|
begin
Plugin[:gtk].widgetof(opt.widget).widget_post.buffer.text = KotoriGoHome(Plugin[:gtk].widgetof(opt.widget).widget_post.buffer.text)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment