Skip to content

Commit cbcdb2e

Browse files
committed
Fix
1 parent da3688d commit cbcdb2e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

count-messages.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ async function init() {
5151
return acc;
5252
}
5353

54+
const countedThisWeek = await statsCollection.count({
55+
memberId: member.id,
56+
yearWeek,
57+
});
58+
if (countedThisWeek) {
59+
// console.log(`Skipping… countedThisWeek`);
60+
return acc;
61+
}
62+
5463
const messagesCount = await getMemberMessagesCount(member.id);
5564
if (!messagesCount) {
5665
// console.log(`Skipping… !messagesCount`);

src/commands/karma.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const KARMA_REGEX = new RegExp(
1010
);
1111

1212
const addKarma: Command = {
13-
name: 'addKarma',
13+
name: '++',
1414
description: 'Podziękuj użytkownikom wpisując `@nazwa ++`',
1515
args: false,
1616
cooldown: 10,

0 commit comments

Comments
 (0)