Skip to content

Commit

Permalink
chore: update Discord Footer link
Browse files Browse the repository at this point in the history
  • Loading branch information
netpoe committed Jun 8, 2024
1 parent 099cf73 commit 081c12f
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
28 changes: 28 additions & 0 deletions app/src/providers/discord/DiscordBotClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,37 @@ export class DiscordBotClient {
});
}

async createForumThread({
channelId,
content,
name,
applied_tags,
}: {
channelId: string;
content: string;
name: string;
applied_tags?: string[];
}): Promise<Axios> {
const endpoint = `/channels/${channelId}/threads`;

return await this.request.post(endpoint, {
name,
applied_tags,
message: {
content,
},
});
}

async getGuild({ guildId }: { guildId: string }): Promise<Axios> {
const endpoint = `/guilds/${guildId}`;

return await this.request.get(endpoint);
}

async getChannel({ channelId }: { channelId: string }): Promise<Axios> {
const endpoint = `/channels/${channelId}`;

return await this.request.get(endpoint);
}
}
2 changes: 1 addition & 1 deletion app/src/ui/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const Footer: React.FC<FooterProps> = ({ className }) => {
<div className={styles["footer__socials--links"]}>
<Typography.Link
className={clsx(styles["footer__socials--link"])}
href="https://discord.gg/uEngc5U5"
href="https://discord.gg/xZuhTDTef3"
target="_blank"
>
<Icon name="icon-discord" />
Expand Down
1 change: 1 addition & 0 deletions erc721/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

src_dir_path = "./files/hellheadz/20240523_0-21"
thumbnails_dir_path = "./files/hellheadz/20240523_0-21/thumbnails"
websize_dir_path = "./files/hellheadz/20240523_0-21/websize"
watermarks_dir_path = "./files/hellheadz/20240523_0-21/watermarked"
token_uris_dir_path = "./files/hellheadz/20240523_0-21"

Expand Down
23 changes: 22 additions & 1 deletion erc721/img-to-erc721.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,26 @@ def is_image_extension(filename):
return filename.lower().endswith(".png") or filename.lower().endswith(".jpg")


def update_image_size(from_directory_path, to_directory_path):

for filename in os.listdir(from_directory_path):

if is_image_extension(filename):

file_path = os.path.join(from_directory_path, filename)

with Image.open(file_path) as img:
size = (1080, 1080)

img.thumbnail(size)

img.save(os.path.join(to_directory_path, filename))

print(
f"update_image_size: {from_directory_path} to {to_directory_path}/{filename}"
)


def create_img_thumbnails(from_directory_path, to_directory_path):
for filename in os.listdir(from_directory_path):

Expand Down Expand Up @@ -446,11 +466,12 @@ def main():
# append_real_image_urls_to_metadata_file()
# remove_digits_from_name()
# create_metadata()
create_token_uri_from_metadata_object(metadata_file_path, token_uris_filename)
# create_token_uri_from_metadata_object(metadata_file_path, token_uris_filename)
# create_token_uri_batches()
# set_metadata_token_id_from_0_index()
# extend_image_description_of_metadata_items()
# create_img_thumbnails(watermarks_dir_path, thumbnails_dir_path)
update_image_size(watermarks_dir_path, websize_dir_path)
# add_image_watermark()


Expand Down

0 comments on commit 081c12f

Please sign in to comment.