Skip to content

Commit

Permalink
Fix some errors temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Nov 2, 2023
1 parent a453c8e commit 916d26a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 406 deletions.
2 changes: 2 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@


class Korii(commands.AutoShardedBot):
user: discord.ClientUser

def __init__(self) -> None:
super().__init__(
command_prefix=commands.when_mentioned_or("s!"),
Expand Down
2 changes: 1 addition & 1 deletion extensions/events/avatars.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def update_avatars(self):
if self.developers_role in member.roles:
assert member.avatar
await self.bot.pool.execute("INSERT INTO avatars(user_id, avatar_url) VALUES ($1, $2) ON CONFLICT(user_id) DO UPDATE SET avatar_url = $2",
member.id, member.avatar.replace(size=256, format="webp"))
member.id, member.avatar.replace(size=256, format="webp").url)

@update_avatars.before_loop
async def wait_until_ready(self):
Expand Down
3 changes: 2 additions & 1 deletion extensions/fun/animals.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from discord.app_commands import Choice
from discord.ext import commands

from utils import Embed, Interaction, Korii
from utils import Embed, Interaction
from bot import Korii


class AnimalsCog(commands.Cog):
Expand Down
Loading

0 comments on commit 916d26a

Please sign in to comment.