Re: [Tutor] How to interact with users on IRC using Python

2012-04-16 Thread Puneeth Chaganti
On Mon, Apr 16, 2012 at 8:41 PM, Surya K wrote: [snip] > So, what IRC commands should I use and how do I typically implement them? I found this useful -- http://www.irchelp.org/irchelp/rfc/rfc.html ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] How to interact with users on IRC using Python

2012-04-16 Thread Walter Prins
Hi, On 16 April 2012 17:11, Surya K wrote: > Actually, I am writing a small IRC bot for a game (A Multiplayer one). > > This how my code looks. (I this code, I am just trying to read from IRC > client and send a message to it..) > > > s.send("NICK %s\r\n" % NICK) > > s.send("USER %s %s bla :%

Re: [Tutor] How to interact with users on IRC using Python

2012-04-16 Thread Samuel Toogood
On 16/04/12 16:11, Surya K wrote: > Actually, I am writing a small IRC bot for a game (A Multiplayer one). > > > This how my code looks. (I this code, I am just trying to read from IRC > client and send a message to it..) > > import sys > > import socket > > import str

[Tutor] How to interact with users on IRC using Python

2012-04-16 Thread Surya K
Actually, I am writing a small IRC bot for a game (A Multiplayer one). This how my code looks. (I this code, I am just trying to read from IRC client and send a message to it..) import sysimport socketimport string HOST="irc.freenode.net"PORT=6667NICK="MyBot"IDENT="Mybot"REALNAME="Python"readb

Re: [Tutor] Iterate Suggestion

2012-04-16 Thread bob gailer
On 4/15/2012 10:54 PM, bob gailer wrote: On 4/14/2012 11:27 AM, Tom Tucker wrote: Hello all. Any suggestions how I could easily iterate over a list and print the output 3 across (when possible)? One method I was considering was removing the recently printed item from the list, checking lis