Simplematrixbotlib

Latest version: v2.11.0

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

Scan your dependencies

Page 2 of 6

2.6.3

2022-04-06 5f54f69
Notes:
- The command matcher now has support for case-insensitive matches.
Additions:
- Add case insensitive option to command matcher
Modifications
- Update Pillow Dependency to version 9.0.1
Removals:
- None
Deprecations
- None

2.6.2

2022-02-26 c432a64
Notes:
Fixes a potential security problem.
Additions:
- None
Modifications
- Resolve issue [136](https://github.com/i10b/simplematrixbotlib/issues/136): "Replace usage of ast.literal_eval with json.loads"
Removals:
- None
Deprecations
- None

2.6.1

Not secure
2022-01-31 d2a3abe2
Notes:
Fixes a bug.
Additions:
- None
Modifications:
- Resolve issue [129](https://github.com/i10b/simplematrixbotlib/issues/129): "AttributeError: 'Bot' object has no attribute '_need_allow_homeserver_users'"
Removals:
- None
Deprecations:
- None

2.6.0

Not secure
2022-01-07 46a7be43
Notes:
Example usage is shown below:
python
"""
Example Usage:

random_user
!echo something

random_user2
*reacts with 👍️

echo_reaction_bot
Reaction: 👍️
"""

import simplematrixbotlib as botlib

creds = botlib.Creds("https://example.com", "echo_reaction_bot", "password")
bot = botlib.Bot(creds)


bot.listener.on_reaction_event
async def echo_reaction(room, event, reaction):
resp_message = f"Reaction: {reaction}"
await bot.api.send_text_message(room.room_id, resp_message)


bot.run()

Additions:
- A listener for handling `m.reaction` events has been added. Bot developers can now use `Listener.on_reaction_event` to smoothly handle reactions.
Modifications:
- None
Removals:
- None
Deprecations:
- None

2.5.1

Not secure
2021-12-19 c0e39efa
Notes:
None
Additions:
- None
Modifications:
- Fixed [101](https://github.com/i10b/simplematrixbotlib/issues/101) 'Api' object has no attribute 'async_client'
Removals:
- None
Deprecations:
- None

2.5.0

Not secure
Additions:
- Add allow/block lists: This allows bot developers to specify allow/block lists of users who have permission to interact with the bot using regex.
- Permissions can checked with `Match.is_from_allowed_user()`, which lets the bot developer choose which responses are restricted.
- The allow/block lists can by modified at runtime via the `Config.add_allowlist()`, `Config.remove_allowlist()`, `Config.add_blocklist()`, and `Config.remove_blocklist()` methods.
Modifications:
- None
Removals:
- None
Deprecations:
- None

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.