Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 9a385b2

Browse files
style: auto fixes from pre-commit hooks
1 parent f3a5caf commit 9a385b2

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

_orangcbot/extensions/dns.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
from typing import TYPE_CHECKING
55

66
import nextcord
7+
import whois
78
from dns import resolver as _dnsresolver
89
from nextcord.ext import commands
910

10-
import whois
11-
1211
_blobs = [
1312
"<:blobcat_cute:1236176247759966298>",
1413
"<:blobcat_food:1236176414768762880>",

_orangcbot/extensions/github.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from __future__ import annotations
2+
23
import re
34
from typing import List
4-
from nextcord.ext import commands
5-
import nextcord
5+
66
import aiohttp
7+
import nextcord
8+
from nextcord.ext import commands
79

810

911
async def request(*args, **kwargs):
@@ -17,7 +19,7 @@ async def request(*args, **kwargs):
1719
request.__doc__ = aiohttp.ClientSession.request.__doc__
1820

1921

20-
FULL_MATCH_ANY_REPO = r"(https:\/\/github.com\/)?([A-Za-z1-9-]+)\/([A-Za-z1-9-]+)(\/pull)?(#|\/)(?P<pr_id>\d+)"
22+
FULL_MATCH_ANY_REPO = r"(https:\/\/github.com\/)?([A-Za-z1-9-]+)\/([A-Za-z1-9-]+)(\/pull)?(#|\/)(?P<pr_id>\d+)"
2123

2224

2325
MATCH_IS_A_DEV_ONLY = r"register#(\d+)"
@@ -56,7 +58,7 @@ async def on_message(self, message: nextcord.Message):
5658
)
5759
)
5860
# TODO: Fix is-a-dev-only regex
59-
61+
6062
# elif len(is_a_dev_matches) > 0:
6163
# for x in is_a_dev_matches:
6264
# repo_owner = "is-a-dev"
@@ -67,7 +69,7 @@ async def on_message(self, message: nextcord.Message):
6769
# repo_owner=repo_owner, repo_name=repo_name, pr_id=pr_id
6870
# )
6971
# )
70-
72+
7173
else:
7274
if message.channel.id == PR_CHANNEL_ID:
7375
if message.author.get_role(STAFF_ROLE_ID) is None:
@@ -88,7 +90,7 @@ async def on_message(self, message: nextcord.Message):
8890
embed=nextcord.Embed(
8991
title="PR/Issue",
9092
description=embed_description,
91-
color=nextcord.Color.from_rgb(136,225,180),
93+
color=nextcord.Color.from_rgb(136, 225, 180),
9294
)
9395
)
9496

0 commit comments

Comments
 (0)