1
1
from __future__ import annotations
2
+
2
3
import re
3
4
from typing import List
4
- from nextcord .ext import commands
5
- import nextcord
5
+
6
6
import aiohttp
7
+ import nextcord
8
+ from nextcord .ext import commands
7
9
8
10
9
11
async def request (* args , ** kwargs ):
@@ -17,7 +19,7 @@ async def request(*args, **kwargs):
17
19
request .__doc__ = aiohttp .ClientSession .request .__doc__
18
20
19
21
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+)"
21
23
22
24
23
25
MATCH_IS_A_DEV_ONLY = r"register#(\d+)"
@@ -56,7 +58,7 @@ async def on_message(self, message: nextcord.Message):
56
58
)
57
59
)
58
60
# TODO: Fix is-a-dev-only regex
59
-
61
+
60
62
# elif len(is_a_dev_matches) > 0:
61
63
# for x in is_a_dev_matches:
62
64
# repo_owner = "is-a-dev"
@@ -67,7 +69,7 @@ async def on_message(self, message: nextcord.Message):
67
69
# repo_owner=repo_owner, repo_name=repo_name, pr_id=pr_id
68
70
# )
69
71
# )
70
-
72
+
71
73
else :
72
74
if message .channel .id == PR_CHANNEL_ID :
73
75
if message .author .get_role (STAFF_ROLE_ID ) is None :
@@ -88,7 +90,7 @@ async def on_message(self, message: nextcord.Message):
88
90
embed = nextcord .Embed (
89
91
title = "PR/Issue" ,
90
92
description = embed_description ,
91
- color = nextcord .Color .from_rgb (136 ,225 ,180 ),
93
+ color = nextcord .Color .from_rgb (136 , 225 , 180 ),
92
94
)
93
95
)
94
96
0 commit comments