rDrama/files/helpers
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: #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
..
config Bring back orgies (watchparties), now controllable by admins, and generally better in all ways (#165) 2023-07-02 23:55:37 +00:00
actions.py stop usage of .update 2023-07-03 00:42:34 +03:00
alerts.py restore /update for !everyone since its needed 2023-07-03 00:48:23 +03:00
assetcache.py same as last couple of commits 2023-04-25 17:59:16 +02:00
casino.py dont pass db session as an argument unless necessary 2023-06-08 03:49:37 +03:00
cloudflare.py whenever u import from const, import everything 2023-03-12 15:03:58 +02:00
const_stateful.py dont pass db session as an argument unless necessary 2023-06-08 03:49:37 +03:00
cron.py stop usage of .update 2023-07-03 00:42:34 +03:00
get.py rename flags to reports 2023-06-23 19:49:26 +03:00
lazy.py revert sqlalchemy changes 2023-03-16 08:27:58 +02:00
logging.py whenever u import from const, import everything 2023-03-12 15:03:58 +02:00
lottery.py combined buy button for awards and hats 2023-04-24 17:08:40 +02:00
mail.py whenever u import from const, import everything 2023-03-12 15:03:58 +02:00
marsify.py increase cutoff for marsey mappings to 5 characters to stop "this" and "with" and the like from getting mapped 2023-04-28 11:14:26 +02:00
media.py make sure all usages of subprocess have timeout duration 2023-06-29 22:38:55 +03:00
offsitementions.py complement 32fa466e6a 2023-06-23 16:46:42 +03:00
owoify.py exclude ping groups from owoify award 2023-03-10 03:45:58 +02:00
regex.py fix Xmaxxing (and add badass images) (#164) 2023-07-02 17:41:46 +00:00
roulette.py dont give roulette badges when using mbux 2023-06-24 11:03:28 +03:00
sanitize.py add today tld 2023-07-02 02:26:57 +03:00
security.py [DO NOT MERGE] multiple sub banners (#59) 2022-12-11 23:44:34 +00:00
settings.py rename dm_images to dm_media 2023-05-12 18:27:46 +03:00
sharpen.py Add the edgy award (and some other goodies) (#157) 2023-06-26 14:38:48 +00:00
slots.py combined buy button for awards and hats 2023-04-24 17:08:40 +02:00
sorting_and_time.py rename submissions to posts 2023-06-08 02:26:32 +03:00
stats.py Add House Edgy 2023-06-26 18:05:27 +03:00
treasure.py remove !wordle since nobody uses it (only 2 ppl used it last 30 days in rdrama and WPD) 2023-04-29 23:27:45 +02:00
twentyone.py fix issue with multiple blackjack games 2023-05-04 01:12:40 +03:00
useractions.py actually fix roulette (i forgot that i had @lazy before def has_badge) 2023-05-16 03:30:55 +03:00