This commit is contained in:
syuilo 2019-01-14 18:10:16 +09:00
parent a1715b6df0
commit 8b52efea4c
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 15 additions and 2 deletions

View file

@ -37,7 +37,8 @@ export default class CoreModule implements IModule {
this.humu(msg) ||
this.batou(msg) ||
this.ponkotu(msg) ||
this.rmrf(msg)
this.rmrf(msg) ||
this.shutdown(msg)
);
}
@ -328,6 +329,16 @@ export default class CoreModule implements IModule {
};
}
private shutdown = (msg: MessageLike): boolean | Result => {
if (!msg.includes(['shutdown'])) return false;
msg.reply(serifs.core.shutdown);
return {
reaction: 'confused'
};
}
public onReplyThisModule = (msg: MessageLike, data: any) => {
if (msg.text == null) return;

View file

@ -98,7 +98,9 @@ export default {
normal: '(じとー…)',
hate: '…頭大丈夫ですか?'
}
},
shutdown: '私まだ眠くないですよ...',
},
keyword: {