daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Jun 12th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  go func() {
  2. for {
  3. select {
  4. case userMessage := <-fromTelegram: // Get message from Telegram & send to DialogFlow for intent
  5. toDialogFlow <- userMessage
  6. case parsedMessage := <-fromDialogFlow: // Get intent from DialogFlow and call core RPC via Rabbit
  7. toCore <- parsedMessage
  8. case rpcResponse := <-fromCore: // Get response from core RPC and send to Telegram
  9. toTelegram <- rpcResponse
  10. }
  11. }
  12. }()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top