Skip to content

Instantly share code, notes, and snippets.

@yassun
Last active August 29, 2015 14:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yassun/e805b3e28a55ca93fd01 to your computer and use it in GitHub Desktop.
Save yassun/e805b3e28a55ca93fd01 to your computer and use it in GitHub Desktop.
maji_love_1000percent.gemspec
Gem::Specification.new do |spec|
spec.name = "maji_love_1000percent"
spec.version = "0.0.1"
spec.authors = ["yassun"]
spec.email = [""]
spec.summary = "return maji_love_1000percent"
spec.files = ["maji_love_1000percent.rb"]
spec.require_path = "."
end
# maji_love_1000percent.rb
module Ruboty
module Handlers
class MajiLove1000percent < Base
on(
/マジLOVE1000%/,
name: "maji_love_1000percent_1",
description: "Return Are you ready?"
)
def maji_love_1000percent_1(message)
message.reply("Are you ready? :heartpulse:")
end
on(
/七色のコンパスに/,
name: "maji_love_1000percent_2",
description: "Return Uh honey 自分だけの Brand new melody"
)
def maji_love_1000percent_2(message)
message.reply("Uh honey 自分だけの Brand new melody :heartpulse:")
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment