1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

💥 Basic update for Royalnet 6.3.0

This commit is contained in:
Steffo 2021-04-15 01:22:16 +02:00
parent 7bbebe7625
commit dc15a285e7
Signed by: steffo
GPG key ID: 6965406171929D01
4 changed files with 24 additions and 8 deletions

8
poetry.lock generated
View file

@ -284,7 +284,7 @@ socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"]
[[package]]
name = "royalnet"
version = "6.2.10"
version = "6.3.0"
description = "A multipurpose bot framework"
category = "main"
optional = false
@ -510,7 +510,7 @@ brotli = ["brotlipy (>=0.6.0)"]
[metadata]
lock-version = "1.1"
python-versions = "^3.8"
content-hash = "f393839bc9bc0910f6ca4e3e1441fe69242dceb10ff23afd14ca97c80e6f1bff"
content-hash = "810f936889f968120ea5bd1e6d0f7f467d338ee6ac2514bb1ccb49bdb318fb0b"
[metadata.files]
alabaster = [
@ -747,8 +747,8 @@ requests = [
{file = "requests-2.25.1.tar.gz", hash = "sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804"},
]
royalnet = [
{file = "royalnet-6.2.10-py3-none-any.whl", hash = "sha256:794d2f2c5d319a1649cf97355d7ad07c0ad36df4d96b4ad534eb1dc1c4a39caa"},
{file = "royalnet-6.2.10.tar.gz", hash = "sha256:1a3f87b77fccce8df7571fcd0d8fbc5837b9f173a6d15c5e1e3e679a377b8ba5"},
{file = "royalnet-6.3.0-py3-none-any.whl", hash = "sha256:f2f6ea15def33e27ca92a0ba3b7863fab7b7339bcbb99bc83f6be74bd8e805e6"},
{file = "royalnet-6.3.0.tar.gz", hash = "sha256:6301ef60a1402ec59e55a206462f5b7296c5f6bbd6ab0bf38851ede42add5b20"},
]
rsa = [
{file = "rsa-4.7.2-py3-none-any.whl", hash = "sha256:78f9a9bf4e7be0c5ded4583326e7461e3a3c5aae24073648b4bdfa797d78c9d2"},

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "royalnet-telethon"
version = "0.3.4"
version = "1.0.0"
description = "A Telethon-based frontend for the royalnet.engineer module."
authors = ["Stefano Pigozzi <me@steffo.eu>"]
license = "AGPL-3.0-or-later"
@ -18,7 +18,7 @@ classifiers = [
[tool.poetry.dependencies]
python = "^3.8"
royalnet = "~6.2.10"
royalnet = "~6.3.0"
Telethon = "^1.21.1"
click = "^7.1.2"

View file

@ -2,7 +2,10 @@
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/royalnet_telethon" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/dist" />
</content>
<orderEntry type="jdk" jdkName="Poetry (royalnet-telethon)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>

View file

@ -83,6 +83,11 @@ class TelethonPDAImplementation(engi.ConversationListImplementation):
.. todo:: Document this.
"""
self.error_reporting_chat: int = error_reporting_chat
"""
.. todo:: Document this.
"""
def _register_events(self, client):
"""
.. todo:: Document this.
@ -168,6 +173,14 @@ class TelethonPDAImplementation(engi.ConversationListImplementation):
finally:
await client.disconnect()
async def _handle_conversation_exc(
self,
dispenser: engi.Dispenser,
conv: engi.ConversationProtocol,
exception: Exception,
) -> None:
self.log.error(f"Unhandled exception in {dispenser} running {conv}: {exception}")
__all__ = (
"TelethonPDAImplementation",