-
Notifications
You must be signed in to change notification settings - Fork 19
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
Make application initialization take a struct #65
Make application initialization take a struct #65
Conversation
This explicitly names the thing that's being passed in when initializing the Alice application in another app. It also sets things up so that either state backends or chat backends could be specified in the same struct. Backwards compatibility is not kept meaning this is a breaking change in the API.
The code block for setting up the alice application contains the new method for setting the handlers you want Alice to use
This doesn't seem to work with a real world bot. Closing so I can go back to the drawing board. |
I discovered that this does indeed actually work, so 🎉 |
let's review deployment strategies before merging this since it's breaking |
Alice.Handlers.GoogleImages | ||
] } ] | ||
Alice, %{ | ||
:handlers => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use handlers: [
...
Switched the hashrockets to colons. Do we still need to talk deployment strategies? |
I just want to wait to merge until we're ready to release 0.4.0 right away. In the meantime we can keep releasing any small changes under 0.3.x. That is, unless we make a 0.3 branch that doesn't contain this and then merge this to master. I might do that. |
ok, I made a |
This explicitly names the thing that's being passed in when initializing the Alice application in another elixir app. It also sets things up so that either state backends or chat backends could be specified in the same struct (but that's future stuff).
This is a breaking change. Backwards compatibility is not kept.
README is updated. Do we need to update any other documentation before merging this PR?