Lg-rez

Latest version: v4.0.10

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

Scan your dependencies

Page 2 of 5

2.4.1

Fixed

- Fix dependency conflicts;
- ReadTheDocs could not compile due to multiple problems;
- Missed doc for new module :mod:`.blocs.structure`.

2.4.0

Added

- Server automatic setup (guild, channels, roles, emojis...):
- New command ``!setup``;
- New module :mod:`.blocs.structure` to check server structure;
- New config variables :attr:`.config.server_structure` (default:
new file ``server_structure.json``) and :attr:`.config.is_setup`;
- New functions :func:`.blocs.gsheets.get_files_in_folder`,
:func:`.blocs.gsheets.download_file` and
:func:`.config.set_config_from_server_structure`;
- Remind to enable Dashboard backup Google Apps trigger in ``!cparti``;
- Put role name in player's private chan topic on role sync;
- New subcommands ``!boudoir find`` and ``!boudoir help``;
- New command ``!mp`` to easily create a boudoir with some other player;
- New command ``!cfini`` to automatically delete tasks at game end;
- New command ``!nextroll``.

Changed

- Boudoirs are now transferred to most ancient member when owner dies;
- A cross mark is now added to boudoir name when moved to cemetery;
- ``!refill``: now ask to chose action (if > 1) instead of refilling all;
- ``!lore``: better handle of players mentions (1 to 4 words);
- ``!planif``: now planif to tomorrow if past date (rather that instant);
- ``!cancel``: now directly cancels (no confirmation), but show command to
type to re-planif task;
- :func:`.features.gestion_actions.add_action` now creates action only if
not already existing (changed signature: now takes action parameters);
- Bumped packages dependencies.

Fixed

- Some bot parts did not work because of circular imports between
:mod:`.bdd.model_joueurs` and :mod:`.blocs.tools`. Fixed by moving
``Boudoir.add_joueur``/``Boudoir.remove_joueur`` to new functions
:func:`.features.chans.add_joueur_to_boudoir`/
:func:`.features.chans.remove_joueur_from_boudoir`.
- Crash when trying to add a joueur to a boudoir in cemetery;
- ``!lore`` sometimes crashed when evaluating a role mention;
- Admin console was endlessly rebooting when sending an EOF or when
input pipe was closed (e.g. bot not launched from a TTY);
- README's What's New in 2.3 was missing.

2.3.2

Changed

- When a player is removed from / added to a boudoir, the boudoir is
automatically sent to / from the boudoirs cemetery;
- ``!roll`` now has limitations to avoid bot overloading by huge rolls;
new special values ``ludopathe`` and ``tavernier``.

Fixed

- Automatic archiving of boudoirs when a player dies was not working
as intended.

2.3.1

Changed

- When a player die, useless boudoirs are now automatically moved in
category :attr:`.config.old_boudoirs_category_name` (new config option,
checked at startup) by new function :func:`.features.sync.process_mort`;
- Code optimizations using new utility functions
:func:`.blocs.tools.multicateg`, :func:`.blocs.tools.in_multicateg` and
new decorator :func:`.features.chans.gerant_only`;
- Added special values for ``!roll``: ``joueur``, ``vivant``, ``mort``,
``rôle``, ``camp``.

Fixed

- Joueurs could be added several times to boudoirs (several invites);
- Some ``!boudoir`` options parameters were mandatory where they should not;
- One-command limitation was not working with private commands outside
private chans.

2.3.0

Added

- New subcommand `!boudoir ping`;
- New admin console to execute code/commands from the shell running
the bot (BETA: direct commands execution) using new module
:mod:`.blocs.console`;
- New indicative messages about the `stop` keyword;
- New property :meth:`.bdd.Camp.embed` (like :meth:`.bdd.Role.embed`).

Changed

- Command ``!roles`` separated inro ``!roles`` and new command ``!camps``
to address some names overlapping issues and for more clarity.

Fixed

- Help message was not accurate for some subcommands errors;
- Adding IA reactions could produce API 400 errors (empty messages).

2.2.2

Changed

- Made gsheets operations asynchronous (using new dependency module
:mod:`gspread_asyncio`): :func:`.blocs.gsheets.connect` and
:func:`~.blocs.gsheets.update` are now asynchronous and work with
:class:`~gspread_asyncio.AsyncioGspreadWorksheet` objects; some
dependant functions made asynchronous too.

Fixed

- References to ``tools`` could not be used in reactions evaluations.
- Bot activity was sometimes lost when errors occured.
- Messages reactions caused fatal errors in some cases.

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.