Skip to content

Commit

Permalink
✨ feat(controller): Add photo and document handling in group chats
Browse files Browse the repository at this point in the history
- Added logic to handle photo and document messages in group chats.
- Implemented image censorship using the pipeline_pass function.
- If an image is detected as potentially illegal, the bot will delete the message and warn the user.
- Added a command /report to report spam messages and perform image censorship on the replied message.
- Implemented checks for settings.rules and settings.mode to determine whether to perform censorship.
  • Loading branch information
sudoskys committed Jan 21, 2024
1 parent dfc60e5 commit d874c3d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 136 deletions.
3 changes: 0 additions & 3 deletions .env.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ TELEGRAM_BOT_TOKEN=xxx
WD_API_ENDPOINT=xxx

# TELEGRAM_BOT_PROXY_ADDRESS=socks5://127.0.0.1:7890

OPENAI_BASE_URL=xxx
OPENAI_API_KEY=xxx
133 changes: 1 addition & 132 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies = [
"opencv-python>=4.8.1.78",
"anime-identify>=0.1.0",
"aiofiles>=23.2.1",
"instructor>=0.4.7",
]


Expand Down

0 comments on commit d874c3d

Please sign in to comment.