Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

Commit 532fc0d

Browse files
author
thrzl
committed
🩹 forgetfulness
1 parent 4898bf2 commit 532fc0d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎.gitpod.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
6+
7+
tasks:
8+
- init: pip install poetry && poetry install
9+
command: poetry run python main.py
10+
11+

‎src/cogs/ai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async def scan_messages(self):
144144

145145
try:
146146
guild = await self.bot.fetch_guild(msg["guild_id"])
147-
author = guild.get_member(msg["author_id"])
147+
author = await guild.fetch_member(msg["author_id"])
148148
score = await self.perspective.score(
149149
msg["content"],
150150
[

0 commit comments

Comments
 (0)