DeBot Framework


DeBot\m_RawEval
Modules/RawEval.php at line 14

Class m_RawEval

Module
└─m_RawEval

public class m_RawEval
extends Module

DeBot Module - Raw Eval Created by dab ??? ?? 2009 Last Edited: Jul 29 2010 This module allows you to perform raw php commands. This module uses the Users array in the config so make sure you fill it in properly

Author:
David (dab)
Version:
v1.0

Field Summary
mixed

$__toString

Method Summary
void

__construct(mixed sNick)

void

isAuthed(mixed sNick)

void

onConnect()

Once the MOTD is done, the bot is declared connected.

void

onKick(string sWho, string sChan, string sLeft, string sWhy)

This is called when a user is kickd.

void

onMsg(string sFrom, string sTo, string sMsg, string sSpecial)

Most obvious.

void

onNick(string sOld, string sNew)

This is called when a user changes his/her nickname

void

onPart(string sWho, string sChan, string sWhy)

When a user parts

void

onPrivMsg(string sFrom, string sMsg)

Called when someone sends a message directly to the bot

void

onQuit(string sWho, string sWhy)

When a user Quits the IRC network

void

parse(mixed sCode)

void

raw(mixed sLine, mixed sWhere, Bot oBot)

void

userLevel(mixed sNick)

Methods inherited from DeBot\Module
onConnect, onJoin, onKick, onMode, onMsg, onNick, onNotice, onPart, onPrivMsg, onPrivNotice, onQuit, onRaw, onTopic, onWhois, setNick

Field Detail

Modules/RawEval.php at line 17

__toString

public mixed $__toString = null

Method Detail

Modules/RawEval.php at line 21

__construct

public void __construct(mixed sNick)

Modules/RawEval.php at line 218

isAuthed

public void isAuthed(mixed sNick)

Modules/RawEval.php at line 55

onConnect

public void onConnect()

Once the MOTD is done, the bot is declared connected. We can get that callback here. :D


Modules/RawEval.php at line 259

onKick

public void onKick(string sWho, string sChan, string sLeft, string sWhy)

This is called when a user is kickd.

Parameters:
sWho - The person doing the kicking
sChan - The channel the user was kicked from
sLeft - The user who was kicked from teh channel
sWhy - The reason for being kicked

Modules/RawEval.php at line 134

onMsg

public void onMsg(string sFrom, string sTo, string sMsg, string sSpecial)

Most obvious. Called when a channel message is received.

Parameters:
sFrom - who the message is from
sTo - Where the message was sent
sMsg - The message itself
sSpecial - Optional. Was the message sent in a special way? %#channel @#channel

Modules/RawEval.php at line 269

onNick

public void onNick(string sOld, string sNew)

This is called when a user changes his/her nickname

Parameters:
sOld - The old nickname (the person performing the change)
sNew - The new nickname (what to refer them as now)

Modules/RawEval.php at line 241

onPart

public void onPart(string sWho, string sChan, string sWhy)

When a user parts

Parameters:
sWho - The user who parted
sChan - The channel parted
sWhy - Optional. The reason for parting (Part message)

Modules/RawEval.php at line 63

onPrivMsg

public void onPrivMsg(string sFrom, string sMsg)

Called when someone sends a message directly to the bot

Parameters:
sFrom - the user sending the message
sMsg - the message sent

Modules/RawEval.php at line 233

onQuit

public void onQuit(string sWho, string sWhy)

When a user Quits the IRC network

Parameters:
sWho - The user who quit
sWhy - The quit message

Modules/RawEval.php at line 283

parse

public void parse(mixed sCode)

Modules/RawEval.php at line 165

raw

public void raw(mixed sLine, mixed sWhere, Bot oBot)

Modules/RawEval.php at line 224

userLevel

public void userLevel(mixed sNick)

DeBot Framework