PHP 클래스 Phergie_Plugin_Message, phergie

저자: Phergie Development Team ([email protected])
상속: extends Phergie_Plugin_Abstract
파일 보기 프로젝트 열기: phergie/phergie

공개 메소드들

메소드 설명
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.