Comments (4)
Hi,
i am playing around with letting the bot post lists and tell the user to send a command to select a list entry.
Maybe this is something for the group admin views, it should made safe that no wrong messages will been send and avoid blocking.
But we need a group member listing --> #39
I did the following to rate users (i use the bot for soccer management)
def rate(self, message=None, match=None, to=None): if message.isGroupMessage() == True: return TextMessageProtocolEntity("Die Spielerbewertung ist in der Gruppe nicht erlaubt, bitte durch Direktkonversation bewerten.", to=message.getFrom()) else: if len(message.getBody()) == 7: try: float(int(message.getBody()[6:])) except ValueError: return TextMessageProtocolEntity("Es sollten schon eine Zahl zwischen 0 und 6 sein Dumbo!", to=message.getFrom()) if os.path.exists(rank + message.getFrom()): for filename in os.listdir(user): if not os.path.exists(rank + message.getFrom() + "/" + filename): spielername = open(user + filename, "r") text_file = open(rank + message.getFrom() + "/" + filename, "w") text_file.write(message.getBody()[6:]) text_file.close() return TextMessageProtocolEntity("Du hast " + spielername.read() + " mit " + message.getBody()[6:] + " Punkte(n) bewertet. Sende /rate für die nächste Bewertung.", to=message.getFrom()) else: if os.path.exists(rank + message.getFrom()): for filename in os.listdir(user): if not os.path.exists(rank + message.getFrom() + "/" + filename): spielername = open(user + filename, "r") return TextMessageProtocolEntity("Sende /rate (0..6) um " + spielername.read() + " zu bewerten.\r\n\r\n/rate 0 keine Wertung\r\n/rate 1 sehr gut\r\n/rate 2 gut\r\n/rate 3 befriedigend\r\n/rate 4 ausreichend\r\n/rate 5 mangelhaft\r\n/rate 6 ungenügend", to=message.getFrom())
Regards
from whatsapp-bot-seed.
Hi,
any news here?
Regards X23
from whatsapp-bot-seed.
@joaoricardo000 joão ricardo 000 I can not install this bot can help me please need urgently my company is in need of a bot like yours please help me
from whatsapp-bot-seed.
from whatsapp-bot-seed.
Related Issues (20)
- Information about this repository. HOT 9
- Receive "bad file descriptor" HOT 1
- Bot leaving group HOT 1
- Server has been started but not working when i message HOT 1
- After installing pip install -r opt/requirements.pip Bot is not Working
- Error few commands are not working
- not able to send and receive messages HOT 2
- How to install Whatsapp bot
- yowsup old version error HOT 2
- ImportError in RouteLayer HOT 1
- installing Requirements.pip
- Leave
- Proposing a PR to fix a few small typos
- Need help in understanding this whatsapp bot
- Error when extracting key use the yowsup-cli HOT 2
- Stating reasons for getting blocked often. HOT 1
- Google search not working because of API changes
- No reply from bot HOT 6
- how i get password? HOT 5
- TTS NOT WORKING HOT 3
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 whatsapp-bot-seed.