Properties

$prefix

$prefix : string

Prefix for queued messages

Type

string

$priorities

$priorities : array

Enumerated array of commands in priority order

Type

array

$lastTimestamp

$lastTimestamp : int

Track the last timestamp used for priority so we can avoid duplicate values

Type

int

Methods

__construct()

__construct()

Initializes the list of event priorities.

extract()

extract() : \Phergie\Irc\Event\EventInterface|null

Removes and returns an event from the front of the queue.

Returns

\Phergie\Irc\Event\EventInterface|null —

Removed event or null if

    the queue is empty

setPrefix()

setPrefix(string $prefix)

Implements \Phergie\Irc\GeneratorInterface->setPrefix().

Parameters

string $prefix

ircPass()

ircPass(string $password)

Implements \Phergie\Irc\GeneratorInterface->ircPass().

Parameters

string $password

ircNick()

ircNick(string $nickname, int $hopcount)

Implements \Phergie\Irc\GeneratorInterface->ircNick().

Parameters

string $nickname
int $hopcount

ircUser()

ircUser(string $username, string $hostname, string $servername, string $realname)

Implements \Phergie\Irc\GeneratorInterface->ircUser().

Parameters

string $username
string $hostname
string $servername
string $realname

ircServer()

ircServer(string $servername, int $hopcount, string $info)

Implements \Phergie\Irc\GeneratorInterface->ircServer().

Parameters

string $servername
int $hopcount
string $info

ircOper()

ircOper(string $user, string $password)

Implements \Phergie\Irc\GeneratorInterface->ircOper().

Parameters

string $user
string $password

ircQuit()

ircQuit(string $message)

Implements \Phergie\Irc\GeneratorInterface->ircQuit().

Parameters

string $message

ircSquit()

ircSquit(string $server, string $comment)

Implements \Phergie\Irc\GeneratorInterface->ircSquit().

Parameters

string $server
string $comment

ircJoin()

ircJoin(string $channels, string $keys)

Implements \Phergie\Irc\GeneratorInterface->ircJoin().

Parameters

string $channels
string $keys

ircPart()

ircPart(string $channels, string|null $message)

Implements \Phergie\Irc\GeneratorInterface->ircPart().

Parameters

string $channels
string|null $message

ircMode()

ircMode(string $target, string $mode, string $param)

Implements \Phergie\Irc\GeneratorInterface->ircMode().

Parameters

string $target
string $mode
string $param

ircTopic()

ircTopic(string $channel, string $topic)

Implements \Phergie\Irc\GeneratorInterface->ircTopic().

Parameters

string $channel
string $topic

ircNames()

ircNames(string $channels)

Implements \Phergie\Irc\GeneratorInterface->ircNames().

Parameters

string $channels

ircList()

ircList(string $channels, string $server)

Implements \Phergie\Irc\GeneratorInterface->ircList().

Parameters

string $channels
string $server

ircInvite()

ircInvite(string $nickname, string $channel)

Implements \Phergie\Irc\GeneratorInterface->ircInvite().

Parameters

string $nickname
string $channel

ircKick()

ircKick(string $channel, string $user, string $comment)

Implements \Phergie\Irc\GeneratorInterface->ircKick().

Parameters

string $channel
string $user
string $comment

ircVersion()

ircVersion(string $server)

Implements \Phergie\Irc\GeneratorInterface->ircVersion().

Parameters

string $server

ircStats()

ircStats(string $query, string $server)

Implements \Phergie\Irc\GeneratorInterface->ircStats().

Parameters

string $query
string $server

ircLinks()

ircLinks(string $servermask, string $remoteserver)

Implements \Phergie\Irc\GeneratorInterface->ircLinks().

Parameters

string $servermask
string $remoteserver

ircTime()

ircTime(string $server)

Implements \Phergie\Irc\GeneratorInterface->ircTime().

Parameters

string $server

ircConnect()

ircConnect(string $targetserver, int $port, string $remoteserver)

Implements \Phergie\Irc\GeneratorInterface->ircConnect().

