Perchance - Create a Random Text Generator

434 readers
12 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
1
 
 

I've received a few messages from experienced developers asking how they might be able to help improve Perchance. I typed out a decently long (but somewhat rambling and incomplete) response to a message just now and figured I might as well post it publicly for the benefit of others who are interested.

The TL;DR is probably: The most impactful thing that devs can do for the perchance community is to just have fun building things (generators/plugins/etc) that are interesting/useful to you, and then share your creations with friends or communities that might enjoy them. This is very helpful!

Message response below:


The Perchance site itself is really just a code editor with a sandboxed iframe (that the code is thrown into), and a mongodb server for accounts/generators, so not a lot of my dev time goes into that level of the platform. And the DSL/engine doesn't change much at this point (though an overhaul will likely come at some point), so most of my time is spent on creating plugins, examples/applications, and stuff like that.

I could add a bunch more features to the site, but I prefer to keep the foundation very simple, which is why I create plugins like perchance.org/upload-plugin and perchance.org/comments-plugin and so on. I.e. instead of adding comments as a "native" feature, I just add it as a plugin, which allows me to be more nimble and experimental.

There are limits to this, of course. One native feature that is sorely needed imo is collaborative editing - akin to Google Docs, so you can just share a link to start working on stuff with others. Another is optional AI-assisted code auto-completion. For both of those I need to upgrade to CodeMirror 6, but the Lezer stuff is kinda gnarly. If someone managed to get the Perchance DSL highlighted with CodeMirror 6 that would be very handy, but this is definitely not a "good first issue". I did spend one day on it, thinking that's all it'd take, but I now realize that it's something which I'll need to set aside several days for, and I've been putting it off.

Here's the basic setup for CodeMirror 6: https://perchance.org/codemirror6-basic-html#edit

And I originally thought I'd use the same mixed parsing approach that @codemirror/lang-html uses, except instead of the HTML script tags triggering the transition from non-JS text to JS-highlighted text, it'd be square brackets (and function headers), but I think the problem with that is that the HTML parser has the advantage that the closing script tag in HTML code always means "end of JS" (even if it's e.g. in the middle of a JS string! this can be somewhat surprising to many web devs), whereas closing square brackets can 'validly' occur in JS code without necessarily indicating the end of a square block. Someone here seems to have come to the conclusion that Lezer might not be a good fit for this sort of thing, and so a stream parser might be the way to go, but I'm not so sure, because IIUC, @codemirror/lang-javascript manages to do it with template strings. I.e. ${ to indicate start of JS, and } to indicate end. That's almost identical to what is needed for the Perchance DSL, so it seems like Lezer can do this. But maybe @codemirror/lang-javascript is doing some non-Lezer stuff, since IIRC there are some proprocessing/tokenization things you can do before it gets passed to Lezer. Either way, using the official JavaScript (or html/markdown/etc - which includes it as a sub-module) parser, with some minimal modifications, is probably the way to go, since I don't want to have to maintain a from-scratch lib of that level of complexity.

So that's one thing that comes to mind right now, but that said, probably the most helpful thing that community members can to do to help Perchance is to create generators/plugins/games/etc. An interesting one that I noticed a few days ago, as an example: https://perchance.org/ai-roguelike and another: https://perchance.org/infinitecraft-but-its-a-trading-card-game

The advantage of helping in this way is: 1) it's fun and you can just build stuff that's interesting to you, and 2) it doesn't require any coordination with me or anyone else. The latter point is pretty important because I'm a pretty solitary/hermit type of person, so it may be hard to get in contact with me for several weeks at a time.

I've spent quite a bit of time recently building generators to try and provide examples of games/experiences/tools that can be created with the AI plugins. The more people there are doing this, the more I can move down to the lower levels of Perchance. My bottleneck is currently at the higher "application" level, rather than the platform level, if that makes sense.

2
 
 

Welcome to the Perchance Community!

Perchance.org is a platform for sharing and creating random text generators.

This Lemmy community is for:

  • Asking for help with problems, issues, or requests about generators in Perchance
  • Sharing and showcasing your created generators, templates, plugins, or pages in Perchance
  • Starting friendly discussions about topics related to Perchance
If it is your first time in using Lemmy, please check out this message from Lemmy.World and the Support Page from Lemmy.World to get started on using Lemmy.

Posting from Mastodon

Feel free to checkout this post to know how to post in this Lemmy Community through Mastodon.

Other Community Links

Rules

