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

add driver for slack bot #105

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

helen-ndip
Copy link

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
Copy link
Author

helen-ndip commented Apr 9, 2022

@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
Copy link
Member

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
Copy link

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
Copy link
Member

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

@helen-ndip
Copy link
Author

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.

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

Successfully merging this pull request may close these issues.

3 participants