limeChatで禁止用語チェック と 自分の関連するキーワードがあればバルーンと音を鳴らす。
( limechat )ちゃっちープログラムだな。
音はメッセンジャーからぱっくんちょ。
var target_channel = "#bot_test";
var replyFlg = false;
function event::onChannelText(prefix, channel, text) {
// 禁止用語
if (text.match(/(卑猥|ピン子|ぴんこ)/)) {
send(target_channel, "んっ!");
showBalloon("ん!", "なんて卑猥!");
}
// キーワード
else if (text.match(/(nakaji|Nakajijapan)/)) {
showBalloon(channel, prefix.nick + " >> " + text);
playSound("type.wav");
}
}
