https://github.com/lassehaslev/8ball
Shell script for answering complex questions
https://github.com/lassehaslev/8ball
Last synced: about 1 month ago
JSON representation
Shell script for answering complex questions
- Host: GitHub
- URL: https://github.com/lassehaslev/8ball
- Owner: LasseHaslev
- Created: 2016-03-02T22:50:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-03T13:14:33.000Z (over 10 years ago)
- Last Synced: 2025-02-23T18:17:05.377Z (over 1 year ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ask shell script
Shell script for answering complex questions
## Installation
Make sure you have composer installed, and run:
```
composer install
```
This will install the dependencies for this application
#### Help
```
# For information of this application run:
./ask.php
```
### Choose
Choose.sh is the main engine of this application.
```
./ask.php choose
# Will return YES or NO
```
You can add options to choose from
```
./ask.php choose Banana Apple
# Will return 'Banana' or 'Apple'
```
You can even write as many options to choose from as you'd like
```
./ask.php choose Banana Apple Mango Melon
# Will return 'Banana' or 'Apple' or 'Mango' or 'Melon'
```
##### Print out the question for choose
```
./ask.php choose McDonalds BurgerKing --question-input "Where should we eat?"
# Where should we eat?
# BurgerKing
```
### 8ball
Uses the engine of Choose to simulate an 8ball answering ball
```
# Is 8ball the coolest script ever?
./ask.php 8ball
# Will return 'Without a doubt'. ( or another answer... )
```
##### Print out the question for 8ball
```
./ask.php 8ball "Will the world end?"
# Will the world end?
# As i see it, Yes
```