Skip to content

class Timeout

Oliver edited this page Apr 25, 2020 · 1 revision

www/php-ircbot/Classes/Command/Timeout.php


Timeout

Package

IRCBot\Command

author

Overview

Public Properties

No public properties found

Constants

No constants found

Public Methods

command() | executeCommand() | getNick() | setIRCBot() | setIRCConnection() |

Properties

arguments

Contains all given arguments.

protected $arguments : array

Array

bot

Reference to the IRC Bot

protected $bot : \Lirary\IRC\Bot

Array

connection

Reference to the IRC Connection.

protected $connection : \Library\IRC\Connection

Array

data

Original request from server

private $data : string

Array

help

The command's help text.

You have to define this in the command. protected $help : string

Array

numberOfArguments

The number of arguments the command needs.

You have to define this in the command. protected $numberOfArguments : int

Array

source

Contains channel or user name

protected $source : string

Array

Methods

command()

The bot disconnects for the specified number of seconds.

This method is called if the command get's executed.

public command() : mixed

executeCommand()

Executes the command.

public executeCommand(array $arguments, string $source, string $data) : mixed

fetch()

Fetches data from $uri

protected fetch(string $uri) : string

getHelp()

private getHelp() : mixed

getNick()

Returns a user's nickname

public getNick() : string

getUserIp()

Returns requesting user IP

protected getUserIp() : string

say()

Sends PRIVMSG to source with $msg

protected say(string $msg) : mixed

Tags
  • version: 2.0

setIRCBot()

Set's the IRC Bot, so we can use it to send data to the server.

public setIRCBot(\Library\IRCBot $ircBot) : mixed

setIRCConnection()

Set's the IRC Connection, so we can use it to send data to the server.

public setIRCConnection(\Library\IRC\Connection $ircConnection) : mixed


\ » Classes » Timeout

Clone this wiki locally