Hello,
I have some questions about writing and launching a bot with Smack API :
1 - I’'ve found an example code on the forums which architecture was simply :
import org.jivesoftware.smack.*;
public class Bot {
public Bot() {}
public static void main(String[] args) {
// specific filtering and listening code to be added
// waits
synchronized (Thread.currentThread()) {
try {
Thread.currentThread().wait();
}
catch (InterruptedException e) {
e.printStackTrace();
}
}
}
Is this the right way to do it, not extending any Smack API class, and using thread.wait() ?
My context is launching dozens of bots moderating MUC (that emulates simple games).
2 - Do I have to install a Tomcat server tu run my (dozens of) bots ?
3 - How do I launch my bots from :
-
a web browser (URL call) ;
-
a Flash client ;
-
a (Wildfire) server ?
Many thanks,
Guillaume