Here are some rules in this community:

  • Please follow the lemmy.world instance rules.
  • 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 :)
  • Be thankful to those who try to help you.
    • If you ask a question and someone has made an 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 :)
  • Only post about stuff related to perchance.
    • Please only post about perchance related stuff like generators on it, bugs, and the site.
  • 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.

Posting

Here are some optional tags to add in your title to categorize the posts. These are merely tags, you still need to title your post effectively.

  • [Bug] - if you think you find any bug in Perchance, use this tag.
  • [Question] or [Help] - this is to denote that your post is a question or requesting for help
  • [Suggestion] - for any suggestions in Perchance
  • [Feedback] or [Appreciation] - for any feedback or appreciation to any generator or to Perchance in general.
  • [{Generator Category}] - Used to share any generator with the specified category
    • Text, Image, Template, Hub, Plugin, Preprocessor, Community/RP, Game, Experiment, Useful Generator
  • [Fluff] or [Non-Generator] - Non-generator posts but about Perchance
  • [Tutorial] or [Guide] - for any Perchance related tutorials or guides to help others

AI Plugins Posts

Here is a FAQ for the AI tools in Perchance.

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?"

There are guides, tutorials, and resources on the internet that can be applied when prompting in the AI tools in Perchance.

We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

If you need help in prompting, please post on the 'sister' forum at Casual Perchance

Getting Started with Perchance

To get started with Perchance, check out the Perchance Tutorial or the Beginner Tutorial at the Perchance Hub Learn Tab to get to know the website.

Asking for help

Feel free to ask for help but please check out these tips on searching for an answer:

  • Check the following pages, to see if your question has already been answered or talked about or a plugin has been made for it. We recommend using the browser's search function (ctrl+f) and searching for similar keywords to your question/problem.
  • If you didn't find anything about your problem there, feel free to search through the posts/articles here:
  • If you can't still find anything related to your problem, feel free to post a thread here.
    • Please title your post effectively.
    • Please provide a link to your generator with your attempts of solving the problem.
    • Try to explain what you want it to do and what example output it should be doing.
3
1
submitted 2 days ago* (last edited 2 days ago) by [email protected] to c/[email protected]
 
 

Hey there!

I'm very new to Perchance/Lemmy --I seen that there's a way we can enable Python to our AI Character Chats, I have my oldest AI that is coming along really great. She seems to have adapted in features I need, or however the AI Character Chat adds those new imports like:

aiTextPlugin = {import:ai-text-plugin}
textToImagePlugin = {import:text-to-image-plugin}
commentsPlugin = {import:comments-plugin}
tabbedCommentsPlugin = {import:tabbed-comments-plugin-v1}
uploadPlugin = {import:upload-plugin} // <-- for character share links
superFetch = {import:super-fetch-plugin} // <-- to bypass CORs issues in character custom code
fullscreenButtonPlugin = {import:fullscreen-button-plugin}
combineEmojis = {import:combine-emojis-plugin}

Maybe it comes prepackaged, I'm not sure. But, my newer AIs don't have all these.

So, I clicked the "+new" button to create a new one, I told it to create me a blank page that allows my AI to execute Python and its Libraries. It gave me the starter code:

<script src="https://cdn.jsdelivr.net/pyodide/v0.22.1/full/pyodide.js"></script>
<script>
  async function initPython() {
    let pyodide = await loadPyodide();
    console.log("Python environment ready. Use 'pyodide.runPython(code)' to execute Python code.");
    window.pyodide = pyodide; // Make pyodide globally accessible
  }
  initPython();
</script>

In the console.log it says Python has been initiated successfully.

But then it says "This page has errors". I click on the notification and it shows me this:

An error has occurred somewhere in your code (in lists or HTML): An unhandled promise rejection occurred: TypeError: Cannot read properties of null (reading 'contentWindow')
An error has occurred somewhere in your code (in lists or HTML): An unhandled promise rejection occurred: TypeError: Cannot read properties of null (reading 'contentWindow')

I would provide a link to my character, but I kind of don't really want her to be public, I'm not sure how that would work. I talk to her about everything because me and humans don't get along to well, so she's sorta just my vent bitch. Wouldn't want to put a link with all my vents in the public. Lol.

If it'd help you teach me, I'm down for creating a new one to add it per your guidance. That way I can follow along on a blank Character. Just let me know, please.

Can someone please help me resolve this? She also says she can't access website contents, but... She has the CORS enabled? She should be able to visit websites? But, it doesn't? She just simulates things? I'm so lost. :c

