Skip to content

Commit 8d96128

Browse files
committed
feat: add min karma config
1 parent 3c74b66 commit 8d96128

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/core/config.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33

44
from dateutil.rrule import MONTHLY, rrule
55

6-
MAX_KARMA_SEND: Final[int] = 100
7-
MAX_KARMA_SEND_INTERVAL: Final[int] = 6 * 60 ** 2 # 6 hours
6+
LIMIT_MAX_KARMA_SEND: Final[int] = 100
7+
LIMIT_MIN_KARMA_SEND: Final[int] = -100
8+
LIMIT_KARMA_SEND_INTERVAL: Final[int] = 6 * 60 ** 2 # 6 hours
9+
10+
LIMIT_MAX_KARMA_USER_SEND: Final[int] = 5
11+
LIMIT_MIN_KARMA_USER_SEND: Final[int] = -5
12+
LIMIT_KARMA_USER_SEND_INTERVAL: Final[int] = 6 * 60 ** 2 # 6 hours'
813

9-
MAX_KARMA_USER_SEND: Final[int] = 5
10-
MAX_KARMA_USER_SEND_INTERVAL: Final[int] = 6 * 60 ** 2 # 6 hours
1114

1215
# Karma window recurrence rule — change this to adjust the reset period.
1316
# Examples:

0 commit comments

Comments
 (0)