ushahidi / ussd-engine

Session engine for interaction with end users via a USSD provider
GNU Affero General Public License v3.0
7 stars 8 forks source link

add driver for slack bot #105

Open helen-ndip opened 2 years ago

helen-ndip commented 2 years ago

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.

image sample output

helen-ndip commented 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.

tuxpiper commented 2 years ago

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

Ako-Njang commented 2 years ago

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.

tuxpiper commented 2 years ago

@helen-ndip , wanted to check with you.. what is the status of the PR? is this PR complete or WIP or..?

helen-ndip commented 2 years ago

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.