Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Updated the Image Generator#38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
susheel009 wants to merge1 commit intosahandghavidel:main
base:main
Choose a base branch
Loading
fromsusheel009:main

Conversation

susheel009
Copy link

Catboys API image generator is not working so I replaced it with a similar image generator

Catboys API image generator is not working so I replaced it with a similar image generator
Copy link

@Imran-imtiaz48Imran-imtiaz48 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

code changes you've made represent a successful update! Here's a review:

Functionality:

The core functionality remains the same: displaying a loading message and spinner while fetching an image, then updating the button and image once the data is received.
Change:

The key change is the API endpoint used. You've switched fromhttps://api.catboys.com/img tohttps://nekos.life/api/v2/img/neko. This means you're now fetching images of cats (nekomimi) instead of catboys.
Overall:

This update effectively modifies the image source to display a different type of image (neko) while preserving the core logic of the code.

Additional Considerations:

API Differences: It's important to check if the new API (https://nekos.life/api/v2/img/neko) has any structural differences in the returned data compared to the previous one. If so, you might need to adjust how you access the image URL within the data object.
Clarity: Depending on the purpose of your code, you might consider renaming the button text or providing a visual cue (like an icon change) to indicate the switch from catboys to nekos. This improves user clarity.
Nice Work!

This update demonstrates a well-executed change while maintaining the overall functionality of the code.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Imran-imtiaz48Imran-imtiaz48Imran-imtiaz48 left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@susheel009@Imran-imtiaz48

[8]ページ先頭

©2009-2025 Movatter.jp