Skip to content

Instantly share code, notes, and snippets.

@kurotaky
Last active October 24, 2015 06:50
Show Gist options
  • Save kurotaky/b0e687098920cc177314 to your computer and use it in GitHub Desktop.
Save kurotaky/b0e687098920cc177314 to your computer and use it in GitHub Desktop.
ruboty-samoyed
Gem::Specification.new do |spec|
spec.name = "ruboty-samoyed"
spec.version = "0.0.1"
spec.authors = ["Yuta Kurotaki"]
spec.email = ["[email protected]"]
spec.summary = "samoyed dog say it!"
spec.files = ["ruboty-samoyed.rb"]
spec.require_path = "."
end
module Ruboty
module Handlers
class Samoyed < Base
on(/hi\z/i, name: "hi", description: "bark")
on(/ryusei\z/i, name: "ryusei", description: "R.Y.U.S.E.I")
def hi(message)
m = ['ワン!', 'ワンワン!', ':samoyed:', 'クゥ〜ン'].sample
message.reply(m)
end
def ryusei(message)
m = ['OOH!OOH! SAY IT 煌めいて',
'この道がどこで終わるかは分からない',
'人生一度きり DREAM 掴みたいから 今',
'星空の下...',
':point_up: :sunglasses: :point_up:',
'この瞬間を共に過ごしたい仲間がいる',
'雨粒が尾を引く様なSHOOTING STARS',
'OOH! OOH! SAY IT NOW, OOH! OOH!'].sample
message.reply(m)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment