moth

Monarch Of The Hill game server
git clone https://git.woozle.org/neale/moth.git

moth / contrib
Neale Pickett  ·  2018-09-19

award

 1#! /bin/sh
 2
 3if [ $# -lt 3 ] || [ $# -gt 4 ]; then
 4	echo "Usage: $0 TEAM CATEGORY POINTS [COMMENT]"
 5	exit 1
 6fi
 7
 8cd $(dirname $0)/../state
 9
10if grep -q "^[0-9]* $1 $2 $3 $4" points.log; then
11	echo "Points already awarded"
12	exit 1
13fi
14
15now=$(date +%s)
16echo "$now $1 $2 $3 cli:$4" > points.new/$now.$$