Created
January 13, 2010 23:12
-
-
Save no6v/276661 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
Termtter::Client.register_command( | |
:name => :skiing, | |
:alias => :ski, | |
:help => ["skiing [WHERE]", "Where are you skiing now?"], | |
:exec_proc => lambda {|arg| | |
arg = "街中" if arg.empty? | |
text = "スキーで#{arg}を移動中です♪" | |
Termtter::API.twitter.update(text) | |
puts "=> " << text | |
} | |
) | |
# http://twitter.com/jugyo/status/6329265459 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment