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

Google side settings? #4

Open
jamenlang opened this issue Dec 4, 2018 · 2 comments
Open

Google side settings? #4

jamenlang opened this issue Dec 4, 2018 · 2 comments

Comments

@jamenlang
Copy link

jamenlang commented Dec 4, 2018

I see an option for Bot URL* that requires an https endpoint... is that what I should be using? how do I get bot studio/ laravel to serve as https?

*edit, fixed with apache running a proxy to php artisan.

With a little help from this french script
https://github.com/CedricGoby/linux-server-install/blob/master/node-red-apache-ssl.sh

@jamenlang
Copy link
Author

I figured out my problem. I don't have a solution.

botman was not reading the configuration file for hangouts, I troubleshooted the vendor/botman/driver-hangouts/src/HangoutsDriver.php and found that the incoming message had the correct token, but $this->config->token was 'null'

I hardcoded my string and it worked! 🥇

@jamenlang
Copy link
Author

I found the ACTUAL problem, config/botman/hangouts.php has ENV() which references entries in the .env file where the hangouts token was not defined. So don't make changes to the HangoutsDriver.php file directly (if you do that's fine, but it needs to be 'token' => 'YOUR-WEBHOOK-TOKEN', not 'token' => ENV('YOUR-WEBHOOK-TOKEN')), instead put the token in the .env file with HANGOUTS_TOKEN=YOUR-WEBHOOK-TOKEN

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

No branches or pull requests

1 participant