Parameters

string $targetserver
int $port
string $remoteserver

ircTrace()

ircTrace(string $server)

Implements \Phergie\Irc\GeneratorInterface->ircTrace().

Parameters

string $server

ircAdmin()

ircAdmin(string $server)

Implements \Phergie\Irc\GeneratorInterface->ircAdmin()

Parameters

string $server

ircInfo()

ircInfo(string $server)

Implements \Phergie\Irc\GeneratorInterface->ircInfo().

Parameters

string $server

ircPrivmsg()

ircPrivmsg(string $receivers, string $text)

Implements \Phergie\Irc\GeneratorInterface->ircPrivmsg().

Parameters

string $receivers
string $text

ircNotice()

ircNotice(string $nickname, string $text)

Implements \Phergie\Irc\GeneratorInterface->ircNotice().

Parameters

string $nickname
string $text

ircWho()

ircWho(string $name, string $o)

Implements \Phergie\Irc\GeneratorInterface->ircWho().

Parameters

string $name
string $o

ircWhois()

ircWhois(string $server, string $nickmasks)

Implements \Phergie\Irc\GeneratorInterface->ircWhois().

Parameters

string $server
string $nickmasks

ircWhowas()

ircWhowas(string $nickname, int $count, string $server)

Implements \Phergie\Irc\GeneratorInterface->ircWhowas().

Parameters

string $nickname
int $count
string $server

ircKill()

ircKill(string $nickname, string $comment)

Implements \Phergie\Irc\GeneratorInterface->ircKill().

Parameters

string $nickname
string $comment

ircPing()

ircPing(string $server1, string $server2)

Implements \Phergie\Irc\GeneratorInterface->ircPing().

Parameters

string $server1
string $server2

ircPong()

ircPong(string $daemon, string $daemon2)

Implements \Phergie\Irc\GeneratorInterface->ircPong().

Parameters

string $daemon
string $daemon2

ircError()

ircError(string $message)

Implements \Phergie\Irc\GeneratorInterface->ircError().

Parameters

string $message

ircAway()

ircAway(string $message)

Implements \Phergie\Irc\GeneratorInterface->ircAway().

Parameters

string $message

ircRehash()

ircRehash()

Implements \Phergie\Irc\GeneratorInterface->ircRehash().

ircRestart()

ircRestart()

Implements \Phergie\Irc\GeneratorInterface->ircRestart().

ircSummon()

ircSummon(string $user, string $server)

Implements \Phergie\Irc\GeneratorInterface->ircSummon().

Parameters

string $user
string $server

ircUsers()

ircUsers(string $server)

Implements \Phergie\Irc\GeneratorInterface->ircUsers().

Parameters

string $server

ircWallops()

ircWallops(string $text)

Implements \Phergie\Irc\GeneratorInterface->ircWallops().

Parameters

string $text

ircUserhost()

ircUserhost(string $nickname1, string $nickname2, string $nickname3, string $nickname4, string $nickname5)

Implements \Phergie\Irc\GeneratorInterface->ircUserhost().

Parameters

string $nickname1
string $nickname2
string $nickname3
string $nickname4
string $nickname5

ircIson()

ircIson(string $nicknames)

Implements \Phergie\Irc\GeneratorInterface->ircIson().

Parameters

string $nicknames

ctcpFinger()

ctcpFinger(string $receivers)

Implements \Phergie\Irc\GeneratorInterface->ctcpFinger().

Parameters

string $receivers

ctcpFingerResponse()

ctcpFingerResponse(string $nickname, string $text)

Implements \Phergie\Irc\GeneratorInterface->ctcpFingerResponse().

Parameters

string $nickname
string $text

ctcpVersion()

ctcpVersion(string $receivers)

Implements \Phergie\Irc\GeneratorInterface->ctcpVersion().

Parameters

string $receivers

ctcpVersionResponse()

ctcpVersionResponse(string $nickname, string $name, string $version, string $environment)

Implements \Phergie\Irc\GeneratorInterface->ctcpVersionResponse().

