Project

hab

0.0
No commit activity in last 3 years
No release in over 3 years
A command line interface for Habitica
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.10
~> 10.0
~> 3.2
~> 0.32
~> 2.9
~> 1.2

Runtime

 Project Readme

Hab

Another command line interface for Habitica: Your Life the Role Playing Game.

Mostly intended to play nice with other unixy programs i.e.

$ hab stats | grep HP
# HP 47
# MAX_HP 50

$ hab todos
# Feed the fish
# Sort mail

$ echo "Remember the milk" | hab todos
# Remember the milk
# Feed the fish
# Sort mail

Installation

Install it with:

$ gem install hab

Usage

To use you need to set up a config file with your settings:

# in ~/.habitica
user_id: YOUR_HABITICA_USER_ID
api_token: YOUR_HABITICA_API_TOKEN

Commands

Once your config is set up the following commands should work.

Show your current status (pretty formatted):

$ hab status

hab status screenshot

Show your full stats:

$ hab stats
# HP 47.1
# MAX_HP 50
# MP 44
# MAX_MP 44
# EXP 117
# TO_NEXT_LEVEL 220
# PER 0
# INT 0
# CON 0
# STR 0
# LVL 7
# GP 11.48107934389596

List your habits:

$ hab habits
# Study
# Turn out the lights

List your dailies:

$ hab dailies
# Feed the fish
# Sort mail

$ hab dailies --completed
# Feed the fish

$ hab dailies --uncompleted
# Sort mail

List your todos:

$ hab todos
# Remember the milk
# Put the bins out

$ hab todos --completed
# Remember the milk

$ hab todos --uncompleted
# Put the bins out

Add tasks by using STDIN:

echo "Remember the milk" | hab todos

For more information:

$ hab help