MarseyWorld/files/routes
HeyMoon 7c040367fa Bring back orgies (watchparties), now controllable by admins, and generally better in all ways (#165)
This PR adds orgies back into rdrama. Long ago, snakes made the original orgy code, and it was super fun. But he had to rush it out, and ended up making it a bit unsustainable, and had a couple questionable coding decisions, which meant that it had to be removed. Hey, the man literally did it in a few hours before the DB trial continued, lmao.

Anyways, I took my own approach to it. I do not use iframes, i just just repurpose code from /chat window. Because I had that freedom, I also moved things around to make the user experience a bit better. I also added a title to give users some context about what's happening. Check it out

![image](/attachments/6719146c-4922-4d75-967d-8d424a09b198)

Most importantly, this is all configurable from the site. Admins with the permission "ORGIES" will see this in their control panel

![image](/attachments/423d6046-a11d-4e84-bd2c-a2a641afd552)

Nigga, idk where to put it, so I made my own category.

If there is no orgy in progress, admins will see this:

![image](/attachments/7c64b9fa-cdf4-4986-a0c4-f2324878062e)

Click the button, and, viola, the orgy begins.

If there is an orgy in progress, the page will look like this:

![image](/attachments/b65be4b3-5db1-43cb-8857-7d3a8ea24ca7)

Click the button, and the orgy stops.

If an orgy is in progress, navigating to /chat will take the user to the orgy seemlessly. But what if they don't want to participate, liek some kind of spoilsport? Just navigate to /old_chat.

That's just about it, it's really that simple. I have lots of ideas for the future, but I'll let that wait til later :).

A few notes about implementation:
 - I moved some functionality out of /templates/chat.html and into /templates/util/macros.html. This is just so I could reference the code directly from my new template, /templates/orgy.html.
 - The orgy is stored as a single row in the new table "orgies". Okay, I know this is a little silly, but you know what they say: "if it's stupid and it works, it's not stupid". (tbf the oceangate ceo also said that)

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: rDrama/rDrama#165
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-07-02 23:55:37 +00:00
..
__init__.py add BOTS feature 2023-03-16 06:07:39 +02:00
admin.py Bring back orgies (watchparties), now controllable by admins, and generally better in all ways (#165) 2023-07-02 23:55:37 +00:00
allroutes.py fix duplicate cookie issue 2023-07-02 02:00:56 +03:00
asset_submissions.py fix wrong badge order 2023-07-01 02:10:50 +03:00
awards.py make jannies able to award shadowbanned-cels 2023-07-02 20:24:21 +03:00
casino.py dont pass db session as an argument unless necessary 2023-06-08 03:49:37 +03:00
chat.py Bring back orgies (watchparties), now controllable by admins, and generally better in all ways (#165) 2023-07-02 23:55:37 +00:00
comments.py fix this https://media.discordapp.net/attachments/1104910184901525544/1124420076662173776/image.png?width=1144&height=611 2023-06-30 22:33:18 +03:00
errors.py use error()instead of abort() in sanitize 2023-06-30 23:34:29 +03:00
feeds.py use new pagination system everywhere it isnt used 2023-05-06 00:47:07 +03:00
front.py fix forgotten subdomain 2023-07-01 22:37:32 +03:00
giphy.py default ratelimit doesnt apply implicitly if theres other @limiter.limit before the function, so add it explicity before all functions 2023-02-26 10:41:04 +02:00
groups.py "Leave" instead of "Kick" when its myself 2023-05-16 13:40:57 +03:00
hats.py remove useless tabs 2023-05-06 00:47:07 +03:00
jinja2.py fix 500 error 2023-07-02 02:14:57 +03:00
login.py use more secure token_urlsafe 2023-06-30 19:51:14 +03:00
lottery.py stop the infamous terrorist known as carpathian ibn al-florist from breaking the site everytime he wants a fat lottery payout 2023-04-03 19:58:17 +02:00
mail.py add 1/1 second ratelimiter for user ids to fix blackjack exploit 2023-04-02 08:52:26 +02:00
notifications.py stop usage of .update 2023-07-03 00:42:34 +03:00
oauth.py complement 32fa466e6a 2023-06-23 16:46:42 +03:00
polls.py Add House Edgy 2023-06-26 18:05:27 +03:00
posts.py disable ghost-posting in holes to prevent hole jannies from unmaking ppl who participate in them 2023-07-01 03:39:24 +03:00
push_notifs.py add 1/1 second ratelimiter for user ids to fix blackjack exploit 2023-04-02 08:52:26 +02:00
reporting.py disable ghost-posting in holes to prevent hole jannies from unmaking ppl who participate in them 2023-07-01 03:39:24 +03:00
routehelpers.py fix improperly typed func 2023-06-24 21:02:16 +03:00
search.py allow ppl to search their own ghost comments 2023-06-24 16:37:08 +03:00
settings.py remove event_darkmode 2023-07-03 01:55:56 +03:00
special.py rename submissions to posts 2023-06-08 02:26:32 +03:00
static.py remove unnecessary route 2023-07-01 22:37:43 +03:00
subs.py Add House Edgy 2023-06-26 18:05:27 +03:00
users.py disable leaderboard in wpd temporarily 2023-06-30 23:38:59 +03:00
votes.py stop usage of .update 2023-07-03 00:42:34 +03:00
wrappers.py use more secure token_urlsafe 2023-06-30 19:51:14 +03:00