Improve AI

This commit is contained in:
syuilo 2018-09-02 19:06:39 +09:00
parent 5d58f1930c
commit ee245cd787
2 changed files with 17 additions and 0 deletions

View file

@ -33,6 +33,7 @@ export default class CoreModule implements IModule {
this.greet(msg) ||
this.nadenade(msg) ||
this.kawaii(msg) ||
this.humu(msg) ||
this.batou(msg) ||
this.ponkotu(msg)
);
@ -208,6 +209,16 @@ export default class CoreModule implements IModule {
return true;
}
private humu = (msg: MessageLike): boolean => {
if (!includes(msg.text, ['踏んで'])) return false;
msg.reply(
msg.friend.love <= -3 ? serifs.core.humu.hate :
serifs.core.humu.normal);
return true;
}
private batou = (msg: MessageLike): boolean => {
if (!includes(msg.text, ['罵倒して', '罵って'])) return false;

View file

@ -46,6 +46,12 @@ export default {
hate: '…ありがとうございます'
},
humu: {
normal: 'え、えっと…… ふみふみ……… どうですか…?',
hate: '…'
},
batou: {
love: 'AIに罵られたいって... ちょっと引きます',