diff options
author | 2021-04-08 11:40:05 +0200 | |
---|---|---|
committer | 2021-04-08 11:40:05 +0200 | |
commit | 27c62453ebd2a9c2be73ce21ea5285772fcbb5fc (patch) | |
tree | dcc4938dc46539ed91a0ba98a9af797e182e66c0 /bot/exts | |
parent | Issues: icon_url -> emoji_url (diff) | |
parent | Merge pull request #662 from python-discord/issues-more-repos (diff) |
Merge branch 'akarys/630/automatic-linking-everywhere' of github.com:python-discord/sir-lancebot into akarys/630/automatic-linking-everywhere
Diffstat (limited to 'bot/exts')
-rw-r--r-- | bot/exts/evergreen/8bitify.py | 3 | ||||
-rw-r--r-- | bot/exts/evergreen/issues.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/8bitify.py b/bot/exts/evergreen/8bitify.py index 54e68f80..7eb4d313 100644 --- a/bot/exts/evergreen/8bitify.py +++ b/bot/exts/evergreen/8bitify.py @@ -25,7 +25,8 @@ class EightBitify(commands.Cog): async def eightbit_command(self, ctx: commands.Context) -> None: """Pixelates your avatar and changes the palette to an 8bit one.""" async with ctx.typing(): - image_bytes = await ctx.author.avatar_url.read() + author = await self.bot.fetch_user(ctx.author.id) + image_bytes = await author.avatar_url.read() avatar = Image.open(BytesIO(image_bytes)) avatar = avatar.convert("RGBA").resize((1024, 1024)) diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py index 9b04c8c1..83cafcc8 100644 --- a/bot/exts/evergreen/issues.py +++ b/bot/exts/evergreen/issues.py @@ -30,7 +30,7 @@ REQUEST_HEADERS = { "Accept": "application/vnd.github.v3+json" } -REPOSITORY_ENDPOINT = "https://api.github.com/orgs/{org}/repos" +REPOSITORY_ENDPOINT = "https://api.github.com/orgs/{org}/repos?per_page=100" ISSUE_ENDPOINT = "https://api.github.com/repos/{user}/{repository}/issues/{number}" PR_MERGE_ENDPOINT = "https://api.github.com/repos/{user}/{repository}/pulls/{number}/merge" |