stenyak / breakbot

WhatsApp<->IRC gateway bot
90 stars 38 forks source link

Trying to generate a multiple bot :P #15

Closed h1rule closed 10 years ago

h1rule commented 10 years ago

Hey guys

just running 2 Whatsapp Bots.

My goal:

-> Both bots are in the same group -> Both bots are in the same IRC channel -> Generating a "spam" each other, to test whatsapp's anti-spam protection.

The problem is:

Every message, the message gets larger:

Hi next message Hi and contiunleys: thats bad! It just should send "hi" :) What to edit in the .py scripts?
stenyak commented 10 years ago

What you are seeing is the expected behaviour, the bot is simply quoting the other participants.

If you want to remove the quoting (i.e. leave quoted texts verbatim), edit bot.py, look for strings that contain <%s> in them (which is the prefixed to each message), and remove it.

h1rule commented 10 years ago

alright, i removed all <%s> but now the bot cant catch or handle any messages. what lines do i have to remove excatley for this:

But text should be visible.

Uploaded a image for the original bot.py

http://www.capsload.it/images/1390914219.png (After like 10 lines, it stops because the message will be too long)

It should be like this: http://www.capsload.it/images/1390914347.png (unlimited, because just the text is catched + sent)

stenyak commented 10 years ago

Remove all strings that say <%s>. You must of course adapt the formatting parameters.

This is basic python, you need to learn python in order to be able to correctly modify the python code of the bot. http://www.diveintopython.net/native_data_types/formatting_strings.html

h1rule commented 10 years ago

I dont get it :(.

Could you upload a bot.py without the Nicknames?

Its really important. I tried it since 6 hours. Always getting some kinds of errors.

ozbek commented 10 years ago

This deserves a smiley: ^^

stenyak commented 10 years ago

@capsload you replied to my comment not even 5 minutes after reading it. Unfortunately I don't have the time to teach random Internet peoples how to program ;-)

Please, at least check the link I kindly provided in my previous comment. If you still have problems after that, search the web for more information about python, or ask at any programming/python forum.