182183184185186187188189190191192
} List c = (List) chatbotcommands.get(id); if (c == null) c = new ArrayList(); IChatRoomBotEntry bot = new ChatRoomBotEntry(id, name, containerFactoryName, connectID, password, chatRoomNames, chatRoomPasswords, c); chatroombots.put(id, bot); } }
3334353637383940414243
public Object start(IApplicationContext context) throws Exception { Map bots = getBotsFromExtensionRegistry(); for (Iterator it = bots.values().iterator(); it.hasNext();) { IChatRoomBotEntry entry = (IChatRoomBotEntry) it.next(); // Create default chat room bot ChatRoomBot bot = new ChatRoomBot(entry); // connect bot.connect(); }