Viewing topic:PHP IRC bot - Describe in channel (/me)
Page:
1
06-11-2007 - 17:43
After few weeks of projects and exams at school, finally found some time to work on me php bot. I have a script which describes in a channel (also /me,/ctcp action). The bot gives an error: DESCRIBE: UNKNOWN COMMAND (same with me and ctcp action).
The current format I use is:
I searched the internet for hours and tried all possible commands like describe, me and ctcp action, but none seem to work. Does anybody know how to let the PHP bot describe in a channel?
Regards,
Narthalion
The current format I use is:
| code | |
|
1 2 |
if(strtolower($command) == ":!spliff" && $ex[4] != $null) {
fputs($socket, "DESCRIBE ".$ex[2]." :gives ". $ex[4] ." a huge spliff...n");
|
I searched the internet for hours and tried all possible commands like describe, me and ctcp action, but none seem to work. Does anybody know how to let the PHP bot describe in a channel?
Regards,
Narthalion
06-11-2007 - 18:16
You need a special character before DESCRIBE and at the end of it. Unfortinatlly i dont know what the ascii number was, i thought 64 or something.
I recommend you to echo the output of the bot, and just use describe yourself in the channel where the bot is. That way you can get the character that you need. (C++ dos window prompts is as a smiley
)
I recommend you to echo the output of the bot, and just use describe yourself in the channel where the bot is. That way you can get the character that you need. (C++ dos window prompts is as a smiley
)
06-11-2007 - 20:07
The only output the bot gives is:
The action makes now sense to me... thnx for helping out again btw
Narthalion
| code | |
|
1 |
:Narthalion!~ssh7b442@Swift-FEC07277.cable.wanadoo.nl PRIVMSG #babylon-inc :ACTION LOLLOL[ |
The action makes now sense to me... thnx for helping out again btw

Narthalion
06-11-2007 - 20:52
Hmm no strage chars around the stuff? (Hehe i admit i thought it was describe and not action)
Btw cool to see another dutchman here on CM
Btw cool to see another dutchman here on CM
06-11-2007 - 22:17
YEh, Dutchies taking over the world :P
Thnx for all ur help
Thnx for all ur help
08-11-2007 - 14:10
Hi Narthalion, I noticed in your host that its prefixed with Swift, I'm on SwiftIRC all the time so just drop me a message if you need any help. =]
Page:
1
Reply to topic
Reply to topic

