Comments (10)
The usernames are already part of the message
variable and is not adapter specific, can you maybe list the package you tried so I can try and replicate the issue?
from hubot-telegram.
The package is hubot-ambush.
It uses robot.brain.usersForFuzzyName
search and it feels like with telegram it tries to match items in list of ids not names. So I thought maybe telegram adapter doesn't handle its part correctly 😊
from hubot-telegram.
cool, will see what I can figure out
from hubot-telegram.
Do you have to hubot-redis-brain
script enabled so that your data is persisted? It will work without that, but then you need to make sure that user in question has at least sent one message to Hubot so that it's information is in memory. Without persistence it also means that you will lose all user data after each restart and all users will have to ping Hubot at least once before they become available in the lookup list.
from hubot-telegram.
How do I check if it's working? Hubot says
INFO hubot-redis-brain: Using default redis on localhost:6379
on startup.
from hubot-telegram.
Are you using Heroku?
from hubot-telegram.
My hubot is living on DigitalOcean droplet.
from hubot-telegram.
Haven't worked with that platform yet, but first I would make sure I have a Redis instance running. They should provide some sort of Redis service I would presume. If you are sure Redis is already running (and from the looks of it it might be) you can test it with a custom hubot script by doing this:
console.log(@robot.brain.users())
or if you aren't using coffeescript
console.log(robot.brain.users())
If persistence is working, this should dump a list of all the users recognized by Hubot...if this list is empty after every reset (after your previously spoke to Hubot) then your persistence is definately not working.
from hubot-telegram.
You were right my redis wasn't running. Now all is ok, but bot reacts only when you mention it,we discussed it earlier considering privacy settings.
from hubot-telegram.
Again, thanks a lot! 👍 😊
from hubot-telegram.
Related Issues (20)
- Receiving double messages when polling
- ERROR Error: HTTP status 504 returned. HOT 2
- ERROR TypeError: Cannot read property 'message_id' of undefined HOT 11
- bot no receiving messages from supergroup HOT 5
- API fields have been renamed HOT 2
- Remove bot name when using /command@bot_name HOT 1
- Maximum call stack size exceeded HOT 6
- Slow connectivity causes duplicate messages HOT 2
- Newbie request
- error on help command (and workaround) HOT 11
- Expose reply_to_message from message
- Add `hubot-adapter` topic HOT 1
- / commands in supergroups not working HOT 2
- Proxy issues HOT 1
- CoffeeScript 2.x support HOT 2
- Read the response text of a message HOT 1
- Group Chat Slash Command With Mention HOT 1
- Interval Issue HOT 1
- Markdown with Bad Entities
- Error seeking help 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 hubot-telegram.