/* 
Copyright Paul James Mutton, 2001-2004, http://www.jibble.org/

This file is part of PieSpy.

This software is dual-licensed, allowing you to choose between the GNU
General Public License (GPL) and the www.jibble.org Commercial License.
Since the GPL may be too restrictive for use in a proprietary application,
a commercial license is also provided. Full license information can be
found at http://www.jibble.org/licenses/

$Author: pjm2 $
$Id: TestMain.java,v 1.5 2004/05/11 15:07:04 pjm2 Exp $

*/

package org.jibble.socnet;

import java.util.*;
import java.io.*;

public class TestMain {
    
    public static void main(String[] args) throws Exception {
        
        Random rand = new Random(1234);
        
        Properties p = new Properties();
        p.load(new FileInputStream("./config.ini"));
        SocialNetworkBot bot = new SocialNetworkBot(new Configuration(p));
        
        bot.onMessage("#static", "Dave", null, null, "Hi.");
        bot.onMessage("#static", "Paul", null, null, "Hi.");
        bot.onMessage("#static", "Monty", null, null, "Hi.");
        bot.onMessage("#static", "Dave", null, null, "Paul, Hi.");
        bot.onMessage("#static", "Paul", null, null, "Hi Monty");
        bot.onNickChange("Paul", null, null, "Paul2");
        bot.onMessage("#static", "Dave", null, null, "Paul, hi!");
        bot.onMessage("#static", "Paul2", null, null, "Dave");
        bot.onMessage("#static", "Paul2", null, null, "Dave");
        bot.onMessage("#static", "Paul2", null, null, "Dave");
        bot.onMessage("#static", "Paul2", null, null, "Dave");
        bot.onMessage("#static", "Paul2", null, null, "Dave");
        bot.onMessage("#static", "Paul2", null, null, "Dave");
        
        //String[] nicks = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"};
        
        //for (int i = 0; i < 80; i++) {
        //    bot.onMessage("#static", nicks[rand.nextInt(nicks.length)], null, null, nicks[rand.nextInt(nicks.length)] + ": hi!");
        //}
        
    }
    
}