Created
December 11, 2013 05:13
-
-
Save ieda/7905398 to your computer and use it in GitHub Desktop.
Limechat on Windowsのスクリプト |←おうち| ┗(^o^ )┓三
This file contains hidden or 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
function event::onChannelText(prefix, channel, text) | |
{ | |
stext = text.match(/.*(((行|い)き)|((食|た)べ)|((飲|の)み)|((帰|かえ)り))たい$/); | |
if (stext != null) { | |
target = text.match(/.*[^行き食べ飲のみ帰かえりたい]/); | |
if (target == null || target == "もう") { | |
target = "おうち" | |
} | |
send(channel, " |←" + target + "| ┗(^o^ )┓三"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment