Spam Bot, broken pipe

View: New views
4 Messages — Rating Filter:   Alert me  

Spam Bot, broken pipe

by Someone Something :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a irc spam bot (only testing on my channel :P ) whose main loop is the following:

privc="PRIVMSG "+self.channel
while True:
     self.sock.send(privc=" :SPAM SPAM SPAM!");
     time.sleep(2);

And it gives an error "Broken Pipe".
How can I fix this?

--
http://mail.python.org/mailman/listinfo/python-list

Parent Message unknown Spam Bot, broken pipe

by Someone Something :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



I'm just testing it on my channel! I promise! Besides, I'm doing it to learn about sockets! Please!


On Sat, Nov 7, 2009 at 8:07 PM, Krister Svanlund <krister.svanlund@...> wrote:
On Sun, Nov 8, 2009 at 2:00 AM, Someone Something <fordhaivat@...> wrote:
> I have a irc spam bot (only testing on my channel :P ) whose main loop is
> the following:
>
> privc="PRIVMSG "+self.channel
> while True:
>      self.sock.send(privc=" :SPAM SPAM SPAM!");
>      time.sleep(2);
>
> And it gives an error "Broken Pipe".
> How can I fix this?

By doing it right... unfortunaly I don't approve of spam and can
therefor not tell you how to do that.



--
http://mail.python.org/mailman/listinfo/python-list

Re: Spam Bot, broken pipe

by Someone Something :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

anyone?

On Sat, Nov 7, 2009 at 9:06 PM, Someone Something <fordhaivat@...> wrote:


I'm just testing it on my channel! I promise! Besides, I'm doing it to learn about sockets! Please!


On Sat, Nov 7, 2009 at 8:07 PM, Krister Svanlund <krister.svanlund@...> wrote:
On Sun, Nov 8, 2009 at 2:00 AM, Someone Something <fordhaivat@...> wrote:
> I have a irc spam bot (only testing on my channel :P ) whose main loop is
> the following:
>
> privc="PRIVMSG "+self.channel
> while True:
>      self.sock.send(privc=" :SPAM SPAM SPAM!");
>      time.sleep(2);
>
> And it gives an error "Broken Pipe".
> How can I fix this?

By doing it right... unfortunaly I don't approve of spam and can
therefor not tell you how to do that.




--
http://mail.python.org/mailman/listinfo/python-list

Re: Spam Bot, broken pipe

by Michael Torrie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Someone Something wrote:
> I have a irc spam bot (only testing on my channel :P ) whose main loop is
> the following:

Poor choice of words on your part.  Anything spam-related is evil and
will not get a response.

That said, "IRC bots" are certainly okay and common, and are useful
tools.  Some are even written in Python.
--
http://mail.python.org/mailman/listinfo/python-list