Fixed bugs

This commit is contained in:
DiSharko 2013-07-23 12:46:13 -04:00
parent 4f5bb91244
commit 424b3dd8c8

View File

@ -1,7 +1,7 @@
#!/bin/bash
. "../bot.properties"
log="../$log"
. "../../bot.properties"
log="../../$log"
lines=$(grep "!azhu" $log)
name=$(echo $lines | sed "s/.*\]:\(.*\)![^!]*/\1/g")
@ -26,7 +26,7 @@ fi
responsePercent=0
if [ "$minutesBetween" -ge 0 ]; then
if [ $minutesBetween -ge 0 ]; then
responsePercent=$(( -5000/($minutesBetween+40) - $minutesBetween/25 + 100 ))
fi