TheProfosist

Untitled

Aug 5th, 2010
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. import org.jibble.pircbot.*;
  2. import java.io.File;
  3.  
  4.  
  5. public class tamahomechan extends PircBot {
  6.  
  7. public tamahomechan()
  8. {
  9. this.setName("tamahomechan");
  10. }
  11.  
  12. File file1 = new File("abc.txt");
  13.  
  14. public void onMessage(String channel, String sender,String login, String hostname, String message)
  15. {
  16. if(message.equalsIgnoreCase("!list"))
  17. {
  18.  
  19. }
  20. if(message.equalsIgnoreCase("!send"))
  21. {
  22. setDccInetAddress(getDccInetAddress());
  23. setDccPorts(getDccPorts());
  24. dccSendFile(file1,sender, 120000);
  25. }
  26. }
  27. public static void main(String[] args) throws Exception {
  28. tamahomechan bot = new tamahomechan();
  29.  
  30. // Enable debugging output.
  31. bot.setVerbose(true);
  32. bot.connect("irc.rizon.net");
  33. // Connect to the IRC server.
  34.  
  35.  
  36. // Join the #pircbot channel.
  37. bot.joinChannel("#dac");
  38. }
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment