|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levelonelabs.aim.AIMAdapter com.levelonelabs.aimbot.AIMBot
The main Aimbot that uses the aim package to communicate with AIM and provides services via AIM through various bot modules that perform action when clients make specific queries to the screename registered by this bot.
Field Summary | |
protected AIMSender |
aim
A handle to the outgoing AIM connection |
static java.lang.String |
ROLE_ADMINISTRATOR
|
static java.lang.String |
ROLE_ENEMY
|
static java.lang.String |
ROLE_USER
|
Constructor Summary | |
AIMBot()
Constructor for the AIMBot object |
Method Summary | |
void |
addGroup(AIMGroup group)
Adds a Group |
protected static org.w3c.dom.Document |
createDomDocument()
createDomDocument - creates an empty document |
AIMGroup |
getGroup(java.lang.String groupName)
Gets the specified group |
java.util.Enumeration |
getGroups()
Gets an enum of the groups of the AIMBot |
java.lang.String |
getUsername()
Returns the AIM username of the bot. |
void |
handleError(java.lang.String error,
java.lang.String message)
Called when AIM encounters an error |
void |
handleMessage(AIMBuddy buddy,
java.lang.String request)
Will call the appropriate bot module to service the request. |
void |
handleWarning(AIMBuddy enemy,
int amount)
Handle being warned from others. |
void |
init(java.lang.String propertiesFileName)
Read in the properties file and configure the bot from it. |
static void |
main(java.lang.String[] args)
Start up the bot. |
protected void |
registerModule(BotModule mod)
All bot modules will call this and pass a reference to themselves and an ArrayList containing the keywords they want to listen for |
void |
removeGroup(AIMGroup group)
Removes the specified group |
Methods inherited from class com.levelonelabs.aim.AIMAdapter |
handleBuddyAvailable, handleBuddySignOff, handleBuddySignOn, handleBuddyUnavailable, handleConnected, handleDisconnected |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ROLE_USER
public static final java.lang.String ROLE_ENEMY
public static final java.lang.String ROLE_ADMINISTRATOR
protected AIMSender aim
Constructor Detail |
public AIMBot()
Method Detail |
public static void main(java.lang.String[] args)
args
- The command line argumentspublic void init(java.lang.String propertiesFileName)
propertiesFileName
- the name of the properties file to look for with the
classloader.public java.lang.String getUsername()
public AIMGroup getGroup(java.lang.String groupName)
groupName
-
public java.util.Enumeration getGroups()
public void handleMessage(AIMBuddy buddy, java.lang.String request)
handleMessage
in interface AIMListener
handleMessage
in class AIMAdapter
buddy
- the buddy making the requestrequest
- the text of the requestpublic void handleError(java.lang.String error, java.lang.String message)
handleError
in interface AIMListener
handleError
in class AIMAdapter
error
- the error codemessage
- decsriptive text describing the errorpublic void handleWarning(AIMBuddy enemy, int amount)
handleWarning
in interface AIMListener
handleWarning
in class AIMAdapter
enemy
- the buddy that warned usamount
- the current warning levelpublic void addGroup(AIMGroup group)
group
- The feature to be added to the Group attributepublic void removeGroup(AIMGroup group)
group
- protected void registerModule(BotModule mod)
mod
- the moduleprotected static org.w3c.dom.Document createDomDocument()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |