We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fdc370 commit d992b5eCopy full SHA for d992b5e
bot/exts/info/code_snippets.py
@@ -10,7 +10,7 @@
10
from discord.ext.commands import Cog
11
12
from bot.bot import Bot
13
-from bot.constants import Channels
+from bot.constants import Channels, Keys
14
from bot.log import get_logger
15
from bot.utils.messages import wait_for_deletion
16
@@ -28,6 +28,8 @@
28
)
29
30
GITHUB_HEADERS = {"Accept": "application/vnd.github.v3.raw"}
31
+if Keys.github:
32
+ GITHUB_HEADERS["Authorization"] = f"token {Keys.github}"
33
34
GITLAB_RE = re.compile(
35
r"https://gitlab\.com/(?P<repo>[\w.-]+/[\w.-]+)/\-/blob/(?P<path>[^#>]+)"
0 commit comments