mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-08-04 14:06:26 +09:00
shutdown
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user