Anonymously add a comment: (or register
|Laugh out out out loud?
Read this, its funnier
|really cool, but i cant get it to work properly. i also really like python. If i knew more about irc i could probably find what im doing wrong... thats what happens when you use mirc, it does everything for you and you learn nothing.
|so u connect the shell to the server after u made the bot mine is just a help questionaire bot how to do things like
hello= "my name is Legion"
just making it respond to text so it can give a answer to help user out on the server
|Hope you're not claiming this as your own...
|Can you read? That's quite different...|
|As a matter of fact, it's not so different. The core is obviously the same, see the unused "readbuffer" variable in the code published here for example.
Since TCP is a stream and not based on datagrams, the code in this article fails but the one at oreilly.com works. So, the author who modified the simplebot.py broke it. The bot here will fail to process messages under lag or flooding as a result of these undesirable changes.
Funny enough, backslashes have died during submitting, and even the security check in place (testing owner name) will fail under flood. Just send enough data and the lack of buffering will cause the bot to eventually process PRIVMSG contents as a raw irc protocol message...
The original source should've definitely been credited.
|This piece of code is horribly mangled and ill-conceived, not to mention sloppily lifted from an O'Reilly example.
If you got here from google looking for help crafting an IRC bot, see http://python-irclib.sourceforge.net/. This is a robust implementation of the IRC protocol in an event-driven model like perl's Net::IRC.
|it doesnt work. the program says 'line' isnt defined and when you assign it something... it gets stuck in a while loop|
|Allthough it probably is obvious to most readers, I still felt to comment on the security issues in this code.This bot is _not_ secure and should not be used for anything else than studying/experimenting with elementary socket programming.
For one thing, since it does no true buffering, one might get the bot to _execute a system command_ by flooding it with constructed PRIVMSG's, as pointed out by muzzy.
|damn I tried making auto op but it doens't op me :C|
|For some reason this article doesn't have the escape characters in it. Instead of showing "\n" it just shows "n." That could confuse people. =)|
|I still felt to comment on the security issues in this code.This bot is _not_ secure and should not be used for anything else than studying/experimenting with elementary socket programming. flash games|
|I think you should all stop bitching and understand that even though it's not the "best" code, it's still a WORKING piece of code. Why rely on other librabries or modules when you can simply use built in socket?|
|I dont get why this would even stay connected, the ping:pong looks wrong to me. he is checking for 'PRIVMSG' in the line, then in the if block the PONG reply line hecks for the presence of 'PING' in line but the ping request is
so as there is no 'PRIVMSG' in that, I doubt it would get noticed.
I strongly urge people to use this code only as a basic base structure, do not copy it, you will be disappointed later. Instead check out the latest RFC http://www.kvirc.de/docu/doc_rfc2812.html and build off of that.
|To customize my web scripts, I use Python as it has more useful features than TCL and is easy to load. Another advantage it provides is that creating bots in Python is like a breeze! Thanks to the author for sharing the creation process. <a href="http://www.sidgilreath.com/firm-overview/">nashville truck accident law firm</a>|
|The ping:pong in that code is wrong, it won't work. Anyone know of a code that works?<a href="http://www.keeperskit.com/product/categories/goalkeeper_gloves/puma_goalkeeper_gloves/index.html">Puma Goalkeeper Gloves</a>
|From the looks of it, it's just that his indentation is wrong. There should be two separate if statements; after parsemsg(line), the next four lines should jump back an indentation level.|
|How do I know what socket to create?|
|the socket family is AF_INET and the type is SOCK_STREAM (which is TCP), but these are all defaults so you don't have to enter them, so both lines below are the same
1: s = socket.socket()
2: s = socket.socket(socket.AF_INET,socket.SOCK_STREAM,0)
|NOTICE AUTH :*** Looking up your hostname
NOTICE AUTH :*** Checking Ident
NOTICE AUTH :*** Found your hostname
NOTICE AUTH :*** No ident response
this is what i get.
|it might be a proxy causing a problem and it might not happen on certain networks|
|No it is not a proxy problem. It is a problem in the code.
s.send('USER '+IDENT+' '+HOST+' bla :'+REALNAME+'n') #Identify to server should look like this
s.send('USER '+IDENT+' '+HOST+' bla :'+REALNAME+'\r\n') #Identify to server
|Thanks for this tutorial, as I'm still newbie, articles like this is very useful for me.
download pc games
|Since TCP is a stream and not based on datagrams, the code in this article fails but the one at oreilly.com works. So, the author who modified the simplebot.py broke it. The bot here will fail to process messages under lag or flooding as a result of these undesirable changes.
Matt - Luxury Car Seats
|Great sample, thanks! Vera @ <a href="http://www.yourloan.ca/">Student Loans Canada</a>|
|<a href="http://www.made-in-china.com/products-search/hot-china-products/Aluminium_Doors.html">Aluminium Door</a>
<a href="http://www.made-in-china.com/products-search/hot-china-products/Aluminum_Profile.html">Aluminum Profile</a>
<a href="http://www.made-in-china.com/products-search/hot-china-products/Lock_Body.html">Lock Body</a>
<a href="http://www.made-in-china.com/products-search/hot-china-products/Food_Additive.html">Food Additive</a>
<a href="http://www.made-in-china.com/products-search/hot-china-products/Amusement_Park.html">Amusement Park</a>
<a href="http://www.made-in-china.com/products-search/hot-china-products/Dog_Collar.html">Dog Collar</a>
|RegCure Review is the best way to get a lot of information about your PC and Python|
|No offense personally and thanks for trying, but how the fuck is this piece of shit at the top of google! How can "python irc bot tutorial" not turn up ANYTHING better - maybe even OOP since it is fucking python for fuck's sake! Don't mind me - I haven't smoked weed in 2 days!|
|Shopping is more popular in recent year especially for women. Women want to do more and more shopping and look different to others. Today, online shopping is also so popular and most of the people like it.http://toobby.com
|Shopping is more popular in recent year especially for women. Women want to do more and more shopping and look different to others. Today, online shopping is also so popular and most of the people like it. http://toobby.com
|Always excited for the movie in the weekend. thanks for sharing. <a href="http://www.affordablehealthinsurancez.com/">affordable health insurance</a>|
|You've got to make thing happen as plan. <a href="http://www.makemymtg.com/">mortgage loan refinance</a>|
|This is only at the top of google because the captcha is too easy for automated reading, so all these "Made in China" comments are spam increasing the pagerank. Unfortunately the comments telling people to ignore this page are way down at the bottom.|