From 5263b5d1fbcc3f94bd32ea27aec1020f8afa971c Mon Sep 17 00:00:00 2001 From: konard Date: Sun, 14 Sep 2025 06:14:36 +0300 Subject: [PATCH 1/3] Initial commit with task details for issue #18 Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: https://github.com/linksplatform/Bot/issues/18 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 00000000..d8aba040 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,5 @@ +Issue to solve: https://github.com/linksplatform/Bot/issues/18 +Your prepared branch: issue-18-8178c886 +Your prepared working directory: /tmp/gh-issue-solver-1757819671184 + +Proceed. \ No newline at end of file From c7207ad32311798799f886e9d6781f43516bdf3f Mon Sep 17 00:00:00 2001 From: konard Date: Sun, 14 Sep 2025 06:19:05 +0300 Subject: [PATCH 2/3] Disable votes on votes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added check to prevent voting on bot/group messages (UIDs < 0). This prevents users from voting on karma change messages posted by the bot. Fixes #18 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- python/modules/commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/modules/commands.py b/python/modules/commands.py index 93d99817..b63e7eb2 100644 --- a/python/modules/commands.py +++ b/python/modules/commands.py @@ -170,6 +170,10 @@ def apply_karma(self) -> NoReturn: if selected_user_id: self.user = self.data_service.get_user(int(selected_user_id), self) + # Disable votes on bot messages (votes on votes) + if self.user and self.user.uid < 0: + return + if self.user and (self.user.uid != self.from_id): operator = self.matched.group("operator")[0] amount = self.matched.group("amount") From ee11d4142904e04d2ff608e730afeda842c034b7 Mon Sep 17 00:00:00 2001 From: konard Date: Sun, 14 Sep 2025 06:19:50 +0300 Subject: [PATCH 3/3] Remove CLAUDE.md - Claude command completed --- CLAUDE.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index d8aba040..00000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -Issue to solve: https://github.com/linksplatform/Bot/issues/18 -Your prepared branch: issue-18-8178c886 -Your prepared working directory: /tmp/gh-issue-solver-1757819671184 - -Proceed. \ No newline at end of file