Created
November 15, 2014 19:00
-
-
Save michikono/bbe31d12e0f9eaadd413 to your computer and use it in GitHub Desktop.
jaja.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# A script to translate laughter to Argentina's native language | |
# | |
# Notes: | |
# :) | |
# | |
# Author: | |
# Michi Kono | |
module.exports = (robot) -> | |
robot.hear /(ha[ha]+)/i, (msg) -> | |
if msg.message.room == 'argentina' | |
msg.send 'Ahem: ' + msg.match[1].replace(/h/g, 'j').replace(/H/g, 'J') | |
robot.hear /\blol\b/i, (msg) -> | |
if msg.message.room == 'argentina' | |
msg.send 'Ahem: ¡JAJAJA!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment