This commit is contained in:
syuilo 2019-03-11 13:52:57 +09:00
parent 5e64474268
commit bf40e8961d
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 12 additions and 0 deletions

View file

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

View file

@ -24,6 +24,8 @@ export default {
goodNight: name => name ? `おやすみなさい、${name}` : 'おやすみなさい!',
omedeto: name => name ? `ありがとうございます、${name}` : 'ありがとうございます♪',
okaeri: {
love: name => name ? [
`おかえりなさい、${name}`,