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 f037e24 commit 5f71a83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setting/wdtagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def bot_validator(self):
logger.warning(
f"wd_api_endpoint {self.wd_api_endpoint} is not available, please check the server is running {e}"
)
raise e


load_dotenv()
Expand Down

0 comments on commit 5f71a83

Please sign in to comment.