Skip to content

Commit

Permalink
missed a file rename and doing an additional filecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
zmattingly committed Jan 5, 2025
1 parent 38711af commit 37a2073
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/agimus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: agimus
description: A helm chart for a discord bot that also runs a mysql db
type: application
version: v2.12.6
appVersion: v2.12.6
version: v2.12.7
appVersion: v2.12.7
7 changes: 5 additions & 2 deletions tasks/wrapped_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def wrapped_generation():
if not enabled:
return

job = await db_get_top_wrapped_job()
job = await db_get_top_wrapped_job()m
if job:
user = await bot.current_guild.fetch_member(int(job['user_discord_id']))
maintainer_user = await bot.current_guild.fetch_member(int(config["tasks"]["wrapped_generation"]["maintainer_user_id"]))
Expand Down Expand Up @@ -112,7 +112,10 @@ def _generate_wrapped_mp4(user_discord_id, user_display_name, wrapped_data):
scale_factor = video_width / profile_name_size
profile_name = profile_name.with_effects([Resize(scale_factor)])

profile_image = ImageClip(f"./images/profiles/{user_discord_id}_a_128.png")
avatar_path = f"./images/profiles/{user_discord_id}_a_256.png"
if not os.path.exists(avatar_path):
raise FileNotFoundError(avatar_path)
profile_image = ImageClip(avatar_path)
profile_image = profile_image.with_effects([Resize(width=400), FadeIn(duration=0.4167)])
profile_image = profile_image.with_duration(4.375).with_start(5.1667).with_position(("center", 350))
profile_image = profile_image.with_mask(profile_image.mask.with_effects([FadeOut(duration=0.8333)]))
Expand Down

0 comments on commit 37a2073

Please sign in to comment.