Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
getSelfRegex ( ) : string | Returns a regular expression that matches the bot's nick or aliases. |
public getMessage ( ) : string | boolean | ||
Результат | string | boolean | $message The message, which is possibly targeted at the bot or false if a prefix requirement failed |
public isTargetedMessage ( ) : boolean | ||
Результат | boolean | true when the message is specifically targeted at the bot, false otherwise. |