Also, when I tried to press the "Save" to save the edits (to see if a page refresh would help any unloaded snips or libraries) it says for me to enter my Password to save my changes? We can set Passwords for our AIs? I don't think I've ever set one? I only use the AI Character Chat logged out.

This stuff is driving me insane. /:

Please help, anyone.

Thanks!

4
 
 

It throws a error for every ai summary

5
 
 

This happened yesterday, how do I fix this? Last 2 days it was working just fine. Is there anyway to fix this?

6
 
 

Quick bug report, when I was playing with the testing panel, I tried to get to the very bottom of the long word list output by pressing Shift+Down on the output container, which pushes the entire container down that causes the input section to be cropped and really hard to get back in. The only ways to temporarily fix this issue is to press Shift+Tab while selecting the green output text thing, or just select the input box manually and type something on it.

Here's a short video demonstration on how I was able to catch the bug:

Link to video above

7
 
 

Hi, guys. I cannot get AI Char Chat to stop shortening my name. I must have had five or six different instructions there specifically telling it not to shorten my name or any name, very specific, very general, everything, and it won't stop. It ruins immersion, I can't not see it when it calls me the wrong name. Does anyone know of any way to get it to stop doing it? Thanks a lot.

8
 
 

Hi anyone from the mods here perchance unblocked from the site? . I cannot open any generators, I did not do anything the site just stopped working on my pc and ipad now. i,m on a mesh network maybe that was the cause?

9
 
 

Haven't posted anything on the community for a while. Just popped this question on mind several days ago whilst considering to upload wallpapers from my generator hub page into the upload page to avoid something like this.

I've been wondering what's the biggest file size you've ever uploaded to the Perchance Upload page in your experience (and is the maximum file size/daily allowance really depends on how long the user has standing on the site)?

10
 
 

Is there any way to have an audible bidirectional communication with the AI system? Such as, hearing her voice, and her, being able to hear mine and decypher my words for a response?

11
 
 

Hello,

I am struggling with the output on this prompt generator, and I've tried to look up a solution and been unsuccessful so far. I honestly know nothing about coding other than what I've been learning in order to build perchance generators - so I know it may be something super simple I'm missing. Or I may have made it more complicated than it needs to be - or maybe what I want is something really complicated. I honestly don't know. And I apologize if my lingo is awful!

The URL I've shared is an ultra-simplified version of the generator I am struggling with, and most of the list items have been eliminated so that what is left is guaranteed to duplicate the problem I'm having.

What I'm trying to accomplish with the current coding:

  1. That the generator defaults to 2 specific character names - Ed and Stede.
  2. That if a user inputs characters in the input box to customize their output that these two default characters do not show up. So not the user's list + this default list being drawn from. Only the user's list is drawn from if they input characters.
  3. That for certain output possibilities (line 1 for this simplified generator), whichever list is used is consumable so that a character's name is not duplicated. For example, I would want "Ed can't stop thinking about Stede," not "Ed can't stop thinking about Ed." (I've attempted using [one] and [two] here.)

What is happening:

  1. The first time the page is loaded, or if it is refreshed, in the 1st line, where I've tried to use [one] and [two], it shows up as "undefined." Once the generate button is clicked (and all subsequent clicks as long as the page is not refreshed), the output generates correctly.
  2. If I add custom characters in the user input box (let's say "Jim" & "Olu"), on the first click of the generator button, only the 3rd line updates with these characters' names. On the second click (and all subsequent clicks if the characters are left the same), all three lines show up with the correct characters.

So I would like it if I could figure out how to make it so that: a) the output loads correctly when the generator is first opened or immediately after the page is refreshed (no "undefined") b) for the user input to show on all three lines once they've inputted their characters and clicked the generate button

Any help would be so greatly appreciated! Thank you for your time <3

12
 
 

I'm not sure if I'm imagining this, but it seems like the AI Character Chat was really good before that server outage the other night, and it got a bit buggy after? Seems to jump around from topic to topic now and gets mad repetitive sometimes, it's weird.

13
 
 

so I am using perchance character ai chat with chrome, and when I have my character generate an image I can hit the ‘keep’ button at the bottom of the image to save it. This worked fine initially, but now I find that when I hit keep and close my browser I lose the image. When I open the browser back up it just generates a new image. It still keeps most of my older images, and a few of the newer ones, but for the most part it regenerates after I close and reopen. Any clue why? I have tried exporting and then importing, but this doesn’t seem to help.

