Skip to content

Commit 4afc8d0

Browse files
committed
Fixes
1 parent 37edddc commit 4afc8d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cogs/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ async def update(self, ctx, *, flag: str = ""):
18891889

18901890
user = data["user"]
18911891

1892-
if not commit_data or not commit_data.get("html_url"):
1892+
if commit_data and commit_data.get("html_url"):
18931893
embed = discord.Embed(color=self.bot.main_color)
18941894

18951895
embed.set_footer(
@@ -1914,7 +1914,7 @@ async def update(self, ctx, *, flag: str = ""):
19141914
embed.add_field(name="Merge Commit", value=f"[`{short_sha}`]({html_url})")
19151915
else:
19161916
embed = discord.Embed(
1917-
title="Already up to date with master repository.",
1917+
title="Already up to date",
19181918
description="No further updates required",
19191919
color=self.bot.main_color,
19201920
)

core/clients.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ async def update_repository(self, sha: str = None) -> Optional[dict]:
159159

160160
payload = {"base": self.BRANCH, "head": sha, "commit_message": "Updating bot"}
161161

162+
print(payload)
163+
162164
merge_url = self.MERGE_URL.format(username=self.username)
163165

164166
resp = await self.request(merge_url, method="POST", payload=payload)

0 commit comments

Comments
 (0)