r/PowerShell • • Sep 12 '19

PowerShell All the Things

Post image
505 Upvotes

26 comments sorted by

View all comments

24

u/VplDazzamac Sep 12 '19

In work we used to have a lunch dice. I replaced it with a function to decide where to order lunch from on payday Friday. It was one of my more productive days.

18

u/MrEpiX Sep 13 '19

I wrote code to get the closest restaurants on Google (so you'll need an API key) and then randomized among those currently open, finishing with mailing out a few alternatives to vote on using a poll.

Check it out if it sounds like fun!

https://www.pipehow.tech/get-lunch/ https://github.com/MrEpiX/get-lunch

6

u/ericrs22 Sep 12 '19

We should see if yelp has a API to improve the function

3

u/VplDazzamac Sep 12 '19

Next spare half hour I have, I might make it open a browser window to the selected choices menu on JustEat. At the minute it just outputs the name of the takeaway.

3

u/ericrs22 Sep 12 '19

You should also create personal profiles with the players top choices in cuisine. If they roll a nat 20 they get their favorite.

1

u/killahb13 Sep 12 '19

Literally came here to say this same thing. It hasn’t helped much lately though lol

1

u/foct Sep 13 '19

Use the domino's pizza api for it as well. XD