Package com.uwyn.drone.core

Examples of com.uwyn.drone.core.Bot


      generateForm(mTemplate, submission);
      processElement();
      return;
    }
   
    Bot      bot = BotFactory.get(submission.getBot());
    Privmsg    msg = new Privmsg(submission.getTarget(), submission.getMessage());
   
    try
    {
      bot.send(msg);
    }
    catch (CoreException e)
    {
      throw new EngineException(e);
    }
View Full Code Here


        Collection         bots = BotsRunner.getRepInstance().getBots();
        Iterator         iter = bots.iterator();

        while (iter.hasNext())
        {
          Bot bot = (Bot)iter.next();

          Iterator channels_it = bot.getJoinedChannels().iterator();
          while (channels_it.hasNext())
          {
            Channel     channel = ((Channel)channels_it.next());
            StringBuffer   key = new StringBuffer();
            key
              .append(Config.getRepInstance().getString("LUCENE_DIR"))
              .append(File.separator)
              .append(bot.getName())
              .append("-")
              .append(bot.getServer().getServerName())
              .append("-")
              .append(channel.getName().substring(1));
           
            if (submission.getChannel() == null ||
              submission.getChannel().equals(""))
View Full Code Here

 
        List channels = new ArrayList();
 
        while (iter.hasNext())
        {
          Bot bot = (Bot)iter.next();
 
          Iterator channelsIter = bot.getJoinedChannels().iterator();
          while (channelsIter.hasNext())
          {
            String name = bot.getName() + " - " + ((Channel)channelsIter.next()).getName();
            channels.add(name);
          }
        }
       
        new SortListComparables().sort(channels);
View Full Code Here

TOP

Related Classes of com.uwyn.drone.core.Bot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.