Created
March 23, 2016 17:47
-
-
Save noam87/77d5e0a6b42f1f821b10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.-------------------. .-------------------. | | |
| SlackController | | KickController | | Receive commands | |
'-------------------' '-------------------' | from users. | |
| | | | |
v v | | |
.------------------. .----------------. | | |
| IncomingSlackJob | | IncomingKikJob | | Kick off async jobs. | |
'------------------' '----------------' | | |
| | | | |
v v | | |
.-------------------. .-------------------. | Convert service-specific JSON | |
| Normalizer::Slack | | Normalizer::Kick | | command into internal format. | |
'-------------------' '-------------------' | | |
\ / | | |
v v | | |
.---------------------. | Figure out command type | |
| Command::EntryPoint | | and forward to proper | |
'---------------------' | response class. | |
/ \ | | |
v v | | |
.----------------. .----------------. | | |
| Response::Help | | Response::Help | | Generate response. | |
'----------------' '----------------' | | |
\ / | | |
v v | | |
.---------------------------. | Turn response back into | |
| Denormalizer::Kik | | service-specfic format. | |
'---------------------------' | | |
| | | | |
v v | | |
.----------------..----------------. | | |
| Responder::Kik || Responder::Kik | | Send response to bot | |
'----------------''----------------' | service server. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment