Skip to content

jmodjeska/pgplus-cocktail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cocktail Recipe for PG+

A little command that gives you cocktail recipes.

Usage

$ 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.
  
===========================================================================

Live Example

This code is running on the UberWorld talker.

Requirements

A functioning Playground Plus talk server.

Installation

  1. Add src/cocktail.c provided in this repo to your talker's src directory.

  2. Update src/include/clist.h by inserting the following code at ~line 165:

    extern command_func cocktail;
    
  3. Update src/include/clist.h by inserting the following code at ~line 610:

    {"cocktail", cocktail, 0, 0, 1, 0, MISCc},
    
  4. 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.
    
  5. Add the file files/cocktails provided in this repository to your talker's files directory.

  6. Recompile using the standard PG+ compilation process.

You might also like

About

Cocktail recipe command for Playground Plus talkers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages