Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.

Commit 442ec9c

Browse files
Merge pull request #3 from python-discord/Bump-d.py-to-latest-master-branch-changes
Bump d.py to latest master branch changes
2 parents 30b778a + 0a1c75a commit 442ec9c

File tree

7 files changed

+155
-26
lines changed

7 files changed

+155
-26
lines changed

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ FROM python:3.9-slim
44
ENV PIP_NO_CACHE_DIR=false \
55
POETRY_VIRTUALENVS_CREATE=false
66

7-
# Git is required to install a pinned version of d.py master
8-
RUN apt-get update && apt-get install -y \
9-
git \
10-
&& rm -rf /var/lib/apt/lists/*
11-
127
# Install poetry
138
RUN pip install -U poetry
149

bot/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async def send_log(self, title: str, details: str = None) -> None:
117117
return
118118

119119
embed = Embed(description=details)
120-
embed.set_author(name=title, icon_url=self.user.avatar.url)
120+
embed.set_author(name=title, icon_url=self.user.display_avatar.url)
121121

122122
await dev_log.send(embed=embed)
123123

bot/exts/recruitment/nominations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515

1616
# When nominations are posted manually, the Discord message box standarises the unicode emojis to :thumbsup:
17-
NOMINATION_ENDING_TEXT = "react 👍 for approval, or 👎 for disapproval*."
17+
NOMINATION_ENDING_TEXT = "react :+1: for approval, or :-1: for disapproval*."
1818

1919

2020
class Nominations(commands.Cog):

bot/utils/helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ def predicate(message: discord.Message) -> bool:
6262
return thread
6363

6464
logger.info("Message not found in either cache, fetching all threads...")
65-
for thread in await channel.active_threads():
65+
for thread in await channel.guild.active_threads():
66+
if thread.parent != channel:
67+
continue
68+
6669
if await _check_first_message_referencing(thread, message_id):
6770
logger.info("Thread found in fetched threads!")
6871
return thread

config-default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
bot:
22
prefix: "&"
3-
token: !ENV "BOT_TOKEN"
3+
token: !ENV "BOT_TOKEN"
44
name: "Thread Bot"
55

66
stats:

poetry.lock

Lines changed: 144 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ license = "MIT"
1212

1313
[tool.poetry.dependencies]
1414
python = "^3.9.6"
15-
statsd = "^=3.3.0"
16-
"discord.py" = { git = "https://github.com/Rapptz/discord.py.git", branch = "master", rev = "1e17b7f"}
15+
statsd = "^3.3.0"
16+
"discord.py" = {url = "https://github.com/Rapptz/discord.py/archive/master.zip"}
1717
loguru = "^0.5.3"
18-
pyyaml = "^=5.4.1"
18+
pyyaml = "^5.4.1"
1919
more-itertools = "^8.8.0"
20+
aiodns = "^3.0.0"
2021

2122
[tool.poetry.dev-dependencies]
2223
flake8 = "^3.9.2"

0 commit comments

Comments
 (0)