copilot-swe-agent[bot]
3a5bf40f41
Address code review feedback
...
- Remove unused imports from main.py
- Add clearer documentation for extract_envelope_source_uuid
- Use Iterable[str] type hint instead of tuple
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
2025-12-01 15:16:15 +00:00
copilot-swe-agent[bot]
8a6dbca7c9
Add abstract and generic rule system for command triggers
...
- Create rules.py module with Rule base class and implementations:
- MinReactionsRule: Trigger if received n reactions or more
- MaxUsageRule: Trigger if total usage did not exceed n
- CooldownRule: Trigger if cooldown time has elapsed
- NotUserRule: Trigger if last user was not person x
- NotSameUserRule: Prevent same user from using consecutively
- TimeWindowRule: Trigger if time is between t1 and t2
- AndRule/OrRule: Combine rules with AND/OR logic
- GlobalCooldownRule: Rate limit across all commands
- Update main.py to use the new RuleEngine
- Add comprehensive test suite (60 tests)
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
2025-12-01 15:13:25 +00:00
copilot-swe-agent[bot]
7f3316d282
Initial plan
2025-12-01 15:07:56 +00:00
0075c4de82
feat: made it uvicorn fast api compliant
2024-10-11 19:27:15 +02:00
d35aa59a25
fix: do not count sticker messages
2024-10-05 10:57:31 +02:00
kuhyx
bc8bc307ef
added sticker to the sample message
2024-10-05 10:53:23 +02:00
64414450e8
feat: print when message will be counted
2024-10-05 10:22:16 +02:00
62352e532f
fix: restore additional should count check
2024-10-05 10:18:02 +02:00
3c79bfb4eb
fix: add should_count to message count inside send to group
2024-10-05 10:15:34 +02:00
0205627e26
fix: remove automatic message count whenever something gets send to group
2024-10-05 10:12:37 +02:00
b325126042
feat: added explanation why bot is not countnig message
2024-10-05 10:08:51 +02:00
f1931b800c
feat: stickers no longer count towards messages rankngs
2024-10-05 10:01:28 +02:00
ae2a16c47d
feat: traps are back 8)
2024-09-24 23:11:14 +02:00
kuhyx
6f322e0282
Update readme.md
2024-09-24 22:38:10 +02:00
cd606cf452
chore: added env sample file
2024-09-24 22:36:55 +02:00
470cc14c24
fix: updated readme, stopped traps untiull fixed
2024-09-24 22:19:58 +02:00
ef0c46f64d
feat: made run sh into executable script
2024-09-24 19:37:59 +02:00
5bc6e5014f
feat: make bot react only to commands with "!"
2024-06-24 23:34:58 +02:00
369332debf
feat: add 10 seconds delay before sending command
2024-06-24 23:29:34 +02:00
3b7fe604dc
fix: removed unnecessary async in is_message_reaction
2024-06-24 21:12:12 +02:00
e8efcfffcb
feat: ignore reaction messages
2024-06-24 21:10:10 +02:00
6a897a80a2
feat: more pies edge cases
2024-06-24 21:04:18 +02:00
14aa602161
feat: added common name to send message
2024-06-24 20:43:31 +02:00
062bf9abcc
feat: make message counting work for group (hopefully)
2024-06-24 20:22:05 +02:00
6ec89d8e34
feat: count messages send by id
2024-06-24 20:18:51 +02:00
807a0ef9f5
fix: message_value != None
2024-06-24 19:47:40 +02:00
55c4bf653a
feat: sendding commands works for emoji messages
2024-06-24 19:47:23 +02:00
08099d7067
feat: show error tpye when trigger command fails
2024-06-24 19:34:53 +02:00
0f74208e4b
feat: try and catch errors when trigger command
2024-06-24 19:31:31 +02:00
10c728552b
feat: even more names for cats and dogs
2024-06-24 19:22:10 +02:00
520e5c44e3
feat: made it work on group messages again
2024-06-24 18:21:26 +01:00
f2a7793c2d
feat: added nohup to gitignore
2024-06-24 18:18:05 +01:00
824c79dbf7
Merge branch 'main' of https://github.com/kuhyx/signal-bot
2024-06-24 19:13:29 +02:00
deb54e4c49
feat: added additional commands for cats and dogs to nerf traps
2024-06-24 19:13:14 +02:00
kuhyx
e1264ce58f
Removed sensitive signal server console log
2024-06-24 12:27:52 +02:00
kuhyx
f32cecd78a
Create SECURITY.md
2024-06-24 12:26:18 +02:00
kuhyx
38f69c69b9
Create pylint.yml
2024-06-24 12:25:43 +02:00
kuhyx
c04621d634
Create python-package-conda.yml
2024-06-24 12:21:00 +02:00
kuhyx
d016c62510
Create python-app.yml
2024-06-24 12:20:47 +02:00
kuhyx
bcd3e6f275
Update readme.md
2024-06-24 12:20:18 +02:00
kuhyx
2930f5494e
Update readme.md
2024-06-24 12:19:18 +02:00
14d6807119
feat: added traps command
2024-06-24 12:05:31 +02:00
bd3bb4a4cb
feat: !pies command
2024-06-24 00:19:43 +02:00
44f965c16b
feat: made script more extensible
2024-06-23 23:47:46 +02:00
09e811a2b7
fix: self sending !kot works now
2024-06-23 23:03:20 +02:00
dd11f33d21
feat: send kot image after receiving !kot
2024-06-23 22:09:55 +02:00
kuhyx
f05a38d2d9
Initial commit
2024-06-23 19:36:33 +02:00