Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

IRC Bot in Processing or integrated platform

$
0
0

I need to create an IRC bot that will listen on a channel for certain words and send actions to Processing. I have tried to adapt a Java IRC library to processing but I am fairly noobish at programming, and I found it to be really difficult. Right now I am using the Pircbot library. Here is my code adapted from the sample:

    import org.jibble.pircbot.*;

    class MyBot extends PircBot {

        MyBot() {
            this.setName("MyBot");
        }


    }




    void setup()
    {
        size(800,600);

         // Now start our bot up.
        MyBot bot = new MyBot();

        // Enable debugging output.
        bot.setVerbose(true);

        // Connect to the IRC server.
        bot.connect("irc.freenode.net");

        // Join the #pircbot channel.
        bot.joinChannel("#pircbot");
    }

    void draw()
    {

    }

when I try to run it I get an Unhandled Exception Type IOException. I really have no idea how to troubleshoot this. If I can get this working that would be ideal.

However, if it would be easier to use an external system and integrate into Processing then that would work too.

Can I get some pointers on how to make this code work, or something else?


Viewing all articles
Browse latest Browse all 2896

Trending Articles