Skip to content
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

Added the ability to send DMs from bot accounts #70

Closed
wants to merge 3 commits into from

Conversation

icelander
Copy link

Summary

A customer had the requirement to send a DM from a bot account, so I added the ability. Any channel name that starts with an @ symbol that is also a bot user will have a DM sent with the message configured in the Action's ActionDirectMessagePost

@icelander icelander requested a review from jfrerich as a code owner May 24, 2021 22:27
@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels May 25, 2021
@jfrerich jfrerich requested a review from mickmister June 29, 2021 17:14
Copy link
Contributor

@jfrerich jfrerich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @icelander! I have a couple of suggestions :)

server/manifest.go Show resolved Hide resolved
server/welcomebot.go Show resolved Hide resolved
server/welcomebot.go Show resolved Hide resolved
Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @icelander 👍 Implementation of the feature looks good

I have a request that goes along with Jason's comment above, to have the extracted function return an error so there is only one log statement for the error

server/welcomebot.go Show resolved Hide resolved
server/welcomebot.go Show resolved Hide resolved
@mattermost-build
Copy link

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@Kshitij-Katiyar
Copy link
Contributor

Closing the PR due to the PR #129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester Lifecycle/1:stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants