You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discord users put their high character count xenpaper links right in chat, hogging a lot of screen real estate.
But also, they are limited in character length. Attaching a text file is not doable but not convenient.
Solution ideas:
Shorten links with services like TinyURL. Limitation: they only allow 600 links per month via their API with the free package.
Discord bot to post the Embedded link. (Users can't post embedded links, but bots can, and thereby shorten the post length and allow xenpaper scripts longer than a user's post length limit)
Small DB caching the recently copied links; reformat the copied links to use a shortened URL. Limit stored links per IP so that one person can't mash the copy button 10,000 times and hog the entire cache. Probably the easiest approach...
...while this is a low-impact enhancement right now, it could be nice longer term if xenpaper gains more functionality and more popularity.
The text was updated successfully, but these errors were encountered:
I think you might be overthinking the URL shortening abuse prevention mechanic.
The main concern with your suggested url-shortening approach is that it requires server-side code to exist. Right now, xenpaper is client-side application.
You're right - it's too long - but what about other ways to prevent this?
Well, my first thought was doing ASCII compresison.
Compression via http://codelobe.com/tools/ascii-compress, the output looks like this:
Problems:
Solution ideas:
Shorten links with services like TinyURL. Limitation: they only allow 600 links per month via their API with the free package.
Discord bot to post the Embedded link. (Users can't post embedded links, but bots can, and thereby shorten the post length and allow xenpaper scripts longer than a user's post length limit)
Small DB caching the recently copied links; reformat the copied links to use a shortened URL. Limit stored links per IP so that one person can't mash the copy button 10,000 times and hog the entire cache. Probably the easiest approach...
...while this is a low-impact enhancement right now, it could be nice longer term if xenpaper gains more functionality and more popularity.
The text was updated successfully, but these errors were encountered: