Browse Source

Fix the script so it doesn't use the big jar because that makes Java
sad when rebuilding.

Douglas William Thrift 13 years ago
parent
commit
0d1421c640
2 changed files with 4 additions and 1 deletions
  1. 3 1
      bigscreenbot
  2. 1 0
      src/net/douglasthrift/bigscreenbot/BigScreenBot.java

+ 3 - 1
bigscreenbot

@@ -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

+ 1 - 0
src/net/douglasthrift/bigscreenbot/BigScreenBot.java

@@ -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]));
             }
         });