diff --git a/pyproject.toml b/pyproject.toml index 0c2b149f..51d752d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "royalpack" - version = "5.15.1" + version = "5.15.2" description = "A Royalnet command pack for the Royal Games community" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalpack/commands/treasure.py b/royalpack/commands/treasure.py index df277613..33e9e1b8 100644 --- a/royalpack/commands/treasure.py +++ b/royalpack/commands/treasure.py @@ -27,8 +27,9 @@ class TreasureCommand(rc.Command): treasure.redeemed_by = author await ru.asyncify(session.commit) - await FiorygiTransaction.spawn_fiorygi(data, - author, + await FiorygiTransaction.spawn_fiorygi(author, treasure.value, - f'aver trovato il tesoro "{treasure.code}"') + f'aver trovato il tesoro "{treasure.code}"', + data=data, + session=session) await data.reply("🤑 Tesoro riscattato!")