DeBot Framework


DeBot\m_Cmds
Modules/Cmds.php at line 3

Class m_Cmds

Module
└─m_Cmds

public class m_Cmds
extends Module

DeBot Core - Module Created by dab Jul ?? 2010 Last Edited: Aug 15 2010 This outlines all of the currently possible callbacks available to the bot.

Author:
David (dab)
Version:
v1.0

Field Summary
mixed

$m_iCmdsAntiSpam

Method Summary
void

__construct(mixed sNick)

void

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

Most obvious.

void

onPrivMsg(string sFrom, string sMsg)

Called when someone sends a message directly to the bot

void

onPrivNotice(string sFrom, string sMsg)

Private notice (/notice DeBot ohi! )

void

saveCmds()

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

Field Detail

Modules/Cmds.php at line 14

m_iCmdsAntiSpam

public mixed $m_iCmdsAntiSpam = 15

Method Detail

Modules/Cmds.php at line 17

__construct

public void __construct(mixed sNick)

Modules/Cmds.php at line 125

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/Cmds.php at line 37

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/Cmds.php at line 121

onPrivNotice

public void onPrivNotice(string sFrom, string sMsg)

Private notice (/notice DeBot ohi! )

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

Modules/Cmds.php at line 363

saveCmds

public void saveCmds()

DeBot Framework