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

Make application initialization take a struct #65

Merged

Conversation

mattr-
Copy link
Contributor

@mattr- mattr- commented May 18, 2016

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?

mattr- added 2 commits May 17, 2016 19:33
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
@mattr-
Copy link
Contributor Author

mattr- commented May 18, 2016

This doesn't seem to work with a real world bot. Closing so I can go back to the drawing board.

@mattr- mattr- closed this May 18, 2016
@mattr- mattr- reopened this Jun 2, 2016
@mattr-
Copy link
Contributor Author

mattr- commented Jun 2, 2016

I discovered that this does indeed actually work, so 🎉

@adamzaninovich
Copy link
Member

let's review deployment strategies before merging this since it's breaking

Alice.Handlers.GoogleImages
] } ]
Alice, %{
:handlers => [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use handlers: [...

@mattr-
Copy link
Contributor Author

mattr- commented Jun 11, 2016

Switched the hashrockets to colons. Do we still need to talk deployment strategies?

@adamzaninovich
Copy link
Member

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.

@adamzaninovich
Copy link
Member

ok, I made a 0-3-stable branch, and now I'm going to merge this

@adamzaninovich adamzaninovich merged commit bff770b into alice-bot:master Jun 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants