https://github.com/mubaris/motivate
:zap: motivate :zap: - A simple script to print random motivational quotes. Highly influenced by linux command fortune.
https://github.com/mubaris/motivate
fortune motivation python python-3 terminal
Last synced: 27 days ago
JSON representation
:zap: motivate :zap: - A simple script to print random motivational quotes. Highly influenced by linux command fortune.
- Host: GitHub
- URL: https://github.com/mubaris/motivate
- Owner: mubaris
- License: mit
- Archived: true
- Created: 2017-02-24T08:45:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T18:03:09.000Z (about 2 years ago)
- Last Synced: 2024-12-18T06:23:18.861Z (11 months ago)
- Topics: fortune, motivation, python, python-3, terminal
- Language: Python
- Homepage:
- Size: 637 KB
- Stars: 306
- Watchers: 15
- Forks: 490
- Open Issues: 243
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Motivate
[](https://gitter.im/pymotivate/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

A simple script to print random motivational quotes. Highly influenced by linux command [fortune](https://en.wikipedia.org/wiki/Fortune_(Unix)).
## Features
* Colored Output
* Supports `bash` and `zsh`
## Requirements
```
git
python 3x
```
## Installation
### Linux/MacOS
```
$ git clone https://github.com/mubaris/motivate.git
$ cd motivate/motivate
$ sudo ./install.sh
$ source ~/.bashrc
```
zsh users should replace `.bashrc` with `.zshrc`.
If you have no root priviledge, install in this way:
```
$ git clone https://github.com/mubaris/motivate.git
$ cd motivate
$ ln -s $PWD/motivate/motivate.py moti
$ ln -s $PWD/dummy.sh mmoti
$ export PATH=$PWD:$PATH
$ # echo 'export PATH=$PWD:$PATH' >> ~/.bashrc
```
Later you can run by calling `moti` (a single run) or `mmoti` (keep running until you break it).
After doing so, I found that python 2.x is enough to run this script.
### Windows
* Make sure you have Python3 on your path.
* Clone the repository `git clone https://github.com/mubaris/motivate.git`.
* Add the path to your local clone to your system path.
* Run `py -3 motivate.py` from the command prompt.
## Update Database
```
$ git clone https://github.com/mubaris/motivate.git
$ cd motivate
$ ./UPDATE
```
## Usage
```
$ motivate
"When something is important enough, you do it even if the odds are not in your favor."
--Elon Musk
```
## Contribution
The most popular way to contribute is adding [new quotes](https://github.com/mubaris/motivate/issues/3). You do it by adding next JSON file in `motivate/data/` directory. The rule is 20 quotes per file.
Before you submit your new JSON file, it is helpful to validate your file at this [website](https://jsonlint.com/) to make sure it is formatly correct.
But any improvements are welcome - just open a pull request with some description.
You're also welcome to discuss the idea on [Gitter Chat](https://gitter.im/pymotivate/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge).