this post was submitted on 28 Apr 2024
6 points (87.5% liked)

Perchance - Create a Random Text Generator

448 readers
13 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 1 year ago
MODERATORS
 

The comments plugin has a new feature that allows you to access the "stream" of comments as they are submitted to your comments box. So now you can "do stuff" on your page in response to comments that people make.

Title is (mostly) a joke, but it wouldn't be toooo hard to create simple multiplayer games like chess or little point-and-click worlds that people can play on your page via the comments (just need to ignore invalid user moves/inputs based on the rules of the game you're making).

I expect a few perchance devs to play around with some "mad science" along those lines, but for most people, probably the most useful thing here is that it allows you to completely customize the way comments are displayed. Including e.g. adding avatar pics to comments, changing the background image of every comment based on the keywords in it, making confetti fly across the page (for everyone) when someone says a secret/"easter egg" keyword, and so on.

Examples:

top 10 comments
sorted by: hot top controversial new old
[–] Alllo 3 points 6 months ago (1 children)

on https://perchance.org/comments-plugin-oncomment-example it says: Ascendent Science: Make a point-and-click multiplayer adventure game. It would be technically possible - like tic-tac-toe and chess, but with more advanced "move"/"turn" validation rules. But currently we can only get the text of comments responsively, correct? We cannot 'click a button to send a comment programmatically'? Nor can I set AI Princess Celestia as admin and have her banhammering people in the comments section? Also not that I am even suggesting anything, I was just curious because of the 'Ascendent Science'. Love the potential in the upgrades these last few days. on behalf of all good beings thank you

[–] perchance 3 points 6 months ago

Programmatic submissions now possible ✅ https://lemmy.world/post/15098378

[–] [email protected] 3 points 6 months ago (1 children)

Nice update! This gives me an idea to add a feature where users could make and save their own unrandomized abstract flag based on the user's specific "prompt" details in my Power Flag Generator and do a bunch of things, e.g. chat commands, for example when the user sent this comment:

layout: diagonal, emblem: star, unique: true, advanced: true

Then it'll pop up this flag, without affecting any configurations in the options:

Or: layout: random, emblem: none

Then it'll pop up a flag like this, with a random layout:

Or: layout: vertical triple, enable country details, enable advanced colors, comment: hai

pops up a flag like this: , enables advanced colors and country details, and sent that user's comment after the comment: part.

Or maybe, users could randomize the flag just by saying this: random , acts the same as clicking on the randomize button.

And randomize a specific part of the flag like this: random: 1

Or emblems: random: 0

All of these "prompts" will be saved to a separate container that when clicked, pops up that exact flag the prompt generates (also got this idea from your last example mentioned).

I know these could also be doable with slash commands, but such a variant will prevent the command from being sent into the comments section. And I'll add that too.

/generate layout: vertical triple, emblem: circle

I also wanted to implement a feature so that users can also select each individual color for the flag they wanted; but this requires assigning ids into each layout maker component. I can do that for myself using some JS, but I think this would be a great feature if you can assign an id into each area of the layout-maker-plugin.

[–] [email protected] 2 points 6 months ago (2 children)

Also, this feature could be used as a storage for saving image prompts or something (for AI image generators that provide a separate chat for sharing prompts), that when clicked, it'll generate images based on that prompt

[–] AdComfortable1514 2 points 6 months ago* (last edited 6 months ago)

(And if @[email protected] is reading this , being able to add the .json save-file to the images in the image gallery would be helpful. Either within the EXIF metadata of the saved image png , or within a hidden "text field" that can store additional info apart from the text prompt, or something similiar)

[–] AdComfortable1514 2 points 6 months ago* (last edited 6 months ago) (1 children)

Such a chat-feature would be really useful to me!

I just added a feature where users can save the generator prompt settings as a json file: https://perchance.org/fusion-ai-image-generator

So maybe copy-pasting the .json file could create a compact link or something.

Then another user clicks the link and it will load into the generator. IDK

Haven't added this new chat format yet. Open to ideas.

[–] perchance 3 points 6 months ago* (last edited 6 months ago) (1 children)

IIUC, the upload plugin is perfect for what you want to achieve here: https://perchance.org/upload-plugin

It's used to create settings/character/etc. share links for e.g.

Examples (linked from the upload-plugin page):

Let me know if I misunderstood though

[–] AdComfortable1514 2 points 6 months ago* (last edited 6 months ago)

Thanks! Yeah , this is great !

I'm thinking of creating some sort of space where people can share their generator settings with each other.

So for example , if Bob has configured the fusion generator to generate " frogs on a beach" or something , he can save the settings he used and upload them to a shared directory

Then Alice can download that savefile , load it into the generator and generate "frogs on a beach" on her device.

It would be nice to have an Image URL to go with every .json file , but I don't think I can do that since there is no way for me to moderate that properly.

//----//

Sidenote:

Been on a hiatus from the AI chat , but I'm thinking a similiar feature could be even more useful there.

E.g Instead of inventing a scenario , or inventing a character to chat with , I pick a json file from a public directory with a scenario and/or character and load it into the AI chat generator

Again; this would also be a good feature to use with an URL image.

So you browse a gallery , click an image of "a frog on a beach" with lots of upvotes , and the .json file is loaded into the AI chat and you can have a conversation with "a frog on a beach"

//-----//

Extra sidenote :

A "global" image gallery could be pretty cool.

So all perchance AI generators that upload to the folder "global" will all upload to to the same folder.

And if you click the image you get a link to the generator it was uploaded from.

Can be a cool discovery tool for users , and a way to encourage competition between generator creators.

[–] AdComfortable1514 3 points 6 months ago

Question ; If I add this feature to my AI image generator https://perchance.org/fusion-ai-image-generator, and people choose to use NSFW backgrounds in chat , is that going to cause problems for site ad-monetization?

Also ; can we add a "comments" button to images posted in the AI image gallery?

[–] [email protected] 1 points 6 months ago

I made an early implementation of an upcoming huge project I'll make after the 2.0.20.1 update business, utilizing the onComment and onLoad features from the example page, described here:

https://lemmy.world/post/15230747