Last active
October 31, 2018 18:11
-
-
Save donpdonp/0a22160cb6861ff2df0be977d0da3179 to your computer and use it in GitHub Desktop.
gluon first ruby
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
def go(msg) | |
puts "firstruby go msg: #{msg}" | |
puts "firstruby go msg.params: #{msg['params']}" | |
puts "firstruby go msg.params.channel: #{msg['params']['channel']}" | |
Gluon.bot_say(msg['params']['channel'], "ruby hello") | |
end | |
# must be last | |
{ name: "firstruby" } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment