slack-ruby-bot icon indicating copy to clipboard operation
slack-ruby-bot copied to clipboard

update after code changes?

Open mcconkiee opened this issue 7 years ago • 1 comments

This is a question, not a bug...

Awesome library. Is there a recommended way to watch the bot for code updates when making code changes. Currently the only way I can test and develop is by inserting my bot specific code changes, stop server, restart. It makes sense to me since I've followed the rails example and initiate the bot on the startup in my config.ru.

# This file is used by Rack-based servers to start the application.

require_relative 'config/environment'
require ::File.expand_path('../lib/bots/my_bot', __FILE__)

Thread.abort_on_exception = true
Thread.new do
  MyBot.run
end
run Rails.application

Perhaps this is another/better place to initiate? no idea.

mcconkiee avatar Feb 10 '18 14:02 mcconkiee

I've labeled this as a feature request, we want hotswap/reloading. No idea how to implement it, so PRs welcome.

dblock avatar Feb 14 '18 01:02 dblock