Skip to content

Commit

Permalink
Fix discord color and add python 3.10 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyb3r-Jak3 committed Oct 20, 2021
1 parent e55f6e8 commit a272b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion cyberjake/discord_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit a272b28

Please sign in to comment.