https://github.com/logonoff/fortune-cowsay-motd
A Node.js MOTD server that pipes fortune and cowsay together
https://github.com/logonoff/fortune-cowsay-motd
cowsay expressjs fortune motd
Last synced: 3 months ago
JSON representation
A Node.js MOTD server that pipes fortune and cowsay together
- Host: GitHub
- URL: https://github.com/logonoff/fortune-cowsay-motd
- Owner: logonoff
- License: wtfpl
- Created: 2023-09-04T17:23:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-17T19:30:34.000Z (8 months ago)
- Last Synced: 2024-12-27T10:24:30.755Z (5 months ago)
- Topics: cowsay, expressjs, fortune, motd
- Language: JavaScript
- Homepage: https://motd.logonoff.co
- Size: 273 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# `fortune | cowsay` MOTD
A Node.js MOTD server that pipes `fortune` and `cowsay` together.
## Getting Started
1. run `npm install` to install dependencies.
2. run `npm start` to start the server.## API Documentation
### `GET /`
Returns a random `fortune | cowsay` message.
#### Params
- `cow` - the cow file to use. use "random" for a random cow (str, optional)
- `eyes` - the cow's eyes (str, optional)
- `tounge` - the cow's tongue (str, optional)### `GET /cows`
Returns a list of available cow files.
### `GET /fortune`
Returns a random `fortune` message.
### `GET /cowsay`
Returns a random `cowsay` message.
#### Params
- `text` - the text to cowsay (str)
##### Cow
- `f` - the cow file to use (str, optional)
- `r` - whether to use a random cow file (bool, optional)##### Face
- `e` - the cow's eyes (str, optional)
- `T` - the cow's tongue (str, optional)##### Modes
- `b` - borg mode (bool, optional)
- `d` - dead mode (bool, optional)
- `g` - greedy mode (bool, optional)
- `p` - paranoid mode (bool, optional)
- `s` - stoned mode (bool, optional)
- `t` - tired mode (bool, optional)
- `w` - wired mode (bool, optional)
- `y` - youthful mode (bool, optional)## License
[WTFPL](http://www.wtfpl.net/)