Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow new bots to be added without requiring a server restart #83

Open
dmorrill10 opened this issue Apr 8, 2014 · 2 comments
Open

Allow new bots to be added without requiring a server restart #83

dmorrill10 opened this issue Apr 8, 2014 · 2 comments

Comments

@dmorrill10
Copy link
Owner

Made read bot names from a file, or maybe the require 'bots.rb' could simply be replaced with include 'bots.rb' (where include may not be the right function name, it might be import or something of the like, I can't remember now. The important point is that the file needs to be reread every time the script is executed).

@dmorrill10
Copy link
Owner Author

Does not work on the front-end in production due to require_reloader being limited to development but I'm not sure why. Have to dig into require_reloader more.

@dmorrill10 dmorrill10 reopened this Apr 10, 2014
@dmorrill10
Copy link
Owner Author

Should have bots in a plain data config file. JSON might make the file easier to use on the client side, but YAML might allow the use of Ruby variables, like the constants in acpc_dealer, which would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant