9 Commits

Author SHA1 Message Date
e97c15d615 feat: Decode application ID from token during server initialization 2025-12-10 15:53:46 +01:00
Paillat
9e410d03f6 chore: Relax Python version requirement in pyproject.toml to >=3.12, <4.0 (#47) 2025-12-08 19:10:39 +01:00
renovate[bot]
d7d7ad62df ⬆️ Update lock file (#45)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-19 18:20:01 +01:00
renovate[bot]
aebdf2655d ⬆️ Update lock file (#43)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-12 21:37:20 +01:00
renovate[bot]
03d58369b8 ⬆️ Update lock file (#42)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-02 23:29:02 +02:00
renovate[bot]
444d9272f7 ⬆️ Update lock file (#41)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-23 00:20:27 +02:00
renovate[bot]
9d4859caba ⬆️ Update lock file (#40)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:58:30 +02:00
renovate[bot]
b37d736dc3 ⬆️ Upgrade actions/setup-python action to v6 (#37)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Paillat <paillat@pycord.dev>
2025-09-08 15:53:09 +02:00
renovate[bot]
5f3d6fab73 ⬆️ Update lock file (#38)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 15:51:30 +02:00
5 changed files with 682 additions and 232 deletions

View File

@@ -17,7 +17,7 @@ jobs:
enable-cache: true enable-cache: true
- name: "Set up Python" - name: "Set up Python"
uses: actions/setup-python@v5 uses: actions/setup-python@v6
with: with:
python-version-file: "pyproject.toml" python-version-file: "pyproject.toml"

View File

@@ -43,7 +43,7 @@ jobs:
enable-cache: true enable-cache: true
- name: "Set up Python" - name: "Set up Python"
uses: actions/setup-python@v5 uses: actions/setup-python@v6
with: with:
python-version-file: "pyproject.toml" python-version-file: "pyproject.toml"

View File

@@ -10,7 +10,7 @@ authors = [
{ name = "Paillat-dev", email = "me@paillat.dev" } { name = "Paillat-dev", email = "me@paillat.dev" }
] ]
license = "MIT" license = "MIT"
requires-python = "==3.12.*" requires-python = ">=3.12, <4.0"
classifiers = [ classifiers = [
"Development Status :: 3 - Alpha", "Development Status :: 3 - Alpha",
"Intended Audience :: Developers", "Intended Audience :: Developers",

View File

@@ -1,6 +1,7 @@
# Copyright (c) Paillat-dev # Copyright (c) Paillat-dev
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
import base64
import functools import functools
import logging import logging
import warnings import warnings
@@ -270,6 +271,7 @@ class App(discord.Bot):
uvicorn_options["server_header"] = uvicorn_options.get("server_header", False) uvicorn_options["server_header"] = uvicorn_options.get("server_header", False)
config = self._UvicornConfig(self._app, **uvicorn_options) config = self._UvicornConfig(self._app, **uvicorn_options)
server = self._UvicornServer(config) server = self._UvicornServer(config)
self._connection.application_id = int(base64.b64decode(token.split(".")[0] + "==").decode("utf-8"))
try: try:
self.dispatch("connect") self.dispatch("connect")
await server.serve() await server.serve()

906
uv.lock generated

File diff suppressed because it is too large Load Diff