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

Commit

Permalink
remove user symbol from regex + add example
Browse files Browse the repository at this point in the history
  • Loading branch information
blunket committed May 21, 2018
1 parent d269bc4 commit 5362723
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/conduct.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
// None
//
// Commands:
// hubot conduct - Remind the channel about the devICT code of conduct
// bot conduct - Remind the current channel about the devICT code of conduct
// bot conduct #hubot - Remind the #hubot channel about the devICT code of conduct (omit "bot" and this can be in a DM to bot)

module.exports = (robot) => {
robot.respond(/(?:code(?: of)? )?conduct(?:\s?([#@][\w-]+))?/i, (msg) => {
robot.respond(/(?:code(?: of)? )?conduct(?:\s?(#[\w-]+))?/i, (msg) => {
let msgs = [
"devICT is dedicated to a safe and harassment-free experience for " +
"everyone. We do not tolerate harassment in any form. If you have any " +
Expand Down

0 comments on commit 5362723

Please sign in to comment.