J
Julien Genestoux
Hi!
I am having a hard time solving this issue and I'm sure you guys know
how to treat that very easily!
I've got a "bot" on one side which runs :
class Bot
def self.start
loop do
input = gets # Get a user input from STDIN
# do some stuff with the input!
end
end
Bot:start
end
And on the other side, I've got a Rails application. I want to "plug"
the bot to this rails application, in such a way that the inputs are
coming from the Rails application, and not from STDIN.
I guess that it doesn't change anything that my "client" is a rails app,
but I mentionned it in case it's bad in any way ;-) Also, the
communication is just "one-way"; there is no need for the bot to return
anything to the client!
Any idea on how to solve this?
You're help would be greatly appreciated!
Julien
I am having a hard time solving this issue and I'm sure you guys know
how to treat that very easily!
I've got a "bot" on one side which runs :
class Bot
def self.start
loop do
input = gets # Get a user input from STDIN
# do some stuff with the input!
end
end
Bot:start
end
And on the other side, I've got a Rails application. I want to "plug"
the bot to this rails application, in such a way that the inputs are
coming from the Rails application, and not from STDIN.
I guess that it doesn't change anything that my "client" is a rails app,
but I mentionned it in case it's bad in any way ;-) Also, the
communication is just "one-way"; there is no need for the bot to return
anything to the client!
Any idea on how to solve this?
You're help would be greatly appreciated!
Julien