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

conduct can respond in dm #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions scripts/conduct.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@
#
# Commands:
# hubot conduct - Remind the channel about the devICT code of conduct
# hubot remind <username> of COC - Sends a DM to user with code of conduct
# hubot remind <channel> of COC - Remind <channel> about the devICT code of conduct

module.exports = (robot) ->
robot.respond /(code( of)? )?conduct/i, (msg) ->
msg.send "devICT is dedicated to a safe and harassment-free experience for " +
msg.send("devICT is dedicated to a safe and harassment-free experience for " +
"everyone. We do not tolerate harassment in any form. If you have any " +
"questions or concerns please feel free to reach out to one of the devICT " +
"organizers. Our anti-harassment policy can be found at: " +
"https://devict.org/conduct"
msg.send "Generally let's keep things PG."
"https://devict.org/conduct")
msg.send("Generally let's keep things PG.")

robot.respond /remind (.*) of COC/i, (msg) ->
uname = msg.match[1]
robot.send({ room: uname }, "devICT is dedicated to a safe and harassment-free experience for " +
"everyone. We do not tolerate harassment in any form. If you have any " +
"questions or concerns please feel free to reach out to one of the devICT " +
"organizers. Our anti-harassment policy can be found at: " +
"https://devict.org/conduct")
robot.send({ room: uname }, "Generally let's keep things PG.")