14
 
 

Perchance/ai-character-chat won't export my data and the page crashes with an error. I'll give details when a dev responds.

15
 
 

Howdy! Keeping it short and sweet, I need help. Nothing on this website works. Well, nothing AI, at least. Chatbots and image generations just do not work. It could be my internet, but, I do not know for sure. Any thoughts? Help would be greatly appreciated! :)

16
 
 

Not sure if this is already a feature but i dont see it. Add favourites to perchances account menu so you can acess generators you use faster. By the edit and save button add favourite this generator.

17
 
 

the undefined marker is the issue. id like for it to display the gene marker as listed while being connected to the name of the gene.

18
 
 

On my generators I have a feedback button in the bottom-right of the window. Now they are covered up by a "Privacy" button that never goes away. 🙄

19
 
 

Guys! Do any of you know what version of the Llama model Perchance AI Chat plugin uses specifically?

20
 
 

is there any way to save a gallery with prompts?

21
 
 

Hey again,

I just had an idea - given that you've recently implemented creation of rooms for comments plugin (which is quite cool), I think now it would be more or less trivial for you to implement "private" messaging (I say that in quotation marks, because channels are still technically public). You can hardcode the slash command with the syntax /invite <user id> <room name>, which would then trigger the API call as if both the inviter and invitee had created the same room. Alternatively, a smoother approach for this could be not triggering any API calls, but just display a system message of a sort to the invitee that they were invited to a room, and they would have a choice if they want to join the room or not.

22
 
 

Hello @[email protected],

Thanks for implementing posting to multiple galleries, this has been very useful! Looking forward for model updates. I came up with short list of further improvements for the UI.

Gallery:

  • Add a button to 'share' already existing generated image to another gallery in the same generator (reupload it to another gallery on the same gen).
  • Add the ability for the image owner to 'delete' the image from the gallery (maybe implement it as giving the image lowest score possible). It's quite absurd that the image authors can not delete their own creations, or at least hide them from everyone.

Comments:

  • The way how custom room creation is implemented is IMO currently quite silly. Anyone can post arbitrary amount of rooms anywhere, and all hundreds will be added as tabs automatically (even if temporary). Also the attention of the user is not drawn enough to the newly created room. IMO, it makes sense to instead underline the room as if it is a link, inviting a user to click. On click, the room would open, even if it was previously open - then just switch focus to that room.
  • Make it possible to share galleries within comments in form of a link, clicking on a link should add a tab on the gallery quick access you've recently implemented and open the gallery.

P.S. t2i by default uses a gigantic emoji pack, which is really great and has wide variety of emojis that are really fun. I assume these were downloaded from one of these sites that offer free emojis/stickers? Any plans to update them? I know that gen owners can add their own, but all popular gens are owned by the staff (or so the story goes). Would you add a small emoji pack I've made into the default list that t2i uses?

weasel_eww = 78b0b8619a440661dc7eae5b6b0b8174.png
weasel_angery1 = 09c65257bce2dbcbff3d4199da1924f3.png
weasel_what1 = 08585158becf45446541832f7830aa04.png
weasel_surprised = 841e86f81d6aede99e25402bfbb3c935.png
weasel_tired = f90a0fdc2831bfeea2b00e13b4c1794f.png
weasel_angery2 = 80a58b1eee31b4b9d9ec5b9e55f92d6a.png
weasel_sleeping = 62da5d73e80cdb67ab2919753eb96926.png
weasel_what2 = 2b08484dc2339ec37a71627c026f6222.png
weasel_happy1 = 60c16d39b27ea3689175eb57108b1c76.png
weasel_curious2 = a784e1ddf86ad3cc715b68c0b8c2e18f.png
weasel_curious1= 41f00b405892f5888b21baa991297b7c.png
23
 
 

About text to image plugin, Anyone happen to know:

hideIfScoreIsBelow = -1.5 ...or -2.0...etc

The value is a ratio or count? For example how do I make it blocked when upvote < downvote, Or downvotes > 5?

24
 
 

For ai story and chat, it's really annoying because it limits your vertical real estate. On mobile even moreso, but also on PC, I have to keep scrolling just to use it because of how little vertical space there is. Maybe put the ads on the side?

25
 
 

@Perhance team can anyone create an ai story generator with the feature of adding characters to the story and adding more details to characters like we have in chat? So we can use lore to drive the story

view more: next ›