s.send("NICK %s\r\n" % NICK)
s.send("USER %s %s bla :%s\r\n" % (IDENT, HOST, REALNAME))
s.send("JOIN :%s\r\n" % CHAN)
s.send("PRIVMSG %s :%s\r\n" % (CHAN, "Hello There!"))
s.send("PRIVMSG %s :%s\r\n" % (CHAN, "I am a bot"))
for line in temp:
s.send("PONG %s\r\n" % line)
And my error is:
1 2 3 4 5 6
raceback (most recent call last):
File "C:/Documents and Settings/omitted/Desktop/testbot", line 16, in <module>
File "C:\Python27\lib\socket.py", line 224, in meth
error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Again, I am trying to connect to a quakenet server.
I am now using hexchat scripts and got hello world to print. How do I say in python code, using hexchat,
if (this text line == printed by someone)
texttoadd = nextline
listinquestion = nextline }
EDIT: My code is example code from docs and is
__module_name__ = "helloworld"
__module_version__ = "1.0"
__module_description__ = "Python module example"
but my code doesn't actually send the text just prints it to console so it looks like it sended but actually just was printed to the console.
This kind of statement worries me mostly because the document you are referring to is only about 62 pages long. What was the last book you read? If you've never read one of these before then someone should tell you that a good portion of it will be white space, tables, sample exchanges and error code definitions. So you could probably have a functional understanding of this protocol by reading less then 50 pages. Does it still seem like too much to bother reading?
How to connect
How to send messages
How to receive messages
How to /me
How to reply to a ping
How to handle a kick/ban
How to know if an error happened
How to know when somebody joins/leaves
How to disconnect
There are plenty of other messages there, like those to retrieve the list of channels, editing modes, sending files, topic changes, invites, motd, whispers and so on.