A little command that gives you cocktail recipes.
$ cocktail old fashioned
==================== Cocktail recipe for: Old Fashioned ===================
Old Fashioned:
A pre-dinner drink with a boozy taste.
Ingredients:
- Rye Whiskey: 6 cl
- Simple syrup: 1 cl
- Angostura bitters: 2 dashes
Preparation: Stirred.
===========================================================================
This code is running on the UberWorld talker.
A functioning Playground Plus talk server.
-
Add
src/cocktail.c
provided in this repo to your talker'ssrc
directory. -
Update
src/include/clist.h
by inserting the following code at ~line 165:extern command_func cocktail;
-
Update
src/include/clist.h
by inserting the following code at ~line 610:{"cocktail", cocktail, 0, 0, 1, 0, MISCc},
-
Update
doc/help
by inserting the following code at the end::cocktail ^ZCommand :^N cocktail <drink> ^ZDetails :^N Request a recipe for the tasty beverage of your choice. ^ZNotes :^N * Try `cocktail list` if you want to browse the recipe list.
-
Add the file
files/cocktails
provided in this repository to your talker'sfiles
directory. -
Recompile using the standard PG+ compilation process.