mirror of
https://github.com/miaowware/qrm2.git
synced 2026-06-12 18:58:39 -04:00
update pycord to 2.7.1, lint/fix issues, support python 3.14
This commit is contained in:
committed by
classabbyamp
parent
4b55ab49b7
commit
8e4f8b3fe0
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
|
||||
## [Unreleased]
|
||||
### Added
|
||||
- Support for Python 3.14.
|
||||
### Changed
|
||||
- Updated Pycord to 2.7.1.
|
||||
|
||||
|
||||
## [2.9.2] - 2023-12-15
|
||||
|
||||
+6
-6
@@ -1,10 +1,10 @@
|
||||
FROM ghcr.io/void-linux/void-musl-full
|
||||
FROM ghcr.io/void-linux/void-glibc-full
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
ARG REPOSITORY=https://repo-fastly.voidlinux.org/current
|
||||
ARG PKGS="cairo libjpeg-turbo"
|
||||
ARG PKGS="cairo libjpeg-turbo libgcc"
|
||||
ARG UID 1000
|
||||
ARG GID 1000
|
||||
|
||||
@@ -13,18 +13,18 @@ RUN \
|
||||
xbps-install -Suy xbps -R ${REPOSITORY} && \
|
||||
xbps-install -uy -R ${REPOSITORY} && \
|
||||
echo "**** install system packages ****" && \
|
||||
xbps-install -y -R ${REPOSITORY} ${PKGS} python3.11 && \
|
||||
xbps-install -y -R ${REPOSITORY} ${PKGS} python3 && \
|
||||
echo "**** install pip packages ****" && \
|
||||
python3.11 -m venv botenv && \
|
||||
python3 -m venv botenv && \
|
||||
botenv/bin/pip install -U pip setuptools wheel && \
|
||||
botenv/bin/pip install -r requirements.txt && \
|
||||
botenv/bin/pip install --ignore-requires-python -r requirements.txt && \
|
||||
echo "**** clean up ****" && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/* \
|
||||
/var/cache/xbps/*
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
USER $UID:$GID
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ SPDX-License-Identifier: LiLiQ-Rplus-1.1
|
||||
"""
|
||||
|
||||
|
||||
import collections
|
||||
import collections.abc
|
||||
import enum
|
||||
import json
|
||||
import re
|
||||
@@ -167,7 +167,7 @@ def embed_factory(ctx: commands.Context) -> discord.Embed:
|
||||
"""Creates an embed with neutral colour and standard footer."""
|
||||
embed = discord.Embed(timestamp=datetime.now(timezone.utc), colour=colours.neutral)
|
||||
if ctx.author:
|
||||
embed.set_footer(text=str(ctx.author), icon_url=str(ctx.author.display_avatar))
|
||||
embed.set_footer(text=str(ctx.author), icon_url=str(ctx.author.avatar))
|
||||
return embed
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ class TimeCog(commands.Cog):
|
||||
embed.title = f"{cmn.emojis.clock} Military Time Zones Now"
|
||||
embed.colour = cmn.colours.good
|
||||
embed.description = "```"
|
||||
embed.description += "\n".join([f"{x}: {time + z :%Y-%m-%d %H:%M} {y}" for x, y, z in self.offsets])
|
||||
embed.description += "\n".join([f"{x}: {time + z:%Y-%m-%d %H:%M} {y}" for x, y, z in self.offsets])
|
||||
embed.description += "```"
|
||||
embed.add_field(name="Notes", value=(
|
||||
"**J** is not present in the table, and is used for local time.\n"
|
||||
|
||||
@@ -44,7 +44,12 @@ debug_mode = opt.debug # Separate assignement in-case we define an override (te
|
||||
# --- Bot setup ---
|
||||
|
||||
# Loop/aiohttp stuff
|
||||
loop = asyncio.get_event_loop()
|
||||
try:
|
||||
loop = asyncio.get_event_loop()
|
||||
except RuntimeError:
|
||||
# restore <=3.13 get_event_loop() behaviour
|
||||
loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(loop)
|
||||
connector = loop.run_until_complete(conn.new_connector())
|
||||
|
||||
# Defining the intents
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
py-cord-dev[speed]==2.5.0rc5
|
||||
py-cord[speed]==2.7.1
|
||||
ctyparser~=2.0
|
||||
gridtools~=1.0
|
||||
callsignlookuptools[async]~=1.1
|
||||
|
||||
+2
-1
@@ -6,12 +6,13 @@ Copyright (C) 2021-2023 classabbyamp, 0x5c
|
||||
SPDX-License-Identifier: LiLiQ-Rplus-1.1
|
||||
"""
|
||||
|
||||
import json
|
||||
|
||||
import utils.resources_models as models
|
||||
|
||||
|
||||
print("Generating schema for index.json")
|
||||
with open("./dev-notes/rs_index_schema.json", "w") as file:
|
||||
file.write(models.Index.schema_json(indent=4))
|
||||
json.dump(models.Index.model_json_schema(), file)
|
||||
|
||||
print("Done!")
|
||||
|
||||
Reference in New Issue
Block a user