Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

accept a channel for bot conduct #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

blunket
Copy link
Contributor

@blunket blunket commented May 3, 2018

doesn't do DMs, not sure how i'd do that.

switched to JS cause i'm more comfortable than i am in coffeescript

fix #35

just realized there's already a PR for this #55 woops :(

Copy link
Member

@jcbwlkr jcbwlkr left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! I looked and yeah starting a DM to a user is a tad complicated so what you have here is good enough for now. I have a few tweaks below then we'll be good

// hubot conduct - Remind the channel about the devICT code of conduct

module.exports = (robot) => {
robot.respond(/(?:code(?: of)? )?conduct(?:\s?([#@][\w-]+))?/i, (msg) => {
Copy link
Member

Choose a reason for hiding this comment

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

If we aren't supporting DMs to a person then remove the @ from the regex

// None
//
// Commands:
// hubot conduct - Remind the channel about the devICT code of conduct
Copy link
Member

Choose a reason for hiding this comment

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

Please add an example of sending the conduct message to a particular channel

@blunket
Copy link
Contributor Author

blunket commented May 3, 2018

yay! I'm not sure how to actually test that it would send to the proper channel , but this partially came from an example and my regex capturing was working so I assume it's going to work lol

@blunket blunket force-pushed the ConductAcceptChannel branch from 163ad25 to 5362723 Compare May 21, 2018 23:48
@chrisl8
Copy link
Member

chrisl8 commented Sep 10, 2020

Is this still legit, or should we close it, being 2 years old now?

@blunket
Copy link
Contributor Author

blunket commented Sep 10, 2020

I assume it'll still work. I figure the goal is just to allow someone to bot conduct a channel anonymously

@blunket
Copy link
Contributor Author

blunket commented Sep 10, 2020

And when I said "I figure", that was before I realized there was an issue linked to this explaining just exactly that 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conduct: Anonymously Message Users or Channels
3 participants