|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Thanks netytan!
@Strike: the '.' is to distinguish a command typed in the channel from every day words. Some people use a '!' prefix, but I chose a period. |
|
#17
|
|||
|
|||
|
XxChris: okay, so you're hardcoding that?
netytan: actually, it is the message. "PRIVMSG" is the command, according to the RFC standard, and the stuff that follows is the message. |
|
#18
|
|||
|
|||
|
@Strike: Yeah I'm harcoding it. It's only going to have a few commands, and I'm not going to have much account management. By the why, we were referring to commands given to the bot, not those sent out by the bot to the server.
Thanks for your help guys. |
|
#19
|
|||
|
|||
|
Re Netytan: Yeah, rfind works. I was more thinking of regular expressions than find.
|
|
#20
|
||||
|
||||
|
How would ah i see, in that case yeah you'd probably have to reverse the string; i dont know of any way to search backwards from the re module.
The one time i did use IRC (with MIRC) i ended up with 7 viruses in the 10 minutes i was on there so i wont be doing that again!!!Mark. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Parsing output |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|