-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated Logic and Tests for Slack SDK v3 support #309
Conversation
token: process.env.HUBOT_SLACK_TOKEN | ||
autoReconnect: !exitProcessOnDisconnect | ||
autoMark: true | ||
exitOnDisconnect: exitProcessOnDisconnect | ||
proxyUrl: process.env.https_proxy | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the change in the options means this qualifies as a breaking change, and hence will require us to bump the major version number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also want to verify that the reconnection logic is working.
There's another big issue: If you send a message to the bot in a public channel, it responds in a DM—always. The original responded in the same channel. Correction. It always sends its responses to the first channel that it receives a message in since starting. |
@DEGoodmanWilson I had to roll back your package.json commit. Looks like you overwrote it with the version from your |
Adding additional V3 test coverage
1 similar comment
🎉 👍 |
- Should help with sporadic disconnect issues. - See slackapi/hubot-slack#309
* Messages from bots are no longer filtered out, which is both cool and potentially terrifying, but we should never have silenced the robots in the first place. | ||
* Remember how if you tried to hack on this adapter and used `npm link` to plug that into a live bot? And how that didn't work? Yeah? Well now it does. Stupid `instanceof`. | ||
* Total refactoring of the functionality, exposing a slightly different interface. So watch out for that. | ||
* You can now access the underlying Slack client directly, for when you really need low-level functionality therein. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there documentation available on how to do just that ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.rtm
or .web
will return the clients.
.send
is just a shortcut to select the best method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
If there is documentation on how to upload files or send attachments in hubot slack messages, I'm having a hard time locating it. Here's where I looked:
Can someone point me to a brief example of hubot uploading a file to a slack channel? |
@ifreecarve did you find out how to upload files ? Same situation here. Thanks ! |
Elsewhere in this thread, it was noted that
So I assume that, worst case, you get the native client and access that method directly. Haven't tried it yet. |
Thanks, I'll give it a try ! |
I'm using |
Thanks ! the upload works. The binary files are however displayed as text and unreadable, but this seems to be related to another issue. |
in
|
This is a first pass at adding support for v3 of the Slack SDK 💥
The core logic has been updated to use
dataStore
and the test stubs have been modified to support the relocation of data calls.