2013-07-22 15:45:38 -04:00
|
|
|
#! /bin/sh
|
|
|
|
# Ted Meyer
|
|
|
|
# Incredibly stupid Math bot
|
|
|
|
#
|
|
|
|
sender=$1 # sender (the person I am talking to)
|
|
|
|
channel=$2 # channel
|
|
|
|
equ=$3 # math equ
|
2013-07-22 15:49:06 -04:00
|
|
|
res=$(java -cp math/ nums $equ)
|
2013-07-22 15:45:38 -04:00
|
|
|
echo "PRIVMSG $channel :$sender: $res"
|