Method | Description | |
---|---|---|
getMessage ( ) : string | boolean | Allow for prefix and bot name aware extraction of a message | |
isTargetedMessage ( ) : boolean | Check whether a message is specifically targeted at the bot. |
Method | Description | |
---|---|---|
getSelfRegex ( ) : string | Returns a regular expression that matches the bot's nick or aliases. |
public getMessage ( ) : string | boolean | ||
return | string | boolean | $message The message, which is possibly targeted at the bot or false if a prefix requirement failed |
public isTargetedMessage ( ) : boolean | ||
return | boolean | true when the message is specifically targeted at the bot, false otherwise. |