Skip to content

Instantly share code, notes, and snippets.

@ieda
Created December 11, 2013 05:13
Show Gist options
  • Save ieda/7905398 to your computer and use it in GitHub Desktop.
Save ieda/7905398 to your computer and use it in GitHub Desktop.
Limechat on Windowsのスクリプト |←おうち|     ┗(^o^ )┓三
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