diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 13973e1..79d3455 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -19,7 +19,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.6, 3.7, 3.8, 3.9, '3.10'] steps: - uses: actions/checkout@v2 diff --git a/cyberjake/discord_common.py b/cyberjake/discord_common.py index d2b2005..ebfb90a 100644 --- a/cyberjake/discord_common.py +++ b/cyberjake/discord_common.py @@ -59,7 +59,7 @@ async def make_embed( if not DISCORD_PRESENT: raise ModuleNotFoundError("Need discord.py module installed") if not color: - kwargs["color"] = int(f"0x{random.randint(0, 0xFFFFFF)}", 16) # nosec + kwargs["color"] = random.randint(0, 16777215) # nosec elif isinstance(color, str): kwargs["color"] = discord.Color(int(color, 16))