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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: auto fixes from pre-commit hooks
Browse files Browse the repository at this point in the history
pre-commit-ci[bot] committed May 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 828198a commit 7d5c28f
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 1 addition & 2 deletions _orangcbot/extensions/dns.py
Original file line number Diff line number Diff line change
@@ -4,11 +4,10 @@
from typing import TYPE_CHECKING

import nextcord
import whois
from dns import resolver as _dnsresolver
from nextcord.ext import commands

import whois

_blobs = [
"<:blobcat_cute:1236176247759966298>",
"<:blobcat_food:1236176414768762880>",
14 changes: 8 additions & 6 deletions _orangcbot/extensions/github.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from __future__ import annotations

import re
from typing import List
from nextcord.ext import commands
import nextcord

import aiohttp
import nextcord
from nextcord.ext import commands


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


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


MATCH_IS_A_DEV_ONLY = r"register#(\d+)"
@@ -56,7 +58,7 @@ async def on_message(self, message: nextcord.Message):
)
)
# TODO: Fix is-a-dev-only regex

# elif len(is_a_dev_matches) > 0:
# for x in is_a_dev_matches:
# repo_owner = "is-a-dev"
@@ -67,7 +69,7 @@ async def on_message(self, message: nextcord.Message):
# repo_owner=repo_owner, repo_name=repo_name, pr_id=pr_id
# )
# )

else:
if message.channel.id == PR_CHANNEL_ID:
if message.author.get_role(STAFF_ROLE_ID) is None:
@@ -87,7 +89,7 @@ async def on_message(self, message: nextcord.Message):
embed=nextcord.Embed(
title="PR/Issue",
description=embed_description,
color=nextcord.Color.from_rgb(136,225,180),
color=nextcord.Color.from_rgb(136, 225, 180),
)
)

0 comments on commit 7d5c28f

Please sign in to comment.