Added calculate module. Requires calc.
This commit is contained in:
parent
9cdb9b4f6e
commit
683330d7d1
|
@ -0,0 +1,11 @@
|
|||
[ -f functions.sh ] && source functions.sh
|
||||
|
||||
calculate() {
|
||||
calc -- "$*" | tr -d '[:space:]'
|
||||
}
|
||||
|
||||
name="$1"
|
||||
shift
|
||||
chan="$1"
|
||||
shift
|
||||
msg "$chan" "$name: $(calculate "$*")"
|
Loading…
Reference in New Issue