Content pfp
Content
@
0 reply
0 recast
0 reaction

phil pfp
phil
@phil
Bounty: create a frame that returns a random CryptoCitizen and displays it along with the owner and city. Here is some great inspo from @todd and @ok: https://warpcast.com/todd/0xfe22c1a6 CryptoCitizen docs: https://docs.brightmoments.io/cryptocitizens $100 USDC @bountybot
7 replies
1 recast
15 reactions

Guapolocal.eth🎩 pfp
Guapolocal.eth🎩
@guapolocal.eth
@phil I have absolutely zero coding experience and thanks to @j-valeska who is an absolute saint I was able to fumble my way through a functional frame. https://mu-attempt-cit.vercel.app/
2 replies
1 recast
1 reaction

phil pfp
phil
@phil
Great start! A few notes: - On mobile there are two buttons after clicking, one of which says "Undefined". There should be one button. - The image is cutoff due to aspect ratio. The entire image should be visible. - This is just 1/8th of the collection. There are other token ID ranges. Keep going!
1 reply
0 recast
1 reaction

Guapolocal.eth🎩 pfp
Guapolocal.eth🎩
@guapolocal.eth
@phil I am actively playing with the development which is why there is an undefined button currently, it was my best idea for displaying the city name. I am looking at resizing now, should be quite easy with an url query string. With the IDs being non sequential, I may be limited here with item 3.
1 reply
0 recast
0 reaction

phil pfp
phil
@phil
You can generate an array of valid token IDs once, and then randomly select a token from that list. Valid token ID ranges are available on the docs page linked in the OP. Good luck!
1 reply
0 recast
1 reaction

Guapolocal.eth🎩 pfp
Guapolocal.eth🎩
@guapolocal.eth
I'm not quite sure how to do that, the code I am using works based on a formula of sorts to generate an image randomly. Unfortunately I hit 100 deployments while testing this and am unable to continue pushing development updates until my tokens reset on Vercel in 20 hours.
1 reply
0 recast
0 reaction

phil pfp
phil
@phil
You could try using Replit which has a more generous free tier
2 replies
0 recast
0 reaction

Guapolocal.eth🎩 pfp
Guapolocal.eth🎩
@guapolocal.eth
I do like the interface on replit though I do not see a free option for deployments, they want you to sign up for a plan it seems, unless I am missing a way to access the project URL which is quite possible.
0 reply
0 recast
0 reaction