Banhammer-py

Latest version: v1.0.0

Safety actively analyzes 688931 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.6.0

**Changelog:**
- `Banhammer.get_subreddits_embed()` and `Banhammer.get_reactions_embed()` to show configured subreddits/reactions.
- Cleaned imports.

1.5.0

**Changelog:**
- Add parameters `bot` and `change_presence` in `__init__()` of `Banhammer`.
-> If both are set, Banhammer automatically adjusts the bot's presence to "Playing on /r/subname" when a scan is being done.

1.4.0

**Changelog:**
- Fixed return value of `__str__()` in `Reaction`.
- Using `eligible()` in `handle()` instead of re-creating the check.

1.3.0

**Changelog:**
- `Reaction` overrides `__str__()` to output information about its attributes.
- Improved readability of code.

1.2.0

**Changelog:**
- `Reaction` returns `RedditItem.type` instead of `Reaction.type`.

1.1.0

**Changelog:**
- `RedditItem`'s `get_embed()` method takes `embed_color` as an optional parameter allowing you to customize the color for individual items if that's of interest.
- `Reaction`'s `handle()` method returns a dictionary containing `actions` (`list: str`) in addition to to the other information containing all the actions that were performed such as `removed`, `locked` etc.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.