Comments (2)
I need more information regarding the emoji issue. Is it the problem described in #6, or the problem described in #24, or is it something else entirely?
If it's different than those two issues, I need you to please attach the logs generated by the bot (log.txt), so that I can try to find the problem.
from breakbot.
It seems to be the same problem described in #6, however the script was able to mirror all the example characters he named and in my case I just wasn't able to send emoji.
The other issue I named is the same as #24.
I was able to find two fixes for both of those issues, but they're not perfect since I can't write python code myself.
I fixed issue #24 by changing line 20 of bot.py from "split = msg.split(":", 1)" to "split = msg.split(":", 0)" this breaks the private messaging feature, however if you're only using the bot for group chats it's probably worth it to prevent half of a message being dropped if it's got a ":" in it.
I found a workaround for issue #6 by changing Python's default encoding from ASCII to UTF-8.
I did this by changing "encoding = "ascii"" to " encoding = "utf-8"" in /usr/lib/python2.7/site.py
This is not recommended as it might cause problems with other python scripts however the server I'm running this on doesn't run any other python scripts so this works for me.
Once again these more workarounds than they are fixes, so any actual fixes would be appreciated but maybe these will help anyone who's also having these issues.
from breakbot.
Related Issues (20)
- Privatemessages not working HOT 4
- 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
- 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.