f00f.net.irc.martyr.test
Class DccTestBot
java.lang.Object
f00f.net.irc.martyr.test.DccTestBot
public class DccTestBot
- extends java.lang.Object
The DccTestBot waits for DCC connections and establishes
connections on request, see the source for how it is done.
If it receives a DCC chat offer, it will accecpt the connection and
send back anything "heard" on the dcc channel.
If it receives a file offer, it will accept the connection and
write the file to the directory the bot was started in.
If it receives a PRIVMSG saying "chatme" it will attempt to
establish a chat connection with the sender, by offering a dcc chat
session. If the session is established, it will echo back
everything said to it. Not yet implemented.
If it received a PRIVMSG saying "fileme xxxx" it will attempt to send a
file of size xxxx to the sender, by offering a DCC SEND session.
If the session is established, it will send some random text
under the name "test.txt". Not yet implemented.
Constructor Summary |
DccTestBot(java.lang.String nick)
|
Method Summary |
void |
connect(java.lang.String server,
int port)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DccTestBot
public DccTestBot(java.lang.String nick)
connect
public void connect(java.lang.String server,
int port)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.