This file contains 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
Plugin.create :naniittenda_koitu do | |
command(:naniittenda_koitu, | |
name: '何言ってんだこいつ', | |
condition: lambda{ |opt| opt.messages.size == 1 }, | |
visible: true, | |
role: :timeline) do |opt| | |
Service.primary.post message: "何言ってんだこいつ #{opt.messages.first.parma_link}" | |
end | |
end |
This file contains 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
# "路線コード": { | |
# "駅コード": (X, Y, Z, "駅名"), ... | |
# }, ... | |
stationInfoTable = { | |
# harutrak A | |
"HA": { | |
# 駅共有/相互直通: HBHH | |
"HH": (-285, 59, 346, "役場前"), | |
"NV": (-369, 70, 115, "中村"), # 298 blocks |
This file contains 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
# -*- encoding: utf-8 -*- | |
require 'rubygems' | |
require 'tweetstream' | |
require 'twitter' | |
require './key.rb' | |
Twitter.configure do |config| | |
config.consumer_key = Const::CONSUMER_KEY | |
config.consumer_secret = Const::CONSUMER_SECRET | |
config.oauth_token = Const::ACCESS_TOKEN |