Skip to content

Cary command to run the unix "fortune" and "cowsay" commands for email fortunes.

Notifications You must be signed in to change notification settings

vputz/cary_fortunecommand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cary-fortunecommand

A simple cary command to run the unix cowsay and fortune commands.

Configuration

In your configuration (usually a local_conf.py file), have the following:

FORTUNE_CONFIG = dict(COWSAY_PATH="/path/to/cowsay/program",
                      FORTUNE_PATH="/path/to/fortune/program",
                      RANDOM_COWS=dict(cowfile, "short-cow-description"...)
                      FORTUNES_PATH="/path/to/fortunes/directory")
					  ...
from cary_fortunecommand import FortuneCommand
COMMANDS = {..."fortune": (FortuneCommand, FORTUNE_CONFIG)...}

the RANDOM_COWS config variable allows you to use a random sampling of cows from cowsay; the cowfile parameter is the prefix of the cow file, while short-cow-description is the textual description that will be sent to the user.

The email message will be sent in plaintext and HTML versions.

About

Cary command to run the unix "fortune" and "cowsay" commands for email fortunes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages