this post was submitted on 25 Sep 2023
4 points (83.3% liked)

Perchance - Create a Random Text Generator

463 readers
10 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
 

Currently notifications aren't supported on mobile, and also you won't get notifications if you don't have a perchance comments section open somewhere on your computer. It doesn't matter which comments section you have open (i.e. it can be on any generator/page, regardless of which particular comments boxes that you've subscribed to), but it needs to be visible somewhere.

Also, some browsers will "hibernate" a tab that is backgrounded/inactive which will pause the notification script, so it's best to pull the browser tab out into its own browser window so that the tab is deemed "active"/visible by your browser - that way it won't "hibernate" the tab.

So, with the above caveats, you now have a crude way to get notified if someone comments on your generators! Or when people are active at your favorite hang out spot, etc. The caveats are annoying, but it's the first step! Please give feedback if there are any issues - I may not be able to fix them, or at least may not be able to fix them right away, but it'll be helpful to hear about the most annoying issues so I can plan future improvements here.

top 3 comments
sorted by: hot top controversial new old
[–] VioneT 2 points 1 year ago (1 children)

Like how the notifications appear + the channel name of the chat where it was sent is also nice QoL.

The only problem for me is that my channel names are generic i.e. 'ch1' 'ch2' etc. so I have to remember which channel are those xDDD (might need to change it at the hub). Any way to preserve the comments after changing the channel name?

[–] perchance 2 points 1 year ago (1 children)

Good feedback! Just added channelLabel = blah so you can change what the channel is "called" (for the purpose of notifications, and potentially other stuff in the future) without changing the actual channel. You might need to refresh all perchance tabs that you have open to get it working (since any one of them that has a comments section open could be currently "handling" notifications).

Also, unrelated, but today I made a change which makes it so you can only get notifications for a channel if you've actually visited that channel at least once. This ensures that e.g. if someone has a secret channel on their generator (where e.g. someone types a secret channel name into an input box, and then it dynamically loads up a comments box with for that channel), then people can't "spy" on that channel by simply enabling notifications. With the original design if you just used '*' then you'd get notifications from all channels on that generator.

And I also added a feature where you can write e.g. 'bob~>general' to get notified whenever someone mentions 'bob' in a message that is sent to the 'general' channel. Note that you need to use the actual channel name, not the label. The currently-viewed channel name is shown in the prompt/popup. And you can of course add multiple rules like 'bob~>general|bobby~>general'. The reason I added this is because it's handy to e.g. get all notifications for certain channels, like the 'feedback' channel (in case I accidentally introduced a bug in latest update of a gen), whereas the 'general' channel maybe is too flooded with messages for me to want to get notifications on every message.

This notification stuff has pretty bad UX lol, but it'll do for now.

[–] VioneT 2 points 1 year ago

Thanks again!!