Comments (11)
I'm having this same issue. @ramswaroop do you think you can merge the PR? If the issue is that @lurraca did not change the code to check both event types, I can go ahead and do it. Thanks, great project BTW!
from jbot.
Hmm, it never happened to me. Let others comment on it too. Will keep this issue open.
from jbot.
Found the root cause. Inside the following method,
public final void handleTextMessage(WebSocketSession session, TextMessage textMessage)()
Root cause - Slack's im_created
event gets triggered while talking to a newly added user.
As mentioned in this im_created event guide, this event should usually be followed by a im_open
event which your code is looking for. But, that's not the case. I think, that's what they meant by 'usually'? Whatever be the case, I have added the check for the im_created
in the code.
[Note]: Check this bug I raised in slack issues.
from jbot.
Glad your issue is resolved.
from jbot.
@sunayansaikia I am facing the same issue. What do you mean by
added the check for the
im_created
in the code.
?
from jbot.
Ok, I think I got it.
I made the change on the Jbot source code to check for im_created
and add the channel to DmChannels
list, so when that new user sends a direct message to the bot, jbot is able to determine that is a DIRECT_MESSAGE
. @ramswaroop is this something that you would like me to send a PR to fix it?
from jbot.
Hi @lurraca, looks like jbot should check for both the events. Yes, definitely you can send a PR for the fix. Thanks a mil for contributing. 👍
from jbot.
@mndominguez okay I will do that today 👍
from jbot.
@mndominguez I just merged @lurraca PR #57.
from jbot.
@ramswaroop fantastic, thank you! Is the fix going to be on a new build on Maven Central?
from jbot.
@mndominguez no it's not gone to maven yet. I will release it after some tests which may take some days as I am working on other new features as well.
from jbot.
Related Issues (20)
- Is there any guidance on how to use this for AWS Lambda? HOT 1
- Unescape text sent from JBot
- failed with the error "http_client_error" HOT 1
- /webhook is not exposed HOT 3
- jbot-example - SlackBot class Conversion bug HOT 1
- Websocket session closing HOT 4
- not working with if bot is created using slack application
- Slackbot does not function and I see that No web socket url returned by Slack HOT 3
- Slackbot is down with java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed HOT 11
- Error while extracting response for type [class me.ramswaroop.jbot.core.slack.models.Event]
- Not able to post replies HOT 1
- Persistent Menu
- Simple menu with slackBot
- How to get the email id of an user who is interacting with the bot in reply to slack?
- Recently slack bots using RTM api are not working and stops responding. An issue is raised to slack but no resolution yet since two weeks. Can you help with an example of slack socket mode app with spring boot? HOT 1
- Schedule Meeting time accepts any string. Needs time validation
- Chatbot is not working in your page HOT 1
- How to use jbot in a standalone application without spring boot
- Any interest in a PR that will bump to SpringBoot v2.7.6? HOT 3
- Reply in thread feature
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 jbot.