Chatbot did not response to some people
See original GitHub issueHi,
I’m developing a simple chatbot using slackbot toolkit. However, my bot only response to some people (about 3 people) in the channel. When other people send messages to the bot, nothing received at the respond_to function. My function is this:
@respond_to('(.*)')
def process_message(message, text):
logger.info(text)
text = text.lower()
if (text.startswith('hello')):
message.reply('Hi, how can I help?')
else:
reply = TFIDF.predict(text)
message.reply(reply)
Do you have any suggestion? Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
5 Typical Chatbot Fails + Prevention Tips - Userlike
Chatbot fails can be hilarious, but when you're the victim, it's just frustrating. Here's how to prevent common fails at your business.
Read more >Chatbot does not respond to some users : r/Telegram - Reddit
Background: I am currently developing some DialogFlow chatbots, and one of our tasks was to integrate if with telegram.
Read more >Breaking Down the Pros and Cons of Chatbots as a Customer ...
One of the advantages of chatbots is that, unlike humans, bots can respond to customer inquiries around the clock without costing you extra....
Read more >Lessons From The Failed Chatbot Revolution - CB Insights
Many chatbots couldn't understand enough human language or process enough data to complete the kinds of complex requests companies promised they ...
Read more >Why You Don't Need an AI Support Chatbot - Help Scout
While the promise of using a support chatbot is compelling, there are better ways to improve team efficiency while delivering great support.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey hey!
I helped solve a similar issue in limbot. The issue there was how the underlying slackrtm library was handling events. I can see the similar thing happening here.
In particular it’s happening due to this code:
Because you’re ignoring every event that doesn’t have the type attribute
message
you’re not able to update the user base. Of particular use to the issue that was happening in limbo, were thegroup_joined
events, when the bot is added to a new group, and theteam_joined
event, when a new member is added to the team.I’ll have a look at the codebase and see if I can figure out how to solve this here to. Any pointers you can provide to the following would be great help to me!
No response from original reporter, but this does sound like a dupe of #61.