Skip to content

Commit f4779fd

Browse files
committed
remove rep when msg is deleted
1 parent ec16719 commit f4779fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modules/rep.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ export class RepModule extends Module {
151151
);
152152
}
153153

154+
@listener({ event: 'messageDelete' })
155+
async onRepMsgDelete(msg: Message) {
156+
await Rep.delete(msg.id);
157+
}
158+
154159
@command({
155160
description: 'Reputation: Give a different user some reputation points',
156161
})

0 commit comments

Comments
 (0)