Skip to content

class Webchat

Oliver edited this page Apr 25, 2020 · 1 revision

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


Webchat

Package

IRCBot\Command

author

date

  • 30.12.2014

version

  • 1.0

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()

Sends the arguments to the channel, like say from a user.

IRC-Syntax: !webchat [text]

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 » Webchat

Clone this wiki locally