Skip to content

Instantly share code, notes, and snippets.

@siyo siyo/kensaku.rb
Created Oct 19, 2013

Embed
What would you like to do?
# -*- coding: utf-8 -*-
require 'moji'
Earthquake.init do
command :kensaku do |m|
str = m[1] + " " * 3
body = Moji.han_to_zen str
len = body.size
head = "" * len
tail = "" * len
twitter.update(<<"EOS")
#{head}┳━━┓
#{body}┃検索┃
#{tail}┻━━┛
EOS
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.