Skip to content

Little script to keep count of how many coffees drank during the day ☕️

License

Notifications You must be signed in to change notification settings

VonKavalier/coffeethon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coffeethon

Little script to keep count of how many coffees drank during the day

Usages :

# Add 1 coffee
$ ./coffeethon.py -a
You added 1 cup of coffee
# Add more
$ ./coffeethon.py -a 6
You added 6 cups of coffee
# See how many were drank
$ ./coffeethon.py -w
Today you drank 7 cups of coffee
☕️ ☕️ ☕️ ☕️ ☕️ ☕️ ☕️
# You can rectify the amount by specifying how many to remove
$ ./coffeethon.py -r [number]
You removed [number] cups of coffee
# Possibility to start from 0 again
$ ./coffeethon.py -c
# Get help
$ ./coffeethon -h
coffeethon.py --add [number]
coffeethon.py --remove [number]
coffeethon.py --clear
coffeethon.py --watch

Tips :

  • Add a cron job to clear the data everyday : 0 0 * * * python coffeethon.py -c

TODO :

  • Use $COFFEETHON_FILEPATH environnement variable and initialize it in /tmp/ if isn't set. (or stuff like that. I'm just thinking)

Contributors :

About

Little script to keep count of how many coffees drank during the day ☕️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages