@@ -25,9 +25,11 @@
cd `dirname $0`
code=2
+cp=(bin lib/*jar)
+cp=`IFS=':'; echo "${cp[*]}"`
while [[ $code -eq 2 ]]; do
- java -jar bin/bigscreenbot.jar
+ java -cp $cp net.douglasthrift.bigscreenbot.BigScreenBot
code=$?
done
@@ -281,6 +281,7 @@ public class BigScreenBot extends PircBot
}
sendMessage(arguments[0], arguments[1]);
+ sendMessage(channel, sender, String.format("successfully sent message (\"%1$s\") to nick/channel (\"%2$s\")", arguments[1], arguments[0]));
});