PHP Класс Phergie_Plugin_Message, phergie

Автор: Phergie Development Team ([email protected])
Наследование: extends Phergie_Plugin_Abstract
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

getMessage() публичный Метод

Allow for prefix and bot name aware extraction of a message
public getMessage ( ) : string | boolean
Результат string | boolean $message The message, which is possibly targeted at the bot or false if a prefix requirement failed

isTargetedMessage() публичный Метод

This is the case when the message starts with the bot's name followed by [,:>] or when it is a private message.
public isTargetedMessage ( ) : boolean
Результат boolean true when the message is specifically targeted at the bot, false otherwise.