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

DoorDash plugin ($500) #488

Open
kodjima33 opened this issue Jul 28, 2024 · 1 comment
Open

DoorDash plugin ($500) #488

kodjima33 opened this issue Jul 28, 2024 · 1 comment

Comments

@kodjima33
Copy link
Collaborator

Need a plugin so that you could order DoorDash if you mention "I want *** food from doordash"

@kodjima33 kodjima33 changed the title DoorDash plugin ($200) DoorDash plugin ($500) Aug 1, 2024
VirtualHorror added a commit to VirtualHorror/Friend that referenced this issue Aug 7, 2024
Related to BasedHardware#488

Add functionality to order food from DoorDash

* **community-plugins.json**: Add a new plugin entry for DoorDash with id "doordash", name "DoorDash", author "Your Name", description "Order food from DoorDash", image "/plugins/logos/doordash.png", capabilities ["chat"], and chat_prompt "Order food from DoorDash".
* **app/lib/backend/http/api/plugins.dart**: Add a new function `Future<bool> orderFoodFromDoorDash(String food)` to handle DoorDash orders by sending a POST request to the DoorDash API.
* **app/lib/backend/http/api/messages.dart**: Update the `sendMessageServer` function to handle DoorDash orders by checking if the message text contains "I want *** food from doordash" and calling the `orderFoodFromDoorDash` function with the food item. Return a `ServerMessage` indicating the order status.
* **backend/routers/chat.py**: Update the `send_message` function to handle DoorDash orders by checking if the message text contains "I want *** food from doordash" and calling the `order_food_from_doordash` function with the food item. Return a `Message` indicating the order status. Add a new function `order_food_from_doordash` to simulate the DoorDash API call.
@maishathasin
Copy link

Hi @kodjima33 and @josancamon19 I can take this , please assign me this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants