Open helen-ndip opened 2 years ago
@tuxpiper @Angamanga is this what is expected? I am sorry I took so much time because my bot was not responding to messages and so when I tried to debug the slack driver I noticed it needed a bot permission users:read
to load the bot information when initializing the driver.
This looks pretty good for a start @helen-ndip !
The next important thing is to plug in the platform functionality via a controller, because the intention of this repository is to allow the reporters to fill surveys through the implemented drivers (only USSD and Africa's Talking so far). So ideally, once we have added a facebook driver, users should be able to fill surveys via facebook messenger.
Please see the source code of the Africa's Talking USSD controller here for reference : https://github.com/ushahidi/ussd-engine/blob/master/app/Http/Controllers/AfricasTalkingController.php
This looks pretty good for a start @helen-ndip !
The next important thing is to plug in the platform functionality via a controller, because the intention of this repository is to allow the reporters to fill surveys through the implemented drivers (only USSD and Africa's Talking so far). So ideally, once we have added a facebook driver, users should be able to fill surveys via facebook messenger.
Please see the source code of the Africa's Talking USSD controller here for reference : https://github.com/ushahidi/ussd-engine/blob/master/app/Http/Controllers/AfricasTalkingController.php
Thanks for the feedback. I will take on this next.
@helen-ndip , wanted to check with you.. what is the status of the PR? is this PR complete or WIP or..?
I have not added that part yet. Hopefully after our meeting on of the survey conversation implementation with Africa talking I will be more comfortable implementing this.
Added and tested slack driver by creating a slack bot.
Create a slack bot using the SLACK API and add the bot token to the
.env
file.sample output