sanemat/hubot-tantanmen

View on GitHub
src/tantanmen.coffee

Summary

Maintainability
Test Coverage
# Description
#   Fixes misspelling '担々麺'(tan-tan-men)
#
# Commands:
#   If you post '坦々麺'(misspelled), then the hubot points out '担々麺' is valid
#
# Notes:
#   Alice> 坦々麺食べたい
#   Hubot> 坦 -> 担 Alice: 坦々麺食べたい

# Author:
#   sanemat

module.exports = (robot) ->
  robot.hear /坦々麺/, (msg) ->
    msg.send '坦 -> 担' + ' ' + msg.message.user.name + ': ' + msg.message.text
  robot.hear /坦坦麺/, (msg) ->
    msg.send '坦坦 -> 担担' + ' ' + msg.message.user.name + ': ' + msg.message.text