Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module Ruboty
module Handlers
class Test < Base
on(
/test\z/i, # "@ellen ping"に反応して
name: "test", # #pingメソッドが呼ばれる
description: "TTT" # これは"@ellen help"でhelpを表示したとき説明文として表示される
)
def test(message)
message.reply("test")
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment