-
Notifications
You must be signed in to change notification settings - Fork 621
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
Add Events API in socket mode for Slack adapter #2161
base: master
Are you sure you want to change the base?
Conversation
@@ -47,6 +53,135 @@ func (b *Bslack) handleSlack() { | |||
} | |||
} | |||
|
|||
func (b *Bslack) handleSlackClientSocketMode(messages chan *config.Message) { |
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.
Method Bslack.handleSlackClientSocketMode
has 107 lines of code (exceeds 50 allowed). Consider refactoring.
@@ -47,6 +53,135 @@ func (b *Bslack) handleSlack() { | |||
} | |||
} | |||
|
|||
func (b *Bslack) handleSlackClientSocketMode(messages chan *config.Message) { |
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.
Method Bslack.handleSlackClientSocketMode
has a Cognitive Complexity of 47 (exceeds 20 allowed). Consider refactoring.
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.
The PR diff size of 236869 lines exceeds the maximum allowed for the inline comments feature.
- Added support of Event API in socketMode - Fix files upload for new applications
Code Climate has analyzed commit 5b86262 and detected 4 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
@kolsys Could you please update the Dockerfile? The current version in the master branch doesn’t work correctly. |
Whats wrong with the master version? I've build and run it. |
Hi. We experiencing errors downloading images. Look like the file URL is empty. config
Also tried without MediaDownloadPath/MediaServerDownload options - result is the same. logs
we are running bridge in k8s (without nat) but webockets seems to be work, pings look fine
|
@xeonic-ant |
Just confirming, is there any ability within this using the new slack app to post in a channel within slack using a nickname that isn't the same name as the bot (so as to preserve / bridge the nickname and avatar?) |
This is beta version for modern Slack applications.
Changes implement Slack Events API in socket mode, see #964.
Fixes #2159
It also fixes files upload to Slack for modern Apps.
To activate Ecvents API in SocketMode you must: