diff --git a/scripts/conduct.coffee b/scripts/conduct.coffee index 88938cb..47e8c47 100644 --- a/scripts/conduct.coffee +++ b/scripts/conduct.coffee @@ -9,12 +9,23 @@ # # Commands: # hubot conduct - Remind the channel about the devICT code of conduct +# hubot remind of COC - Sends a DM to user with code of conduct +# hubot remind of COC - Remind 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.") \ No newline at end of file