Package hudson.plugins.im.bot

Examples of hudson.plugins.im.bot.Bot


      // get rid of old messages:
      while (groupChat.pollMessage() != null) {
      }

      this.bots.add(new Bot(new JabberMultiUserChat(groupChat, this, !chat.isNotificationOnly()),
          this.groupChatNick, this.desc.getHost(),
          this.botCommandPrefix, this.authentication));

      groupChatCache.put(chat.getName(), new WeakReference<MultiUserChat>(groupChat));
    }
View Full Code Here


        return c;
      }
    }
   
    final Chat chat = ChatManager.getInstanceFor(this.connection).createChat(chatPartner, null);
    Bot bot = new Bot(new JabberChat(chat, this), this.groupChatNick,
          this.desc.getHost(), this.botCommandPrefix, this.authentication);
    this.bots.add(bot);
   
    if (msg != null) {
      // replay original message:
      bot.onMessage(new JabberMessage(msg, isAuthorized(msg.getFrom())));
    }
    chatCache.put(chatPartner, new WeakReference<Chat>(chat));
    return chat;
  }
View Full Code Here

TOP

Related Classes of hudson.plugins.im.bot.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.