remove misc asset folder

move everything to the parent directory
This commit is contained in:
LBlend committed 2024-03-27 20:36:12 +01:00
1 parent 64bce48252
commit a08f5e9076
9 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y imagemagick ffmpeg libsm6 libxext6 grap
COPY . .
RUN mv /app/src/assets/misc/policy.xml /etc/ImageMagick-6/policy.xml
RUN mv /app/src/assets/policy.xml /etc/ImageMagick-6/policy.xml
VOLUME logs
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 129 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

+2 -2
View File
@@ -168,7 +168,7 @@ class Meme(commands.Cog):
await interaction.response.defer()
# Fetch meme template
template = Image.open("./src/assets/misc/sivert_goodbad.jpg")
template = Image.open("./src/assets/sivert_goodbad.jpg")
# Draw text
Meme.__draw_text(template, dårlig_tekst, offset=(540, 0))
@@ -223,7 +223,7 @@ class Meme(commands.Cog):
"""
font_path = "DejaVu-Sans-Bold"
clip = VideoFileClip("./src/assets/misc/crab.mp4")
clip = VideoFileClip("./src/assets/crab.mp4")
top_part = (
TextClip(top_text, fontsize=60, color="white", stroke_width=2, stroke_color="black", font=font_path)
+3 -3
View File
@@ -320,8 +320,8 @@ class Misc(commands.Cog):
user = user.resize((389, 389))
# Prepare heart image
heart = Image.open("./src/assets/misc/heart.png")
mask = Image.open("./src/assets/misc/heart.png", "r")
heart = Image.open("./src/assets/heart.png")
mask = Image.open("./src/assets/heart.png", "r")
# Putting it all together
image = Image.new("RGBA", (1024, 576))
@@ -329,7 +329,7 @@ class Misc(commands.Cog):
image.paste(user, (635, 94))
image.paste(heart, (311, 94), mask=mask)
draw = ImageDraw.Draw(image)
font = ImageFont.truetype("./src/assets/fonts/RobotoMono-Medium.ttf", 86)
font = ImageFont.truetype("./src/assets/fonts/comic.ttf", 86)
font_size = font.getbbox(f"{match_percent}%")
font_size = ((image.size[0] - font_size[2]) / 2, (image.size[1] - font_size[3]) / 2)
draw.text(font_size, f"{match_percent}%", font=font, fill=(255, 255, 255, 255))
+1 -1
View File
@@ -193,7 +193,7 @@ class WordCloud(commands.Cog):
"""
filter_words = set(stopwords.words("norwegian") + stopwords.words("english"))
mask = np.array(Image.open("./src/assets/word_cloud/mask.png"))
mask = np.array(Image.open("./src/assets/word_cloud_mask.png"))
wc = WCloud(
max_words=max_words,