Parameters

string $nickname
string $name
string $version
string $environment

ctcpSource()

ctcpSource(string $receivers)

Implements \Phergie\Irc\GeneratorInterface->ctcpSource().

Parameters

string $receivers

ctcpSourceResponse()

ctcpSourceResponse(string $nickname, string $host, string $directories, string $files)

Implements \Phergie\Irc\GeneratorInterface->ctcpSourceResponse().

Parameters

string $nickname
string $host
string $directories
string $files

ctcpUserinfo()

ctcpUserinfo(string $receivers)

Implements \Phergie\Irc\GeneratorInterface->ctcpUserinfo().

Parameters

string $receivers

ctcpUserinfoResponse()

ctcpUserinfoResponse(string $nickname, string $text)

Implements \Phergie\Irc\GeneratorInterface->ctcpUserinfoResponse().

Parameters

string $nickname
string $text

ctcpClientinfo()

ctcpClientinfo(string $receivers)

Implements \Phergie\Irc\GeneratorInterface->ctcpClientinfo().

Parameters

string $receivers

ctcpClientinfoResponse()

ctcpClientinfoResponse(string $nickname, string $client)

Implements \Phergie\Irc\GeneratorInterface->ctcpClientinfoResponse().

Parameters

string $nickname
string $client

ctcpErrmsg()

ctcpErrmsg(string $receivers, string $query)

Implements \Phergie\Irc\GeneratorInterface->ctcpErrmsg().

Parameters

string $receivers
string $query

ctcpErrmsgResponse()

ctcpErrmsgResponse(string $nickname, string $query, string $message)

Implements \Phergie\Irc\GeneratorInterface->ctcpErrmsgResponse().

Parameters

string $nickname
string $query
string $message

ctcpPing()

ctcpPing(string $receivers, int $timestamp)

Implements \Phergie\Irc\GeneratorInterface->ctcpPing().

Parameters

string $receivers
int $timestamp

ctcpPingResponse()

ctcpPingResponse(string $nickname, int $timestamp)

Implements \Phergie\Irc\GeneratorInterface->ctcpPingResponse().

Parameters

string $nickname
int $timestamp

ctcpTime()

ctcpTime(string $receivers)

Implements \Phergie\Irc\GeneratorInterface->ctcpTime().

Parameters

string $receivers

ctcpTimeResponse()

ctcpTimeResponse(string $nickname, string $time)

Implements \Phergie\Irc\GeneratorInterface->ctcpTimeResponse().

Parameters

string $nickname
string $time

ctcpAction()

ctcpAction(string $receivers, string $action)

Implements \Phergie\Irc\GeneratorInterface->ctcpAction().

Parameters

string $receivers
string $action

ctcpActionResponse()

ctcpActionResponse(string $nickname, string $action)

Implements \Phergie\Irc\GeneratorInterface->ctcpActionResponse().

Parameters

string $nickname
string $action

getPriority()

getPriority(string $command, array $params) : \Phergie\Irc\Bot\React\EventQueuePriority

Returns the priority of a specified command.

Parameters

string $command
array $params

Unused, intended for use by subclasses

Returns

\Phergie\Irc\Bot\React\EventQueuePriority

queueIrcRequest()

queueIrcRequest(string $command, array $params)

Enqueues a new IRC event.

Parameters

string $command
array $params

queueCtcpEvent()

queueCtcpEvent(string $command, string $ctcpCommand, array $params)

Enqueues a new CTCP event.

Parameters

string $command

IRC command

string $ctcpCommand

CTCP command

array $params

Command parameters

queueCtcpRequest()

queueCtcpRequest(string $ctcpCommand, array $params)

Enqueues a new CTCP request.

Parameters

string $ctcpCommand

CTCP command

array $params

Command parameters

queueCtcpResponse()

queueCtcpResponse(string $ctcpCommand, array $params)

Enqueues a new CTCP response.

Parameters

string $ctcpCommand

CTCP command

array $params

CTCP parameters