This commit is contained in:
syuilo 2019-06-26 20:56:34 +09:00
parent e0695a8f5c
commit 54043c4901
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 18 additions and 0 deletions

View file

@ -27,6 +27,7 @@ export default class extends Module {
return (
this.setName(msg) ||
this.greet(msg) ||
this.erait(msg) ||
this.omedeto(msg) ||
this.nadenade(msg) ||
this.kawaii(msg) ||
@ -153,6 +154,15 @@ export default class extends Module {
return false;
}
@autobind
private erait(msg: Message): boolean {
if (!msg.includes(['褒めて'])) return false;
msg.reply(getSerif(serifs.core.erait(msg.friend.name)));
return true;
}
@autobind
private omedeto(msg: Message): boolean {
if (!msg.includes(['おめでと'])) return false;

View file

@ -26,6 +26,14 @@ export default {
omedeto: name => name ? `ありがとうございます、${name}` : 'ありがとうございます♪',
erait: name => name ? [
`${name}、今日もえらいです!`,
`${name}、今日もえらいですよ~♪`
] : [
`今日もえらいです!`,
`今日もえらいですよ~♪`
],
okaeri: {
love: name => name ? [
`おかえりなさい、${name}`,