Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.jibble.pircbot.*;
- import java.io.File;
- public class tamahomechan extends PircBot {
- public tamahomechan()
- {
- this.setName("tamahomechan");
- }
- File file1 = new File("abc.txt");
- public void onMessage(String channel, String sender,String login, String hostname, String message)
- {
- if(message.equalsIgnoreCase("!list"))
- {
- }
- if(message.equalsIgnoreCase("!send"))
- {
- setDccInetAddress(getDccInetAddress());
- setDccPorts(getDccPorts());
- dccSendFile(file1,sender, 120000);
- }
- }
- public static void main(String[] args) throws Exception {
- tamahomechan bot = new tamahomechan();
- // Enable debugging output.
- bot.setVerbose(true);
- bot.connect("irc.rizon.net");
- // Connect to the IRC server.
- // Join the #pircbot channel.
- bot.joinChannel("#dac");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment