This commit is contained in:
syuilo 2019-01-31 12:38:12 +09:00
parent 2888908502
commit 7253cd42dd
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 15 additions and 0 deletions

View file

@ -33,6 +33,7 @@ export default class extends Module {
this.hug(msg) ||
this.humu(msg) ||
this.batou(msg) ||
this.itai(msg) ||
this.ponkotu(msg) ||
this.rmrf(msg) ||
this.shutdown(msg)
@ -279,6 +280,18 @@ export default class extends Module {
return true;
}
@autobind
private itai(msg: Message): boolean {
if (!msg.or(['痛い', 'いたい'])) return false;
// メッセージのみ
if (!msg.isDm) return true;
msg.reply(serifs.core.itai(msg.friend.name));
return true;
}
@autobind
private ponkotu(msg: Message): boolean | HandlerResult {
if (!msg.includes(['ぽんこつ'])) return false;

View file

@ -98,6 +98,8 @@ export default {
hate: '…頭大丈夫ですか?'
},
itai: name => name ? `${name}、大丈夫ですか…? いたいのいたいの飛んでけっ!` : '大丈夫ですか…? いたいのいたいの飛んでけっ!',
shutdown: '私まだ眠くないですよ...',
},