mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-08-06 22:13:55 +09:00
ぽんこつ呼ばわりされたときはリアクションを変えるように
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import 藍 from '../../ai';
|
||||
import IModule from '../../module';
|
||||
import IModule, { Result } from '../../module';
|
||||
import MessageLike from '../../message-like';
|
||||
import serifs from '../../serifs';
|
||||
import Friend from '../../friend';
|
||||
@ -304,12 +304,14 @@ export default class CoreModule implements IModule {
|
||||
return true;
|
||||
}
|
||||
|
||||
private ponkotu = (msg: MessageLike): boolean => {
|
||||
private ponkotu = (msg: MessageLike): boolean |Result => {
|
||||
if (!msg.includes(['ぽんこつ'])) return false;
|
||||
|
||||
msg.friend.decLove();
|
||||
|
||||
return true;
|
||||
return {
|
||||
reaction: 'angry'
|
||||
};
|
||||
}
|
||||
|
||||
public onReplyThisModule = (msg: MessageLike, data: any) => {
|
||||
|
Reference in New Issue
Block a user