Comments (4)
Private messaging should now work in both directions (irc>wa, and wa>irc).
Please pull the most recent version and let me know if you still have problems.
from breakbot.
Confirmed.
Whatsapp > IRC works.
IRC > Whatsapp not working.
2014-01-29 10:42:39.077555 II bot.py:101: <<< WA 1390988559000: 49151xxxx in 491775xxxx said to None: joooo
2014-01-29 10:42:39.079257 II irc_bot.py:166: ->- IRC ven000m: joooo
2014-01-29 10:42:39.084483 II irc_bot.py:152: >>> IRC PRIVMSG ven000m : joooo
2014-01-29 10:42:48.604819 II bot.py:76: <<< IRC 1390988568603239: ven000m in WhatsApp said to None: hi
2014-01-29 10:42:48.604901 EE catch_them_all.py:12:
Traceback (most recent call last):
File "/home/niko/breakbot/catch_them_all.py", line 10, in wrapper
return function(_args, *_kwargs)
File "./bot.py", line 80, in irc_msg_received
raise Exception("Private message sent to no one?")
Exception: Private message sent to no one?
2014-01-29 10:42:48.604901 EE catch_them_all.py:12: Exception in function irc_msg_received
from breakbot.
That is the expected behaviour, maybe the error message is not very intuitive. The reason is that, whenver you open whatsapp and talk to the bot, the bot doesn't know who to direct your message to.
The way it works is by prefixing the nick of the other person. For example, instead of "joooo", you should write "stenyak: joooo". The bot will then know "jooo" was directed at "stenyak".
Keep in mind that you can be private-messaging to 5 persons at the same time, and you need to know who each message you write is directed to.
You can't simply assume messages are directed at the previous person X (because other person Y may send a message before you hit "send", and the message directed at X will be sent to person Y instead).
I'm open to suggestion on how to handle this situation though. In any case, I should document it better...
from breakbot.
It works with Name: text
Thank you!
from breakbot.
Related Issues (20)
- Trying to generate a multiple bot :P HOT 6
- Not an issue HOT 1
- Anyway to get WhatsApp Password? HOT 3
- Private Message HOT 1
- Error onMessageReceived from whatsapp. HOT 2
- Send Message to NON-Contacts HOT 2
- ImportError: No module named Yowsup.connectionmanager HOT 1
- ImportError: cannot import name warning HOT 4
- ":" character doesnt work at the beginning of the text HOT 6
- Messages with emoji or text smileys entirely dropped HOT 2
- Since today: wa_bot.py:138: Auth Failed: invalid HOT 23
- Again ":" Bugs. But only if special things written. HOT 3
- Starting the bot. [Connect to IRC]
- python yowsup/yowsup-cli -h.
- wa_bot.py:138: Auth Failed: invalid
- Connections interrupts instantly HOT 2
- Syntax error with bot.py HOT 1
- Automatic Update like codeRUS's API for breakbot?
- mgp25! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from breakbot.