2022-11-29 20:20:26 +00:00
from enum import Enum , auto
2022-11-15 09:19:08 +00:00
from os import environ , path
2022-06-18 15:37:01 +00:00
import tldextract
2022-12-22 17:13:03 +00:00
import datetime
2023-01-01 02:08:59 +00:00
t = datetime . datetime . now ( )
2023-01-01 04:48:36 +00:00
2022-12-22 17:13:03 +00:00
fistmas_begin = datetime . datetime . strptime ( f ' 1/12/ { t . year } ' , ' %d / % m/ % Y ' )
2022-12-30 17:31:23 +00:00
fistmas_end = datetime . datetime . strptime ( f ' 30/12/ { t . year } ' , ' %d / % m/ % Y ' )
2023-03-08 06:51:40 +00:00
def IS_FISTMAS ( ) :
return fistmas_begin < datetime . datetime . now ( ) < fistmas_end
2022-10-08 00:43:04 +00:00
2023-01-01 14:35:52 +00:00
homoween_begin = datetime . datetime . strptime ( f ' 15/10/ { t . year } ' , ' %d / % m/ % Y ' )
homoween_end = datetime . datetime . strptime ( f ' 1/11/ { t . year } ' , ' %d / % m/ % Y ' )
2023-03-08 06:51:40 +00:00
def IS_HOMOWEEN ( ) :
return homoween_begin < datetime . datetime . now ( ) < homoween_end
2023-01-01 04:48:36 +00:00
2022-12-25 03:28:57 +00:00
DEFAULT_TIME_FILTER = " all "
DEFAULT_THEME = " midnight "
DEFAULT_COLOR = " 805ad5 "
SPAM_SIMILARITY_THRESHOLD = 0.5
SPAM_URL_SIMILARITY_THRESHOLD = 0.1
SPAM_SIMILAR_COUNT_THRESHOLD = 10
COMMENT_SPAM_SIMILAR_THRESHOLD = 0.5
COMMENT_SPAM_COUNT_THRESHOLD = 10
DISABLE_DOWNVOTES = False
DESCRIPTION = " rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn ' t drama we won ' t touch, and we want it all! "
2023-02-24 02:54:31 +00:00
EMAIL = " rdrama@rdrama.net "
2022-12-25 03:28:57 +00:00
TELEGRAM_ID = " "
2022-11-15 09:19:08 +00:00
DEFAULT_CONFIG_VALUE = " blahblahblah "
2022-12-21 13:09:23 +00:00
SITE = environ . get ( " SITE " ) . strip ( )
SITE_NAME = environ . get ( " SITE_NAME " ) . strip ( )
SECRET_KEY = environ . get ( " SECRET_KEY " ) . strip ( )
PROXY_URL = environ . get ( " PROXY_URL " ) . strip ( )
LOG_DIRECTORY = environ . get ( " LOG_DIRECTORY " )
SETTINGS_FILENAME = environ . get ( " SETTINGS_FILENAME " )
GIPHY_KEY = environ . get ( " GIPHY_KEY " ) . strip ( )
TURNSTILE_SITEKEY = environ . get ( " TURNSTILE_SITEKEY " ) . strip ( )
TURNSTILE_SECRET = environ . get ( " TURNSTILE_SECRET " ) . strip ( )
YOUTUBE_KEY = environ . get ( " YOUTUBE_KEY " ) . strip ( )
VAPID_PUBLIC_KEY = environ . get ( " VAPID_PUBLIC_KEY " ) . strip ( )
VAPID_PRIVATE_KEY = environ . get ( " VAPID_PRIVATE_KEY " ) . strip ( )
2023-02-01 19:49:39 +00:00
DONATE_SERVICE = environ . get ( " DONATE_SERVICE " ) . strip ( )
DONATE_LINK = environ . get ( " DONATE_LINK " ) . strip ( )
2022-12-21 13:09:23 +00:00
CF_KEY = environ . get ( " CF_KEY " ) . strip ( )
CF_ZONE = environ . get ( " CF_ZONE " ) . strip ( )
2022-10-08 00:43:04 +00:00
blackjack = environ . get ( " BLACKJACK " , " " ) . strip ( )
FP = environ . get ( " FP " , " " ) . strip ( )
2023-01-23 12:40:44 +00:00
PROGSTACK_MUL = float ( environ . get ( " PROGSTACK_MUL " , 2.0 ) )
2023-01-26 12:41:04 +00:00
ENCOURAGED = environ . get ( " ENCOURAGED " , " " ) . strip ( ) . split ( )
ENCOURAGED2 = environ . get ( " ENCOURAGED2 " , " " ) . strip ( ) . split ( )
2022-10-08 00:43:04 +00:00
2022-11-29 20:20:26 +00:00
class Service ( Enum ) :
RDRAMA = auto ( )
CHAT = auto ( )
2022-10-08 00:43:04 +00:00
2023-02-26 01:42:39 +00:00
POST_RATELIMIT = ' 10/hour;20/day '
DEFAULT_RATELIMIT = " 30/minute;200/hour;1000/day "
CASINO_RATELIMIT = " 100/minute;2000/hour;12000/day "
2022-11-13 06:43:35 +00:00
2022-12-19 21:44:46 +00:00
PUSH_NOTIF_LIMIT = 1000
2022-11-13 11:11:55 +00:00
2022-11-21 00:41:45 +00:00
IS_LOCALHOST = SITE == " localhost " or SITE == " 127.0.0.1 " or SITE . startswith ( " 192.168. " ) or SITE . endswith ( " .local " )
2022-11-20 22:16:49 +00:00
if IS_LOCALHOST : SITE_FULL = ' http:// ' + SITE
2022-06-18 15:37:01 +00:00
else : SITE_FULL = ' https:// ' + SITE
2022-11-29 23:50:32 +00:00
LOGGED_IN_CACHE_KEY = f " { SITE } _loggedin "
LOGGED_OUT_CACHE_KEY = f " { SITE } _loggedout "
CHAT_ONLINE_CACHE_KEY = f " { SITE } _online "
2022-11-27 16:59:36 +00:00
REDDIT_NOTIFS_CACHE_KEY = " reddit_notifications "
MARSEYS_CACHE_KEY = " marseys "
EMOJIS_CACHE_KEY = " emojis "
2022-06-18 15:37:01 +00:00
band-aid fix for frozen session issue on signup (#50)
through some reason or another, people are somehow getting cookies that aren't prepended with a dot.
this is a problem because both sessions at, as best as I can tell, mix so it tries to read from a different cookie than we write to. this essentially "freezes" the session in place. users are unable to login, logout, signup, toggle poor mode, toggle NSFW, etc.
~~this attempts to delete bad session cookies (i.e. cookies with a domain that don't start with a dot).~~
~~we don't do this on "dotless" domains (and by extension localhost) because browser support for setting cookies on FQDNs that only have one dot has tenuous support among browsers anyway).~~
~~this *may* log some people out, but... their days of being able to do stuff on the site were numbered anyway.~~
**edit: as amazing as this thought was, browsers just wipe the entire cookies completely and there's no way to specifically target dotless cookies. for an issue that affects a few users, better to just tell them to clear their cookies. if *this* doesn't work, delete service-worker.js and be done with the whole service worker crap. forever. permanently. this PR also includes some QOL improvements.**
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/50
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-06 22:07:12 +00:00
SESSION_LIFETIME = 60 * 60 * 24 * 365
2022-11-15 09:19:08 +00:00
CASINO_RELEASE_DAY = 1662825600
2022-06-18 15:37:01 +00:00
AJ_REPLACEMENTS = {
' your ' : " you ' re " ,
2023-01-01 11:36:20 +00:00
' to ' : " too " ,
2022-06-18 15:37:01 +00:00
' Your ' : " You ' re " ,
' To ' : " Too " ,
' YOUR ' : " YOU ' RE " ,
' TO ' : " TOO " ,
' everyone ' : ' everypony ' ,
' everybody ' : ' everypony ' ,
' Everyone ' : ' Everypony ' ,
' Everybody ' : ' Everypony ' ,
' EVERYONE ' : ' EVERYPONY ' ,
' EVERYBODY ' : ' EVERYPONY ' ,
}
2022-09-02 17:42:06 +00:00
SLURS = {
" nigger " : " BIPOC " ,
2022-11-26 01:19:22 +00:00
" negroid " : " BIPOC " ,
2023-02-07 00:48:04 +00:00
" coon " : " BIPOC " ,
" coons " : " BIPOCs " ,
2022-11-07 06:08:17 +00:00
" niglet " : ' BIPOClet ' ,
2022-12-26 16:59:18 +00:00
" negress " : " BIPOCette " ,
2022-11-04 00:28:05 +00:00
' nigga ' : ' neighbor ' ,
2022-09-02 17:42:06 +00:00
" faggot " : " cute twink " ,
" fag " : " strag " ,
2023-02-10 09:38:42 +00:00
" spic " : " hard-working American " ,
2023-02-10 09:39:37 +00:00
" spics " : " hard-working Americans " ,
2022-09-14 11:19:47 +00:00
" trannie " : ' <img loading= " lazy " data-bs-toggle= " tooltip " alt= " :marseytrain: " title= " :marseytrain: " src= " /e/marseytrain.webp " > ' ,
" tranny " : ' <img loading= " lazy " data-bs-toggle= " tooltip " alt= " :marseytrain: " title= " :marseytrain: " src= " /e/marseytrain.webp " > ' ,
" troon " : ' <img loading= " lazy " data-bs-toggle= " tooltip " alt= " :marseytrain: " title= " :marseytrain: " src= " /e/marseytrain.webp " > ' ,
2022-12-26 16:58:35 +00:00
" tranner " : ' <img loading= " lazy " data-bs-toggle= " tooltip " alt= " :marseytrain: " title= " :marseytrain: " src= " /e/marseytrain.webp " > ' ,
2022-09-02 17:42:06 +00:00
" kike " : " jewish chad " ,
2023-02-17 17:23:05 +00:00
" heeb " : " jewish chad " ,
2022-09-02 17:42:06 +00:00
" daisy ' s destruction " : " Cars 2 " ,
" daisys destruction " : " Cars 2 " ,
" daisy destruction " : " Cars 2 " ,
2023-01-29 08:24:31 +00:00
" pajeet " : " sexy Indian dude " ,
2023-02-10 04:37:23 +00:00
" hunter2 " : " ******* " ,
2022-09-02 17:42:06 +00:00
}
2022-12-25 01:59:59 +00:00
BAN_EVASION_DOMAIN = ' stupidpol.site '
BAN_EVASION_FULL = f ' https:// { BAN_EVASION_DOMAIN } '
2022-12-24 23:12:05 +00:00
patron = " Patron "
2022-12-25 03:09:24 +00:00
2022-12-25 03:12:35 +00:00
REDDIT_NOTIFS_SITE = set ( )
REDDIT_NOTIFS_USERS = { }
if len ( SITE_NAME ) > 5 :
REDDIT_NOTIFS_SITE . add ( SITE_NAME . lower ( ) )
if not IS_LOCALHOST :
REDDIT_NOTIFS_SITE . add ( SITE )
2022-06-18 15:37:01 +00:00
if SITE_NAME == ' rDrama ' :
2022-12-25 03:09:24 +00:00
DEFAULT_COLOR = " ff66ac "
2022-12-24 23:12:05 +00:00
patron = " Paypig "
TAGLINES = (
" world ' s largest gay orgy " ,
" world ' s largest shemale porn site " ,
" world ' s largest cat fetish furfest " ,
" world ' s largest basket-weaving forum " ,
" world ' s largest autism support group " ,
2023-02-22 20:08:14 +00:00
" world ' s largest aztec heritage forum " ,
2023-01-16 14:22:56 +00:00
" the official site of Communist Party USA " ,
2022-12-24 23:12:05 +00:00
)
2022-09-02 17:42:06 +00:00
RDRAMA_SLURS = {
2022-06-18 15:37:01 +00:00
" retarded " : " r-slurred " ,
" retard " : " r-slur " ,
2022-12-09 06:01:16 +00:00
" pedophile " : " p-dophile " ,
2022-11-12 09:39:05 +00:00
" kill youself " : " keep yourself safe " ,
2022-06-18 15:37:01 +00:00
" kill yourself " : " keep yourself safe " ,
2022-11-02 19:33:31 +00:00
" kill yourselves " : " keep yourselves safe " ,
2022-11-03 23:57:35 +00:00
" steve akins " : " Dr. Penelope Verity Oaken " ,
" steve joel akins " : " Dr. Penelope Verity Oaken " ,
" steven joel akins " : " Dr. Penelope Verity Oaken " ,
2022-06-18 15:37:01 +00:00
" latinos " : " latinx " ,
" latino " : " latinx " ,
" latinas " : " latinx " ,
" latina " : " latinx " ,
" hispanics " : " latinx " ,
" hispanic " : " latinx " ,
" i hate marsey " : " i love marsey " ,
" sodomite " : " total dreamboat " ,
" renter " : " rentoid " ,
" autistic " : " neurodivergent " ,
" i hate carp " : " i love Carp " ,
2022-10-17 17:18:51 +00:00
" gamer " : " g*mer " ,
" journalist " : " journ*list " ,
" journalism " : " journ*lism " ,
2022-12-12 07:51:21 +00:00
" elon musk " : " Rocket Daddy " ,
2022-06-18 15:37:01 +00:00
" fake and gay " : " fake and straight " ,
" rapist " : " male feminist " ,
2022-12-09 06:01:16 +00:00
" pedo " : " p-do " ,
2022-10-01 09:56:31 +00:00
" kys " : " keep yourself safe " ,
" kys " : " keep yourself safe " ,
2023-02-06 03:34:53 +00:00
" republican " : ' rethuglican ' ,
2022-11-08 04:26:35 +00:00
" america " : ' ameriKKKa ' ,
2022-11-25 21:01:35 +00:00
" it ' s almost as if " : " I ' m a retard but " ,
2023-01-20 07:20:06 +00:00
" it ' s almost like " : " I ' m a retard but " ,
2022-11-26 05:06:52 +00:00
" my brother in christ " : " my brother in Allah " ,
2022-12-04 14:44:59 +00:00
" kyle " : " Kylie " ,
2022-12-11 18:52:15 +00:00
" twitter files " : ' twitter files <img loading= " lazy " data-bs-toggle= " tooltip " alt= " :marseysleep: " title= " :marseysleep: " src= " /e/marseysleep.webp " > ' ,
2023-01-20 05:23:19 +00:00
" cool (?!it) " : " fetch " ,
2023-01-03 11:29:05 +00:00
" krayon " : " krayon (sister toucher) " ,
" discord " : " groomercord " ,
2023-01-23 06:22:01 +00:00
" allah(?! \ () " : " Allah (ﷻ) " ,
2023-03-16 10:03:24 +00:00
" my wife(?! \ () " : " my wife (male) " ,
2023-03-05 19:58:20 +00:00
" (?<!cow) tools " : " cow tools " ,
2023-03-16 04:25:00 +00:00
" trans woman " : " real woman " ,
" trans women " : " real women " ,
2022-06-18 15:37:01 +00:00
}
2022-09-02 17:42:06 +00:00
SLURS . update ( RDRAMA_SLURS )
2022-06-18 15:37:01 +00:00
2022-12-24 23:12:05 +00:00
BOOSTED_SITES = {
2023-03-13 05:42:48 +00:00
#All sites with .win TLD
#All sites with the word "forum" in the domain
#All sites with the word "chan" in the domain
2022-12-24 23:12:05 +00:00
#youtube-like
' bitchute.com ' ,
' goyimtv.tv ' ,
' odysee.com ' ,
#4chan-like
' archive.4plebs.org ' ,
' lolcow.farm ' ,
' 8kun.top ' ,
' soyjak.party ' ,
' crystal.cafe ' ,
#forums
' kiwifarms.net ' ,
' onionfarms.com ' ,
' clay.party ' ,
' tattle.life ' ,
' stormfront.org ' ,
' bluelight.org ' ,
' thecoli.com ' ,
' nairaland.com ' ,
' resetera.com ' ,
' steamcommunity.com ' ,
' lipstickalley.com ' ,
' tigerdroppings.com ' ,
' groups.google.com ' ,
' bungie.net ' ,
2022-12-30 03:35:15 +00:00
' gamefaqs.gamespot.com ' ,
2023-01-20 05:09:45 +00:00
' thefemaledatingstrategy.com ' ,
2023-01-20 07:17:33 +00:00
' econjobrumors.com ' ,
2023-01-24 10:10:17 +00:00
' incels.is ' ,
' looksmax.org ' ,
2023-01-23 06:24:52 +00:00
' sanctioned-suicide.org ' ,
2023-02-07 07:21:50 +00:00
' ar15.com ' ,
2023-02-10 05:50:28 +00:00
' neogaf.com ' ,
2023-02-28 19:23:45 +00:00
' thebore.com ' ,
2023-03-15 02:44:21 +00:00
' itjustbugsme.com ' ,
2022-12-24 23:12:05 +00:00
#twitter-like
' gab.com ' ,
' gettr.com ' ,
' parler.com ' ,
' truthsocial.com ' ,
' blacktwitterapp.com ' ,
' rdrama.cc ' ,
' marsey.club ' ,
' kiwifarms.cc ' ,
' freespeechextremist.com '
' mstdn.social ' ,
' mastodon.social ' ,
' mastodon.online ' ,
' poa.st ' ,
' shitposter.club ' ,
' sneed.social ' ,
' seal.cafe ' ,
' trp.red ' ,
2023-02-02 17:46:10 +00:00
#nested-comments
2023-02-08 07:47:29 +00:00
SITE ,
BAN_EVASION_DOMAIN ,
2022-12-24 23:12:05 +00:00
' news.ycombinator.com ' ,
' scored.co ' ,
' scrd.app ' ,
' steemit.com ' ,
' ovarit.com ' ,
' themotte.org ' ,
' hexbear.net ' ,
' cumtown.org ' ,
' hive.blog ' ,
' poal.co ' ,
' saidit.net ' ,
' lobste.rs ' ,
' retalk.com ' ,
' thepinkpill.co ' ,
' talk.lol ' ,
' lemmy.ml ' ,
' lemmygrad.ml ' ,
' raddle.me ' ,
' stacker.news ' ,
' tildes.net ' ,
' notabug.io ' ,
' syzitus.com ' ,
' phuks.co ' ,
' arete.network ' ,
' pcmemes.net ' ,
' discussions.app ' ,
' wolfballs.com ' ,
' dojo.press ' ,
' livefilter.com ' ,
2023-02-02 17:46:10 +00:00
' lesswrong.com ' ,
2023-03-04 15:56:12 +00:00
' forum.porpl.net ' ,
2022-12-24 23:12:05 +00:00
#misc
' quora.com ' ,
' givesendgo.com ' ,
' groups.google.com ' ,
' t.me ' ,
' web.telegram.org ' ,
' instagram.com ' ,
' facebook.com ' ,
' twitch.tv ' ,
' tiktok.com ' ,
' vm.tiktok.com ' ,
' github.com ' ,
' breitbart.com ' ,
' teamblind.com ' ,
' encyclopediadramatica.online ' ,
' datalounge.com ' ,
' metafilter.com ' ,
' sqwok.im ' ,
2023-01-20 05:09:45 +00:00
' thelayoff.com ' ,
2023-02-17 17:50:29 +00:00
' stackoverflow.com ' ,
' serverfault.com ' ,
' superuser.com ' ,
2023-02-26 08:02:26 +00:00
' goodreads.com ' ,
2022-12-24 23:12:05 +00:00
}
2022-12-27 01:31:21 +00:00
BOOSTED_HOLES = {
' furry ' ,
' femboy ' ,
' anime ' ,
' gaybros ' ,
' againsthateholes ' ,
2023-02-25 17:54:30 +00:00
' countryclub ' ,
2022-12-27 01:31:21 +00:00
' changelog ' ,
' programming ' ,
2023-01-03 11:27:43 +00:00
' slackernews ' ,
2023-03-01 19:15:46 +00:00
' chudrama ' ,
2023-03-13 06:20:18 +00:00
' wallstreetbets ' ,
' lit ' ,
2023-03-13 15:26:46 +00:00
' vidya ' ,
' jihad ' ,
' museumofrdrama ' ,
' space ' ,
' femaledatingstrategy ' ,
2022-12-27 01:31:21 +00:00
}
2022-12-25 03:12:35 +00:00
REDDIT_NOTIFS_SITE . add ( ' marsey ' )
REDDIT_NOTIFS_SITE . add ( ' " r/drama " ' )
REDDIT_NOTIFS_SITE . add ( ' justice4darrell ' )
REDDIT_NOTIFS_SITE . add ( ' cringetopia.org ' )
2022-12-24 23:12:05 +00:00
elif SITE_NAME == ' WPD ' :
TAGLINES = (
" People dying and cartoon cats <3 " ,
)
2022-12-25 03:12:35 +00:00
REDDIT_NOTIFS_SITE . update ( { ' watchpeopledie ' , ' makemycoffin ' } )
2022-12-24 23:12:05 +00:00
2023-01-23 10:18:05 +00:00
SLURS_FOR_REPLACING = { }
for k , val in SLURS . items ( ) :
2023-03-05 19:58:20 +00:00
newkey = k . split ( ' (?! ' ) [ 0 ]
if ' ) ' in newkey :
newkey = newkey . split ( ' ) ' ) [ 1 ]
SLURS_FOR_REPLACING [ newkey ] = val
2023-01-23 10:18:05 +00:00
2022-11-07 07:11:46 +00:00
PROFANITIES = {
' motherfucker ' : ' motherlover ' ,
2022-11-19 12:49:10 +00:00
' fuck ' : ' frick ' ,
' ass ' : ' butt ' ,
2022-11-07 07:11:46 +00:00
' shitting ' : ' pooping ' ,
' damn ' : ' darn ' ,
2023-01-28 10:53:46 +00:00
' bitch ' : ' b-word ' ,
2022-11-07 07:11:46 +00:00
' toilet ' : ' potty ' ,
' asshole ' : ' butthole ' ,
' rape ' : ' r*pe ' ,
' hell ' : ' heck ' ,
' sex ' : ' intercourse ' ,
' cum ' : ' c*m ' ,
' orgasm ' : ' sexual climax ' ,
' dick ' : ' peepee ' ,
2022-11-11 09:41:07 +00:00
' cock ' : ' peepee ' ,
' cocks ' : ' peepees ' ,
2022-11-07 07:11:46 +00:00
' penis ' : ' peepee ' ,
' pussy ' : ' girl peepee ' ,
2023-02-02 19:00:26 +00:00
' pussies ' : ' girl peepees ' ,
2023-02-07 06:28:03 +00:00
' vagina ' : ' girl peepee ' ,
' vaginas ' : ' girl peepees ' ,
2023-01-28 10:53:46 +00:00
' cunt ' : ' girl peepee ' ,
2022-11-22 21:37:35 +00:00
' twat ' : ' girl peepee ' ,
2022-11-07 07:11:46 +00:00
}
2022-11-03 22:59:18 +00:00
slur_single_words = " | " . join ( [ slur . lower ( ) for slur in SLURS . keys ( ) ] )
profanity_single_words = " | " . join ( [ profanity . lower ( ) for profanity in PROFANITIES . keys ( ) ] )
2022-06-18 15:37:01 +00:00
2023-03-12 13:02:31 +00:00
LONGPOST_REPLIES = ( ' Wow, you must be a JP fan. ' , ' This is one of the worst posts I have EVER seen. Delete it. ' , " No, don ' t reply like this, please do another wall of unhinged rant please. " , ' # 😴😴😴 ' , " Ma ' am we ' ve been over this before. You need to stop. " , " I ' ve known more coherent downies. " , " Your pulitzer ' s in the mail " , " That ' s great and all, but I asked for my burger without cheese. " , ' That degree finally paying off ' , " That ' s nice sweaty. Why don ' t you have a seat in the time out corner with Pizzashill until you calm down, then you can have your Capri Sun. " , " All them words won ' t bring your pa back. " , " You had a chance to not be completely worthless, but it looks like you threw it away. At least you ' re consistent. " , ' Some people are able to display their intelligence by going on at length on a subject and never actually saying anything. This ability is most common in trades such as politics, public relations, and law. You have impressed me by being able to best them all, while still coming off as an absolute idiot. ' , " You can type 10,000 characters and you decided that these were the one ' s that you wanted. " , ' Have you owned the libs yet? ' , " I don ' t know what you said, because I ' ve seen another human naked. " , ' Impressive. Normally people with such severe developmental disabilities struggle to write much more than a sentence or two. He really has exceded our expectations for the writing portion. Sadly the coherency of his writing, along with his abilities in the social skills and reading portions, are far behind his peers with similar disabilities. ' , " This is a really long way of saying you don ' t fuck. " , " Sorry ma ' am, looks like his delusions have gotten worse. We ' ll have to admit him. " , ' If only you could put that energy into your relationships ' , ' Posts like this is why I do Heroine. ' , ' still unemployed then? ' , ' K ' , ' look im gunna have 2 ask u 2 keep ur giant dumps in the toilet not in my replys 😷😷😷 ' , " Mommy is soooo proud of you, sweaty. Let ' s put this sperg out up on the fridge with all your other failures. " , " Good job bobby, here ' s a star " , " That was a mistake. You ' re about to find out the hard way why. " , ' You sat down and wrote all this shit. You could have done so many other things with your life. What happened to your life that made you decide writing novels of bullshit here was the best option? ' , " I don ' t have enough spoons to read this shit " , " All those words won ' t bring daddy back. " , ' OUT! ' , " Damn, you ' re really mad over this, but thanks for the effort you put into typing that all out! Sadly I won ' t read it all. " , " Jesse what the fuck are you talking about?? " , " ▼you ' re fucking bananas if you think I ' m reading all that, take my downvote and shut up idiot " , " Are you feeling okay bud? " , ' :#marseywoah: ' , ' At no point in your rambling, incoherent post were you even close to anything that could be considered a rational thought. Everyone on this site is now dumber for having read it. May God have mercy on your soul. ' , ' https://rdrama.net/videos/1671169024815045.mp4 ' , ' https://i.rdrama.net/images/16766675896248007.webp ' )
2022-06-18 15:37:01 +00:00
2022-08-11 16:46:11 +00:00
AGENDAPOSTER_PHRASE = ' trans lives matter '
2022-07-10 14:37:05 +00:00
2022-12-11 23:44:34 +00:00
AGENDAPOSTER_MSG = """ Hi @ {username} , \n
Your { type } has been automatically removed because you forgot to include ` { AGENDAPOSTER_PHRASE } ` . \n
Don ' t worry, we ' re here to help ! We won ' t let you post or comment anything that doesn ' t express your love and acceptance towards the trans community . Feel free to resubmit your { type } with ` { AGENDAPOSTER_PHRASE } ` included . \n
* This is an automated message ; if you need help , you can message us [ here ] ( / contact ) . * """
2022-06-18 15:37:01 +00:00
AGENDAPOSTER_MSG_HTML = """ <p>Hi <a href= " /id/ {id} " ><img loading= " lazy " src= " /pp/ {id} " >@ {username} </a>,</p>
2022-11-27 22:44:50 +00:00
< p > Your { type } has been automatically removed because you forgot to include < code > { AGENDAPOSTER_PHRASE } < / code > . < / p >
2022-06-18 15:37:01 +00:00
< p > Don ' t worry, we ' re here to help ! We won ' t let you post or comment anything that doesn ' t express your love and acceptance towards the trans community . Feel free to resubmit your { type } with < code > { AGENDAPOSTER_PHRASE } < / code > included . < / p >
< p > < em > This is an automated message ; if you need help , you can message us < a href = " /contact " > here < / a > . < / em > < / p > """
2022-10-25 22:48:10 +00:00
PIN_AWARD_TEXT = " (pin award) "
2022-06-18 15:37:01 +00:00
2022-12-07 17:53:29 +00:00
THEMES = [ " 4chan " , " classic " , " classic_dark " , " coffee " , " dark " , " dramblr " , " light " , " midnight " , " tron " , " win98 " ]
2022-11-27 16:15:15 +00:00
BACKGROUND_CATEGORIES = [ " glitter " , " anime " , " fantasy " , " solarpunk " , " pixelart " ]
2022-11-06 09:48:06 +00:00
COMMENT_SORTS = [ " hot " , " new " , " old " , " top " , " bottom " , " controversial " ]
SORTS = COMMENT_SORTS + [ " bump " , " comments " ]
2022-11-06 09:44:58 +00:00
TIME_FILTERS = [ " hour " , " day " , " week " , " month " , " year " , " all " ]
2022-12-01 12:28:00 +00:00
PAGE_SIZES = ( 10 , 25 , 50 , 100 )
2022-11-06 09:44:58 +00:00
2022-12-11 23:44:34 +00:00
################################################################################
### COLUMN INFO
################################################################################
SUB_NAME_COLUMN_LENGTH = 25
SUB_SIDEBAR_COLUMN_LENGTH = 10000
SUB_SIDEBAR_HTML_COLUMN_LENGTH = 20000
SUB_SIDEBAR_URL_COLUMN_LENGTH = 60
SUB_BANNER_URL_COLUMN_LENGTH = 60
SUB_CSS_COLUMN_LENGTH = 6000
SUB_MARSEY_URL_LENGTH = 60
2022-06-18 15:37:01 +00:00
################################################################################
### SITE SPECIFIC CONSTANTS
################################################################################
2022-07-07 03:45:33 +00:00
PERMS = { # Minimum admin_level to perform action.
2023-01-25 07:15:14 +00:00
' CHAT ' : 0 ,
' HOLE_CREATE ' : 0 ,
' USER_BLOCKS_VISIBLE ' : 0 ,
' USER_FOLLOWS_VISIBLE ' : 0 ,
' USER_VOTERS_VISIBLE ' : 0 ,
2023-01-27 13:02:30 +00:00
' VIEW_PENDING_SUBMITTED_MARSEYS ' : 0 ,
2023-01-29 08:28:29 +00:00
2023-01-25 07:15:14 +00:00
' POST_COMMENT_DISTINGUISH ' : 1 ,
' POST_BYPASS_REPOST_CHECKING ' : 1 ,
' POST_IN_GHOST_THREADS ' : 1 ,
2023-01-22 08:04:49 +00:00
' VIEW_CLUB ' : 1 ,
2023-01-25 07:15:14 +00:00
' VIEW_CHUDRAMA ' : 1 ,
' SITE_BYPASS_READ_ONLY_MODE ' : 1 ,
' SITE_BYPASS_UNDER_SIEGE_MODE ' : 1 ,
' SITE_WARN_ON_INVALID_AUTH ' : 1 ,
' NOTIFICATIONS_REDDIT ' : 1 ,
' NOTIFICATIONS_SPECIFIC_WPD_COMMENTS ' : 1 ,
' MESSAGE_BLOCKED_USERS ' : 1 ,
2023-01-29 08:28:29 +00:00
' ADMIN_MOP_VISIBLE ' : 1 ,
' ADMIN_HOME_VISIBLE ' : 1 ,
' FLAGS_REMOVE ' : 1 ,
' POST_COMMENT_MODERATION ' : 1 ,
' USER_BAN ' : 1 ,
' USER_SHADOWBAN ' : 1 ,
' USER_AGENDAPOSTER ' : 1 ,
' USER_MODERATION_TOOLS_VISIBLE ' : 1 ,
' VIEW_MODMAIL ' : 1 ,
' NOTIFICATIONS_MODMAIL ' : 1 ,
' VIEW_PRIVATE_PROFILES ' : 1 ,
' VIEW_ALTS ' : 1 ,
' VIEW_ACTIVE_USERS ' : 1 ,
' VIEW_ALT_VOTES ' : 1 ,
' VIEW_LAST_ACTIVE ' : 1 ,
' VIEW_VOTE_BUTTONS_ON_USER_PAGE ' : 1 ,
' NOTIFICATIONS_HOLE_INACTIVITY_DELETION ' : 1 ,
' NOTIFICATIONS_HOLE_CREATION ' : 1 ,
' NOTIFICATIONS_MODERATOR_ACTIONS ' : 1 ,
2023-03-01 14:39:47 +00:00
' POST_TO_POLL_THREAD ' : 2 ,
2023-01-29 08:28:29 +00:00
' POST_TO_CHANGELOG ' : 2 ,
2023-01-25 07:15:14 +00:00
' USER_BADGES ' : 2 ,
' USER_LINK ' : 2 ,
' USER_TITLE_CHANGE ' : 2 ,
' BUY_GHOST_AWARD ' : 2 ,
' LOTTERY_VIEW_PARTICIPANTS ' : 2 ,
2023-03-01 14:39:30 +00:00
' POST_COMMENT_INFINITE_PINGS ' : 2 ,
2023-03-06 20:22:15 +00:00
' IGNORE_1WEEk_EDITING_LIMIT ' : 2 ,
2023-01-29 08:28:29 +00:00
2023-01-25 07:15:14 +00:00
' ADMIN_ADD ' : 3 ,
' ADMIN_REMOVE ' : 3 ,
' ADMIN_ACTIONS_REVERT ' : 3 ,
' DOMAINS_BAN ' : 3 ,
' EDIT_RULES ' : 3 ,
' POST_BETS ' : 3 ,
' POST_BETS_DISTRIBUTE ' : 3 ,
' VIEW_PENDING_SUBMITTED_HATS ' : 3 ,
' LOTTERY_ADMIN ' : 3 ,
' SITE_SETTINGS ' : 3 ,
2023-03-05 10:03:21 +00:00
' USE_ADMIGGER_THREADS ' : 3 ,
2023-01-25 07:15:14 +00:00
' SITE_CACHE_PURGE_CDN ' : 3 ,
' NOTIFICATIONS_FROM_SHADOWBANNED_USERS ' : 3 ,
2023-01-23 09:58:38 +00:00
' APPS_MODERATION ' : 3 ,
2023-01-29 08:28:29 +00:00
2023-01-25 07:15:14 +00:00
' MODERATE_PENDING_SUBMITTED_ASSETS ' : 4 ,
2023-02-10 04:23:22 +00:00
' UPDATE_ASSETS ' : 4 ,
2023-03-09 20:47:14 +00:00
' PROGSTACK ' : 4 ,
' UNDO_AWARD_PINS ' : 4 ,
2023-03-09 20:48:54 +00:00
' DELETE_MEDIA ' : 4 ,
2023-01-29 08:28:29 +00:00
2023-03-09 20:48:54 +00:00
' USER_BLACKLIST ' : 5 ,
' POST_EDITING ' : 5 ,
' VIEW_PATRONS ' : 5 ,
' BLACKJACK_NOTIFICATIONS ' : 5 ,
' IGNORE_BADGE_BLACKLIST ' : 5 ,
2023-03-11 04:53:54 +00:00
' enable_dm_images ' : 5 ,
2023-03-09 20:48:54 +00:00
' SEE_GHOST_VOTES ' : 5 ,
2023-01-29 08:28:29 +00:00
2023-03-09 20:48:54 +00:00
' MODS_EVERY_HOLE ' : 6 ,
2023-03-10 02:10:17 +00:00
' MODS_EVERY_GROUP ' : 6 ,
2022-07-07 03:45:33 +00:00
}
2022-07-18 05:10:01 +00:00
FEATURES = {
2022-11-27 16:59:36 +00:00
' MARSEYS ' : True ,
2022-11-21 23:08:29 +00:00
' MARSEYBUX ' : True ,
2022-07-19 23:59:39 +00:00
' AWARDS ' : True ,
2022-07-18 06:43:20 +00:00
' CHAT ' : True ,
2022-07-18 05:10:01 +00:00
' PINS ' : True ,
2022-07-18 06:43:20 +00:00
' PRONOUNS ' : False ,
2022-07-19 23:59:39 +00:00
' BADGES ' : True ,
2022-09-03 03:11:17 +00:00
' HATS ' : True ,
2022-07-18 06:43:20 +00:00
' HOUSES ' : False ,
2022-07-18 07:47:17 +00:00
' GAMBLING ' : True ,
2022-07-23 06:22:45 +00:00
' WORDLE ' : True ,
2022-07-20 01:16:59 +00:00
' USERS_PROFILE_BANNER ' : True ,
' USERS_PROFILE_BODYTEXT ' : True ,
' USERS_PROFILE_SONG ' : True ,
2022-11-06 10:27:44 +00:00
' USERS_PERMANENT_WORD_FILTERS ' : False ,
2022-07-20 01:16:59 +00:00
' USERS_SUICIDE ' : True ,
2022-07-20 00:07:38 +00:00
' MARKUP_COMMANDS ' : True ,
2022-08-04 04:07:17 +00:00
' REPOST_DETECTION ' : True ,
2022-08-25 20:34:05 +00:00
' PATRON_ICONS ' : False ,
2022-11-15 09:19:08 +00:00
' ASSET_SUBMISSIONS ' : False ,
2023-02-01 18:52:34 +00:00
' NSFW_MARKING ' : True ,
2023-02-24 06:31:06 +00:00
' PING_GROUPS ' : True ,
2023-03-16 04:07:39 +00:00
' BOTS ' : True ,
2022-07-18 05:10:01 +00:00
}
2022-10-11 15:26:20 +00:00
WERKZEUG_ERROR_DESCRIPTIONS = {
400 : " The browser (or proxy) sent a request that this server could not understand. " ,
401 : " The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn ' t understand how to supply the credentials required. " ,
2023-01-25 11:02:40 +00:00
403 : " You don ' t have the permission to access the requested resource. It is either read-protected or not readable by the server. " ,
2022-10-11 15:26:20 +00:00
404 : " The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. " ,
405 : " The method is not allowed for the requested URL. " ,
406 : " The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request. " ,
409 : " A conflict happened while processing the request. The resource might have been modified while the request was being processed. " ,
2022-11-16 05:32:57 +00:00
410 : " The requested URL is no longer available on this server and there is no forwarding address. If you followed a link from a foreign page, please contact the author of this page. " ,
2022-10-11 15:26:20 +00:00
413 : " The data value transmitted exceeds the capacity limit. " ,
414 : " The length of the requested URL exceeds the capacity limit for this server. The request cannot be processed. " ,
415 : " The server does not support the media type transmitted in the request. " ,
417 : " The server could not meet the requirements of the Expect header " ,
418 : " This server is a teapot, not a coffee machine " ,
429 : " This user has exceeded an allotted request count. Try again later. " ,
500 : " The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. " ,
}
ERROR_TITLES = {
2022-11-05 23:13:59 +00:00
400 : " Naughty Request " ,
401 : " 🚫 Unauthorized 🚫 " ,
403 : " Forbidden🙅 ♀️ " ,
404 : " Not Found - where did it go? " ,
405 : " Method Not Allowed, BAD. " ,
406 : " Too Many Pings fuck off " ,
409 : " Cumflict " ,
2022-11-16 05:32:57 +00:00
410 : " Gone... and Forgotten " ,
2022-11-05 23:13:59 +00:00
413 : " Gayload Too Large " ,
415 : " Weird Media Type " ,
2022-10-12 09:00:18 +00:00
418 : " I ' m a teapot " ,
2022-10-11 15:26:20 +00:00
429 : " Too Many Requests " ,
2022-11-05 23:13:59 +00:00
500 : " Balls-Deep Server Error " ,
2022-10-11 15:26:20 +00:00
}
ERROR_MSGS = {
400 : " That request was bad and you should feel bad. " ,
2022-11-05 23:13:59 +00:00
401 : " What you ' re trying to do requires an account. I think. The original error message said something about a castle and I hated that. If you see this error and you ' re logged into an account, something went pretty wrong somewhere. " ,
2022-10-11 15:26:20 +00:00
403 : " YOU AREN ' T WELCOME HERE GO AWAY " ,
404 : " Someone typed something wrong and it was probably you, please do better. " ,
2022-10-29 02:07:43 +00:00
405 : " idk how anyone gets this error but if you see this, remember to follow @carpathianflorist<br>the original error text here talked about internet gremlins and wtf " ,
2022-11-05 23:13:59 +00:00
406 : " Max limit is 5 for comments and 50 for posts (what is it referring to? what does it mean? no one knows) " ,
2022-10-11 15:26:20 +00:00
409 : " There ' s a conflict between what you ' re trying to do and what you or someone else has done and because of that you can ' t do what you ' re trying to do. So maybe like... don ' t try and do that? Sorry not sorry " ,
2022-11-16 05:32:57 +00:00
410 : " You were too slow. The link FUCKING DIED. Request a new one and be more efficient. " ,
2022-11-05 23:13:59 +00:00
413 : " That ' s a heckin ' chonker of a file! Please make it smaller or maybe like upload it somewhere else idk<BR>jc wrote this one hi jc!<br>- carp " ,
2022-10-11 15:26:20 +00:00
415 : " Please upload only Image, Video, or Audio files! " ,
2022-10-12 09:00:18 +00:00
418 : " this really shouldn ' t happen now that we autoconvert webm files but if it does there ' s a cool teapot marsey so there ' s that " ,
2022-10-11 15:26:20 +00:00
429 : " go spam somewhere else nerd " ,
2022-11-05 23:13:59 +00:00
500 : " Hiiiii it ' s carp! I think this error means that there ' s a timeout error. And I think that means something took too long to load so it decided not to work at all. If you keep seeing this on the same page <I>but not other pages</I>, then something is probably wrong with that specific function. It may not be called a function, but that sounds right to me. Anyway, <s>ping me and I ' ll whine to someone smarter to fix it. Don ' t bother them.</s> <B>After a year and a half of infuriating pings, the new instructions are to quit whining and just wait until it works again oh my god shut UP.</B><BR><BR> Thanks ily <3 " ,
2022-10-11 15:26:20 +00:00
}
ERROR_MARSEYS = {
400 : " marseybrainlet " ,
401 : " marseydead " ,
403 : " marseytroll " ,
404 : " marseyconfused " ,
405 : " marseyretard " ,
406 : " marseyrage " ,
409 : " marseynoyou " ,
2022-11-16 05:32:57 +00:00
410 : " marseyrave " ,
2022-10-12 08:52:08 +00:00
413 : " marseychonker2 " ,
2022-10-11 15:26:20 +00:00
415 : " marseydetective " ,
418 : " marseytea " ,
429 : " marseyrentfree " ,
500 : " marseycarp3 " ,
}
2022-07-09 04:32:48 +00:00
EMOJI_SRCS = [ ' files/assets/emojis.json ' ]
2022-06-18 15:37:01 +00:00
PIN_LIMIT = 3
2022-10-05 08:35:35 +00:00
POST_TITLE_LENGTH_LIMIT = 500 # do not make larger than 500 without altering the table
POST_TITLE_HTML_LENGTH_LIMIT = 1500 # do not make larger than 1500 without altering the table
2023-02-28 19:36:14 +00:00
def POST_BODY_LENGTH_LIMIT ( v ) :
if v . patron : return 100000
return 20000
POST_BODY_HTML_LENGTH_LIMIT = 200000 # do not make larger than 200000 without altering the table
2022-10-09 07:20:28 +00:00
COMMENT_BODY_LENGTH_LIMIT = 10000 # do not make larger than 10000 characters without altering the table
2022-10-09 12:54:46 +00:00
COMMENT_BODY_HTML_LENGTH_LIMIT = 20000 # do not make larger than 20000 characters without altering the table
2022-12-10 18:30:15 +00:00
CSS_LENGTH_LIMIT = 10000 # do not make larger than 20000 characters without altering the table
2022-10-09 12:54:46 +00:00
COMMENT_MAX_DEPTH = 200
2022-10-09 07:20:28 +00:00
TRANSFER_MESSAGE_LENGTH_LIMIT = 200 # do not make larger than 10000 characters (comment limit) without altering the table
2022-10-14 10:26:48 +00:00
MIN_REPOST_CHECK_URL_LENGTH = 9 # also change the constant in checkRepost() of submit.js
2022-11-16 14:00:04 +00:00
CHAT_LENGTH_LIMIT = 1000
2022-12-11 23:44:34 +00:00
SUB_BANNER_LIMIT = 10
2023-03-03 04:19:52 +00:00
BIO_FRIENDS_ENEMIES_LENGTH_LIMIT = 5000 # do not make larger than 5000 characters without altering the table
BIO_FRIENDS_ENEMIES_HTML_LENGTH_LIMIT = 20000 # do not make larger than 20000 characters without altering the table
2022-11-05 02:16:08 +00:00
COSMETIC_AWARD_COIN_AWARD_PCT = 0.10
2022-12-11 23:44:34 +00:00
2022-11-26 20:20:30 +00:00
TRUESCORE_CHAT_MINIMUM = 0
TRUESCORE_GHOST_MINIMUM = 0
2023-03-05 10:17:30 +00:00
TRUESCORE_DONATE_MINIMUM = 10
2023-03-13 18:53:08 +00:00
TRUESCORE_CLUB_MINIMUM = 100
2023-03-11 21:54:08 +00:00
TRUESCORE_CHUDRAMA_MINIMUM = 10
2022-10-05 08:35:35 +00:00
2022-06-20 20:25:03 +00:00
LOGGEDIN_ACTIVE_TIME = 15 * 60
2022-07-09 12:01:44 +00:00
PFP_DEFAULT_MARSEY = True
2022-11-24 01:28:39 +00:00
NEW_USER_HAT_AGE = 0 # seconds of age to show new-user forced hat
2023-03-11 07:44:18 +00:00
NOTIFICATION_SPAM_AGE_THRESHOLD = 0
2023-02-19 13:26:48 +00:00
COMMENT_SPAM_LENGTH_THRESHOLD = 0
2022-11-30 19:25:32 +00:00
UNDER_SIEGE_AGE_THRESHOLD = 10 * 60
2022-07-09 10:09:33 +00:00
HOLE_NAME = ' hole '
HOLE_STYLE_FLAIR = False
HOLE_REQUIRED = False
HOLE_COST = 0
2023-02-24 06:31:06 +00:00
GROUP_COST = 10000
2022-07-09 10:09:33 +00:00
HOLE_INACTIVITY_DELETION = False
2022-06-18 15:37:01 +00:00
2022-12-10 14:00:03 +00:00
PRIVILEGED_USER_BOTS = ( )
2022-07-08 19:03:04 +00:00
AUTOJANNY_ID = 1
SNAPPY_ID = 2
LONGPOSTBOT_ID = 3
ZOZBOT_ID = 4
2022-06-18 15:37:01 +00:00
PIZZASHILL_ID = 0
2022-11-09 20:59:10 +00:00
IMPASSIONATA_ID = 0
2023-01-23 12:40:44 +00:00
PROGSTACK_ID = 4
2022-06-18 15:37:01 +00:00
CARP_ID = 0
2022-08-13 03:11:44 +00:00
AEVANN_ID = 0
2022-06-18 15:37:01 +00:00
SNAKES_ID = 0
2022-10-06 03:59:33 +00:00
JUSTCOOL_ID = 0
2022-06-18 15:37:01 +00:00
LAWLZ_ID = 0
2022-12-10 14:00:03 +00:00
TGTW_ID = 0
2022-12-19 20:54:45 +00:00
IDIO_ID = 0
2023-01-29 16:29:17 +00:00
SNALLY_ID = 0
2022-12-10 14:00:03 +00:00
2022-11-17 22:50:06 +00:00
MODMAIL_ID = 2
2022-12-10 14:00:03 +00:00
GIFT_NOTIF_ID = 5
SIGNUP_FOLLOW_ID = 0
2022-06-18 15:37:01 +00:00
2022-06-22 18:01:00 +00:00
POLL_THREAD = 0
2022-12-11 16:24:50 +00:00
POLL_BET_COINS = 200
2023-02-22 20:32:41 +00:00
POLL_MAX_OPTIONS = 50
2022-06-18 15:37:01 +00:00
WELCOME_MSG = f " Welcome to { SITE_NAME } ! "
LOTTERY_TICKET_COST = 12
LOTTERY_SINK_RATE = 3
LOTTERY_DURATION = 60 * 60 * 24 * 7
2022-07-13 12:56:30 +00:00
SIDEBAR_THREAD = 0
BANNER_THREAD = 0
BADGE_THREAD = 0
SNAPPY_THREAD = 0
2022-10-10 06:37:42 +00:00
NOTIFICATION_THREAD = 1
2022-07-13 12:56:30 +00:00
2022-12-07 20:53:52 +00:00
MAX_IMAGE_SIZE_BANNER_RESIZED_MB = 1
2022-10-12 08:52:08 +00:00
MAX_IMAGE_AUDIO_SIZE_MB = 8
MAX_IMAGE_AUDIO_SIZE_MB_PATRON = 16
2022-10-12 06:27:17 +00:00
MAX_VIDEO_SIZE_MB = 32
MAX_VIDEO_SIZE_MB_PATRON = 64
2022-12-07 08:30:11 +00:00
MAX_IMAGE_CONVERSION_TIMEOUT = 30 # seconds
2022-10-12 06:27:17 +00:00
2022-11-26 02:03:53 +00:00
ANTISPAM_BYPASS_IDS = set ( )
2022-10-24 17:27:25 +00:00
2022-10-29 03:20:48 +00:00
PAGE_SIZE = 25
LEADERBOARD_LIMIT = PAGE_SIZE
2022-11-05 06:00:02 +00:00
HOUSE_JOIN_COST = 500
HOUSE_SWITCH_COST = 2000
2022-11-07 01:41:32 +00:00
TIERS_ID_TO_NAME = {
2022-11-27 21:49:20 +00:00
1 : " Paypig " ,
2 : " Renthog " ,
3 : " Landchad " ,
4 : " Terminally online turboautist " ,
5 : " JIDF Bankroller " ,
6 : " Rich Bich " ,
}
2023-01-22 08:04:49 +00:00
BADGE_BLACKLIST = { # only grantable by admins higher than PERMS['IGNORE_BADGE_BLACKLIST']
2022-11-30 21:55:48 +00:00
1 , 2 , 6 , 10 , 11 , 12 , # Alpha, Verified Email, Beta, Recruiter x3
16 , 17 , 143 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , # Marsey Artist x3 / Patron Tiers
2022-12-07 19:03:06 +00:00
94 , 95 , 96 , 97 , 98 , 109 , 67 , 68 , 83 , 84 , 87 , 90 , 179 , 185 , # Award Status except Y'all-seeing eye
2022-11-27 21:49:20 +00:00
137 , # Lottery Winner
2022-11-07 01:41:32 +00:00
}
2022-12-10 14:00:03 +00:00
NOTIFIED_USERS = { }
2022-11-11 13:52:18 +00:00
if SITE == ' rdrama.net ' :
2023-03-11 07:44:18 +00:00
NOTIFICATION_SPAM_AGE_THRESHOLD = 0.5 * 86400
2022-12-25 03:28:57 +00:00
TELEGRAM_ID = " rdramanet "
2022-12-25 03:09:24 +00:00
DEFAULT_TIME_FILTER = " day "
2022-07-22 01:18:20 +00:00
FEATURES [ ' PRONOUNS ' ] = True
FEATURES [ ' HOUSES ' ] = True
2022-11-06 10:27:44 +00:00
FEATURES [ ' USERS_PERMANENT_WORD_FILTERS ' ] = True
2022-11-15 09:19:08 +00:00
FEATURES [ ' ASSET_SUBMISSIONS ' ] = True
2022-10-28 22:14:59 +00:00
PERMS [ ' ADMIN_ADD ' ] = 4
2022-07-22 01:18:20 +00:00
2022-07-13 12:56:30 +00:00
SIDEBAR_THREAD = 37696
BANNER_THREAD = 37697
BADGE_THREAD = 37833
SNAPPY_THREAD = 37749
2022-10-10 06:37:42 +00:00
NOTIFICATION_THREAD = 6489
2022-09-02 23:58:55 +00:00
2022-11-26 20:20:30 +00:00
TRUESCORE_CHAT_MINIMUM = 10
TRUESCORE_GHOST_MINIMUM = 10
2022-11-24 01:28:39 +00:00
NEW_USER_HAT_AGE = 7 * 86400
2022-11-13 11:43:08 +00:00
2022-09-25 11:34:34 +00:00
HOLE_COST = 50000
2022-06-18 15:37:01 +00:00
HOLE_INACTIVITY_DELETION = True
2022-06-28 06:26:52 +00:00
2022-12-10 14:00:03 +00:00
PRIVILEGED_USER_BOTS = ( 12125 , 16049 )
2022-07-08 19:03:04 +00:00
AUTOJANNY_ID = 1046
2022-06-18 15:37:01 +00:00
SNAPPY_ID = 261
LONGPOSTBOT_ID = 1832
ZOZBOT_ID = 1833
PIZZASHILL_ID = 2424
2022-11-09 20:59:10 +00:00
IMPASSIONATA_ID = 5800
2023-01-23 12:40:44 +00:00
PROGSTACK_ID = 15531
2022-06-18 15:37:01 +00:00
CARP_ID = 995
AEVANN_ID = 1
SNAKES_ID = 10288
2022-10-06 03:59:33 +00:00
JUSTCOOL_ID = 4999
2022-06-18 15:37:01 +00:00
LAWLZ_ID = 3833
2022-12-10 14:00:03 +00:00
TGTW_ID = 2008
2022-12-19 20:54:45 +00:00
IDIO_ID = 30
2023-01-29 16:29:17 +00:00
SNALLY_ID = 3336
2022-12-10 14:00:03 +00:00
NOTIFIED_USERS = {
' aevan ' : AEVANN_ID ,
' avean ' : AEVANN_ID ,
2022-12-25 23:41:00 +00:00
' capy ' : AEVANN_ID ,
2022-12-10 14:00:03 +00:00
' carp ' : CARP_ID ,
' clit ' : CARP_ID ,
' snakes ' : SNAKES_ID ,
' sneks ' : SNAKES_ID ,
' snekky ' : SNAKES_ID ,
' snekchad ' : SNAKES_ID ,
' jc ' : JUSTCOOL_ID ,
' justcool ' : JUSTCOOL_ID ,
' lawlz ' : LAWLZ_ID ,
' transgirltradwife ' : TGTW_ID ,
' impassionata ' : IMPASSIONATA_ID ,
' pizzashill ' : PIZZASHILL_ID ,
' joan ' : 28 ,
' pewkie ' : 28 ,
2022-12-19 20:54:45 +00:00
' idio3 ' : IDIO_ID ,
' idio ' : IDIO_ID ,
' telegram ' : IDIO_ID ,
2023-02-18 19:39:28 +00:00
' homocracy ' : 147 ,
2022-12-10 14:00:03 +00:00
' donger ' : 541 ,
' geese ' : 1710 ,
' soren ' : 2546 ,
' marseyismywaifu ' : 3377 ,
' mimw ' : 3377 ,
' heymoon ' : 3635 ,
' jollymoon ' : 3635 ,
' chiobu ' : 5214 ,
' mccox ' : 8239 ,
2023-02-18 19:42:47 +00:00
' schizo ' : 8494 ,
2023-02-18 23:00:40 +00:00
' august ' : 1830 ,
2023-02-20 18:03:09 +00:00
' marco ' : 152 ,
2022-12-10 14:00:03 +00:00
}
2022-06-18 15:37:01 +00:00
2022-11-26 02:03:53 +00:00
ANTISPAM_BYPASS_IDS = { 1703 , 13427 }
2022-09-16 22:02:30 +00:00
GIFT_NOTIF_ID = CARP_ID
2022-06-22 18:01:00 +00:00
POLL_THREAD = 79285
2023-03-10 02:21:57 +00:00
WELCOME_MSG = " Hi there! It ' s me, your soon-to-be favorite rDrama user @carpathianflorist here to give you a brief rundown on some of the sick features we have here. You ' ll probably want to start by following me, though. So go ahead and click my name and then smash that Follow button. This is actually really important, so go on. Hurry. \n \n Thanks! \n \n Next up: If you ' re a member of the media, similarly just shoot me a DM and I ' ll set about verifying you and then we can take care of your sad journalism stuff. \n \n **FOR EVERYONE ELSE** \n \n Begin by navigating to [the settings page](/settings/profile) (we ' ll be prettying this up so it ' s less convoluted soon, don ' t worry) and getting some basic customization done. \n \n ### Themes \n \n Definitely change your theme right away, the default one (Midnight) is pretty enough, but why not use something *exotic* like Win98, or *flashy* like Tron? Even Coffee is super tasteful and way more fun than the default. More themes to come when we get around to it! \n \n ### Avatar/pfp \n \n You ' ll want to set this pretty soon. Set the banner too while you ' re at it. Your profile is important! \n \n ### Flairs \n \n Since you ' re already on the settings page, you may as well set a flair, too. As with your username, you can - obviously - choose the color of this, either with a hex value or just from the preset colors. And also like your username, you can change this at any time. Paypigs can even further relive the glory days of 90s-00s internet and set obnoxious signatures. \n \n ### PROFILE ANTHEMS \n \n Speaking of profiles, hey, remember MySpace? Do you miss autoplaying music assaulting your ears every time you visited a friend ' s page? Yeah, we brought that back. Enter a YouTube URL, wait a few seconds for it to process, and then BAM! you ' ve got a profile anthem which people cannot mute. Unless they spend 20,000 dramacoin in the shop for a mute button. Which you can then remove from your profile by spending 40,000 dramacoin on an unmuteable anthem. Get fucked poors! \n \n ### Dramacoin? \n \n Dramacoin is basically our take on the karma system. Except unlike the karma system, it ' s not gay and boring and stupid and useless. Dramacoin can be spent at [Marsey ' s Dramacoin Emporium](/shop/awards) on upgrades to your user experience (many more coming than what ' s already listed there), and best of all on tremendously annoying awards to fuck with your fellow dramautists. We ' re always adding more, so check back regularly in case you happen to miss one of the announcement posts. \n \n Like karma, dramacoin is obtained by getting upvotes on your threads and comments. *Unlike* karma, it ' s also obtained by getting downvotes on your threads and comments. Downvotes don ' t really do anything here - they pay the same amount of dramacoin and they increase thread/comment ranking just the same as an upvote. You just use them to express petty disapproval and hopefully start a fight. Because all votes are visible here. To hell with your anonymity. \n \n Dramacoin can also be traded amongst users from their profiles. Note that there is a 3 % transaction fee. \n \n ### Badges \n \n Remember all those neat little metallic icons you saw on my profile when you were following me? If not, scroll back up and go have a look. And doublecheck to make sure you pressed the Follow button. Anyway, those are badges. You earn them by doing a variety of things. Some of them even offer benefits, like discounts at the shop. A [complete list of badges and their requirements can be found here](/badges), though I add more pretty regularly, so keep an eye on the [changelog](/h/changelog). \n \n ### Other stuff \n \n We ' re always adding new features, and we take a fun-first approach to development. If you have a suggestion for something that would be fun, funny, annoying - or best of all, some combination of all three - definitely make a thread about it. Or just DM me if you ' re shy. Weirdo. Anyway there ' s also the [leaderboards](/leaderboard), boring stuff like two-factor authentication you can toggle on somewhere in the settings page (psycho), the ability to save posts and comments, mor
2022-12-25 03:12:35 +00:00
REDDIT_NOTIFS_USERS = {
' idio3 ' : IDIO_ID ,
' aevann ' : AEVANN_ID ,
' carpflo ' : CARP_ID ,
' carpathianflorist ' : CARP_ID ,
' carpathian florist ' : CARP_ID ,
' the_homocracy ' : 147 ,
' justcool393 ' : JUSTCOOL_ID
}
2023-02-21 14:53:33 +00:00
2023-03-10 02:00:55 +00:00
POST_RATELIMIT = ' 10/day '
2022-10-17 19:13:33 +00:00
elif SITE == ' watchpeopledie.tv ' :
2023-03-11 07:44:18 +00:00
NOTIFICATION_SPAM_AGE_THRESHOLD = 0.5 * 86400
2023-02-24 02:54:31 +00:00
EMAIL = " wpd@watchpeopledie.tv "
2022-12-25 03:28:57 +00:00
TELEGRAM_ID = " wpdtv "
2022-12-25 03:09:24 +00:00
DEFAULT_TIME_FILTER = " day "
2022-12-25 03:28:57 +00:00
DESCRIPTION = " People die and this is the place to see it. You only have one life, don ' t make the mistakes seen here. "
2022-10-23 08:48:19 +00:00
PIN_LIMIT = 4
2023-02-26 10:20:32 +00:00
WELCOME_MSG = """ Hi, you! Welcome to WatchPeopleDie.tv, this really cool site where you can go to watch people die. I ' m @CLiTPEELER! If you have any questions about how things work here, or suggestions on how to make them work better than they already do, definitely slide on into my DMs (no fat chicks). \n \n There ' s an enormously robust suite of fun features we have here and we ' re always looking for more to add. Way, way too many to go over in an automated welcome message. And you ' re probably here for the videos of people dying more than any sort of weird, paradoxical digital community aspect anyway, so I won ' t bore you with a tedious overview of them. Just head on over to [your settings page](https://watchpeopledie.tv/settings/profile) and have a look at some of the basic profile stuff, at least. You can change your profile picture, username, flair, colors, banners, bio, profile anthem (autoplaying song on your page, like it ' s MySpace or some shit, hell yeah), CSS, all sorts of things. \n \n Or you can just go back to the main feed and carry on with watching people die. That ' s what the site is for, after all. Have fun! \n \n Anyway, in closing, WPD is entirely open source. We don ' t really need new full-time coders or anything, but if you ' d like to take a look at our repo - or even submit a PR to change, fix, or add some things - go right ahead! Our codebase lives at https://fsdfsd.net/rDrama/rDrama \n \n Well, that ' s all. Thanks again for signing up. It ' s an automated message and all, but I really do mean that. Thank you, specifically. I love you. Romantically. Deeply. Passionately. \n \n Have fun! """
2022-08-30 21:17:08 +00:00
2022-08-25 20:34:05 +00:00
FEATURES [ ' PATRON_ICONS ' ] = True
2023-02-01 18:52:34 +00:00
FEATURES [ ' NSFW_MARKING ' ] = False
2023-03-16 04:07:39 +00:00
FEATURES [ ' BOTS ' ] = False
2022-08-25 20:34:05 +00:00
2022-07-09 10:09:33 +00:00
PERMS [ ' HOLE_CREATE ' ] = 2
2022-10-20 14:42:52 +00:00
PERMS [ ' POST_EDITING ' ] = 2
2022-10-28 22:14:59 +00:00
PERMS [ ' ADMIN_ADD ' ] = 4
2023-01-25 15:41:46 +00:00
PERMS [ ' USER_BLACKLIST ' ] = 6
2022-11-26 20:31:20 +00:00
2022-12-11 23:44:34 +00:00
SUB_BANNER_LIMIT = 69420
2023-03-17 07:24:37 +00:00
NOTIFICATION_THREAD = 27855
2022-12-06 18:24:41 +00:00
2022-11-26 20:31:20 +00:00
ERROR_TITLES . update ( {
400 : " Bad Request " ,
401 : " Unauthorized " ,
2023-01-24 06:40:45 +00:00
403 : " Not Found " ,
2022-11-26 20:31:20 +00:00
404 : " Not Found " ,
405 : " Method Not Allowed " ,
406 : " Too Many Pings " ,
409 : " Mortal Conflict " ,
410 : " Dead " ,
413 : " Payload Too Large " ,
415 : " Unsupported Media Type " ,
500 : " Internal Server Error " ,
} )
ERROR_MSGS . update ( {
2023-01-24 06:40:45 +00:00
400 : " That request is invalid. " ,
401 : " You need to login or sign up to do that. " ,
403 : " That wasn ' t found " ,
404 : " That wasn ' t found. " ,
405 : " You can ' t use this method here... if you keep getting this error tell us it ' s prolly something borked. " ,
2022-11-26 20:31:20 +00:00
409 : " There ' s a conflict between what you ' re trying to do and what you or someone else has done and because of that you can ' t do what you ' re trying to do. " ,
2023-01-24 06:40:45 +00:00
410 : " This link is dead. Request a new one to try again. " ,
413 : " You need to upload a smaller file please. " ,
429 : " Please wait a bit before doing that. " ,
2022-11-26 20:31:20 +00:00
} )
2022-07-09 10:09:33 +00:00
2023-01-24 06:40:45 +00:00
ERROR_MARSEYS [ 403 ] = " marseyconfused "
2023-02-08 02:13:00 +00:00
POLL_THREAD = 22937
2022-11-07 22:00:37 +00:00
2022-09-29 18:08:36 +00:00
SIDEBAR_THREAD = 5403
BANNER_THREAD = 9869
2022-11-26 20:20:30 +00:00
TRUESCORE_CHAT_MINIMUM = 10
TRUESCORE_GHOST_MINIMUM = 10
2022-11-13 11:43:08 +00:00
2022-06-23 09:02:49 +00:00
HOLE_NAME = ' flair '
2022-06-23 09:40:01 +00:00
HOLE_STYLE_FLAIR = True
2022-06-26 01:01:21 +00:00
HOLE_REQUIRED = True
2022-07-07 03:45:33 +00:00
2022-07-10 12:05:12 +00:00
AUTOJANNY_ID = 1
2022-07-09 11:03:23 +00:00
SNAPPY_ID = 3
LONGPOSTBOT_ID = 4
ZOZBOT_ID = 5
2022-12-25 05:46:38 +00:00
CARP_ID = 48
2022-06-18 15:37:01 +00:00
AEVANN_ID = 9
SNAKES_ID = 32
2022-09-16 22:02:30 +00:00
GIFT_NOTIF_ID = CARP_ID
2022-10-10 06:37:42 +00:00
SIGNUP_FOLLOW_ID = CARP_ID
2022-09-26 05:19:37 +00:00
2022-11-07 01:41:32 +00:00
TIERS_ID_TO_NAME = {
1 : " Victim " ,
2 : " Corpse " ,
3 : " Zombie " ,
4 : " Ghost " ,
5 : " Survivor " ,
6 : " Jigsaw "
}
2023-02-09 04:02:39 +00:00
elif SITE == ' devrama.net ' :
AEVANN_ID = 7
2023-03-11 07:18:25 +00:00
FEATURES [ ' ASSET_SUBMISSIONS ' ] = True
FEATURES [ ' PRONOUNS ' ] = True
FEATURES [ ' HOUSES ' ] = True
FEATURES [ ' USERS_PERMANENT_WORD_FILTERS ' ] = True
2022-06-18 15:37:01 +00:00
else : # localhost or testing environment implied
2022-11-15 09:19:08 +00:00
FEATURES [ ' ASSET_SUBMISSIONS ' ] = True
2022-07-18 06:43:20 +00:00
FEATURES [ ' PRONOUNS ' ] = True
FEATURES [ ' HOUSES ' ] = True
2022-11-06 10:41:04 +00:00
FEATURES [ ' USERS_PERMANENT_WORD_FILTERS ' ] = True
2022-12-11 23:44:34 +00:00
SUB_BANNER_LIMIT = 69420
2022-11-06 12:04:00 +00:00
HOUSES = ( " None " , " Furry " , " Femboy " , " Vampire " , " Racist " ) if FEATURES [ ' HOUSES ' ] else ( " None " )
2022-11-06 09:44:58 +00:00
2022-12-21 12:42:41 +00:00
bots = { AUTOJANNY_ID , SNAPPY_ID , LONGPOSTBOT_ID , ZOZBOT_ID }
2022-06-18 15:37:01 +00:00
COLORS = { ' ff66ac ' , ' 805ad5 ' , ' 62ca56 ' , ' 38a169 ' , ' 80ffff ' , ' 2a96f3 ' , ' eb4963 ' , ' ff0000 ' , ' f39731 ' , ' 30409f ' , ' 3e98a7 ' , ' e4432d ' , ' 7b9ae4 ' , ' ec72de ' , ' 7f8fa6 ' , ' f8db58 ' , ' 8cdbe6 ' , DEFAULT_COLOR }
2022-12-11 23:44:34 +00:00
### COMMENT NOTIFICATIONS ###
2022-06-18 15:37:01 +00:00
FORTUNE_REPLIES = ( ' <b style= " color:#6023f8 " >Your fortune: Allah Wills It</b> ' , ' <b style= " color:#d302a7 " >Your fortune: Inshallah, Only Good Things Shall Come To Pass</b> ' , ' <b style= " color:#e7890c " >Your fortune: Allah Smiles At You This Day</b> ' , ' <b style= " color:#7fec11 " >Your fortune: Your Bussy Is In For A Blasting</b> ' , ' <b style= " color:#43fd3b " >Your fortune: You Will Be Propositioned By A High-Tier Twink</b> ' , ' <b style= " color:#9d05da " >Your fortune: Repent, You Have Displeased Allah And His Vengeance Is Nigh</b> ' , ' <b style= " color:#f51c6a " >Your fortune: Reply Hazy, Try Again</b> ' , ' <b style= " color:#00cbb0 " >Your fortune: lmao you just lost 100 coins</b> ' , ' <b style= " color:#2a56fb " >Your fortune: Yikes 😬</b> ' , ' <b style= " color:#0893e1 " >Your fortune: You Will Be Blessed With Many Black Bulls</b> ' , ' <b style= " color:#16f174 " >Your fortune: NEETmax, The Day Is Lost If You Venture Outside</b> ' , ' <b style= " color:#fd4d32 " >Your fortune: A Taste Of Jannah Awaits You Today</b> ' , ' <b style= " color:#bac200 " >Your fortune: Watch Your Back</b> ' , ' <b style= " color:#6023f8 " >Your fortune: Outlook good</b> ' , ' <b style= " color:#d302a7 " >Your fortune: Godly Luck</b> ' , ' <b style= " color:#e7890c " >Your fortune: Good Luck</b> ' , ' <b style= " color:#7fec11 " >Your fortune: Bad Luck</b> ' , ' <b style= " color:#43fd3b " >Your fortune: Good news will come to you by mail</b> ' , ' <b style= " color:#9d05da " >Your fortune: Very Bad Luck</b> ' , ' <b style= " color:#00cbb0 " >Your fortune: キタ━━━━━━(゚∀゚)━━━━━━ !!!!</b> ' , ' <b style= " color:#2a56fb " >Your fortune: Better not tell you now</b> ' , ' <b style= " color:#0893e1 " >Your fortune: You will meet a dark handsome stranger</b> ' , ' <b style= " color:#16f174 " >Your fortune: ( ´ _ゝ`)フーン</b> ' , ' <b style= " color:#fd4d32 " >Your fortune: Excellent Luck</b> ' , ' <b style= " color:#bac200 " >Your fortune: Average Luck</b> ' )
FACTCHECK_REPLIES = ( ' <b style= " color:#6023f8 " >Factcheck: This claim has been confirmed as correct by experts. </b> ' , ' <b style= " color:#d302a7 " >Factcheck: This claim has been classified as misogynistic.</b> ' , ' <b style= " color:#e7890c " >Factcheck: This claim is currently being debunked.</b> ' , ' <b style= " color:#7fec11 " >Factcheck: This claim is 100 % true.</b> ' , ' <b style= " color:#9d05da " >Factcheck: This claim hurts trans lives.</b> ' , ' <b style= " color:#f51c6a " >Factcheck: [REDACTED].</b> ' , ' <b style= " color:#00cbb0 " >Factcheck: This claim is both true and false.</b> ' , ' <b style= " color:#2a56fb " >Factcheck: You really believe that shit? Lmao dumbass nigga 🤣</b> ' , ' <b style= " color:#0893e1 " >Factcheck: None of this is real.</b> ' , ' <b style= " color:#16f174 " >Factcheck: Yes.</b> ' , ' <b style= " color:#fd4d32 " >Factcheck: This claim has not been approved by experts.</b> ' , ' <b style= " color:#bac200 " >Factcheck: This claim is a gross exageration of reality.</b> ' , ' <b style= " color:#ff2200 " >Factcheck: WARNING! THIS CLAIM HAS BEEN CLASSIFIED AS DANGEROUS. PLEASE REMAIN STILL, AN AGENT WILL COME TO MEET YOU SHORTLY.</b> ' )
2022-09-03 00:10:15 +00:00
EIGHTBALL_REPLIES = ( ' <b style= " color:#7FEC11 " >The 8-Ball Says: It is certain.</b> ' , ' <b style= " color:#7FEC11 " >The 8-Ball Says: It is decidedly so.</b> ' , ' <b style= " color:#7FEC11 " >The 8-Ball Says: Without a doubt.</b> ' , ' <b style= " color:#7FEC11 " >The 8-Ball Says: Yes definitely.</b> ' , ' <b style= " color:#7FEC11 " >The 8-Ball Says: You may rely on it.</b> ' , ' <b style= " color:#7FEC11 " >The 8-Ball Says: As I see it, yes.</b> ' , ' <b style= " color:#7FEC11 " >The 8-Ball Says: Most likely.</b> ' , ' <b style= " color:#7FEC11 " >The 8-Ball Says: Outlook good.</b> ' , ' <b style= " color:#7FEC11 " >The 8-Ball Says: Yes.</b> ' , ' <b style= " color:#7FEC11 " >The 8-Ball Says: Signs point to yes.</b> ' , ' <b style= " color:#E7890C " >The 8-Ball Says: Reply hazy, try again.</b> ' , ' <b style= " color:#E7890C " >The 8-Ball Says: Ask again later.</b> ' , ' <b style= " color:#E7890C " >The 8-Ball Says: Better not tell you now.</b> ' , ' <b style= " color:#E7890C " >The 8-Ball Says: Cannot predict now.</b> ' , ' <b style= " color:#E7890C " >The 8-Ball Says: Concentrate and ask again.</b> ' , ' <b style= " color:#FD4D32 " >The 8-Ball Says: Don \' t count on it.</b> ' , ' <b style= " color:#FD4D32 " >The 8-Ball Says: My reply is no.</b> ' , ' <b style= " color:#FD4D32 " >The 8-Ball Says: My sources say no.</b> ' , ' <b style= " color:#FD4D32 " >The 8-Ball Says: Outlook not so good.</b> ' , ' <b style= " color:#FD4D32 " >The 8-Ball Says: Very doubtful.</b> ' )
2022-07-11 12:14:18 +00:00
2022-06-18 15:37:01 +00:00
2022-12-11 23:44:34 +00:00
### END COMMENT NOTIFICATIONS ###
2022-06-18 15:37:01 +00:00
discounts = {
# Big Spender badges, 2pp additive discount each
69 : 0.02 ,
70 : 0.02 ,
71 : 0.02 ,
72 : 0.02 ,
73 : 0.02 ,
# Lootbox badges, 1pp additive discount each
76 : 0.01 ,
77 : 0.01 ,
78 : 0.01 ,
}
CF_HEADERS = { " Authorization " : f " Bearer { CF_KEY } " , " Content-Type " : " application/json " }
WORDLE_LIST = ( ' aaron ' , ' about ' , ' above ' , ' abuse ' , ' acids ' , ' acres ' , ' actor ' , ' acute ' , ' adams ' , ' added ' , ' admin ' , ' admit ' , ' adopt ' , ' adult ' , ' after ' , ' again ' , ' agent ' , ' aging ' , ' agree ' , ' ahead ' , ' aimed ' , ' alarm ' , ' album ' , ' alert ' , ' alias ' , ' alice ' , ' alien ' , ' align ' , ' alike ' , ' alive ' , ' allah ' , ' allan ' , ' allen ' , ' allow ' , ' alloy ' , ' alone ' , ' along ' , ' alpha ' , ' alter ' , ' amber ' , ' amend ' , ' amino ' , ' among ' , ' angel ' , ' anger ' , ' angle ' , ' angry ' , ' anime ' , ' annex ' , ' annie ' , ' apart ' , ' apple ' , ' apply ' , ' april ' , ' areas ' , ' arena ' , ' argue ' , ' arise ' , ' armed ' , ' armor ' , ' array ' , ' arrow ' , ' aruba ' , ' ascii ' , ' asian ' , ' aside ' , ' asked ' , ' asset ' , ' atlas ' , ' audio ' , ' audit ' , ' autos ' , ' avoid ' , ' award ' , ' aware ' , ' awful ' , ' babes ' , ' bacon ' , ' badge ' , ' badly ' , ' baker ' , ' balls ' , ' bands ' , ' banks ' , ' barry ' , ' based ' , ' bases ' , ' basic ' , ' basin ' , ' basis ' , ' batch ' , ' baths ' , ' beach ' , ' beads ' , ' beans ' , ' bears ' , ' beast ' , ' beats ' , ' began ' , ' begin ' , ' begun ' , ' being ' , ' belle ' , ' belly ' , ' below ' , ' belts ' , ' bench ' , ' berry ' , ' betty ' , ' bible ' , ' bikes ' , ' bills ' , ' billy ' , ' bingo ' , ' birds ' , ' birth ' , ' bitch ' , ' black ' , ' blade ' , ' blair ' , ' blake ' , ' blame ' , ' blank ' , ' blast ' , ' blend ' , ' bless ' , ' blind ' , ' blink ' , ' block ' , ' blogs ' , ' blond ' , ' blood ' , ' bloom ' , ' blues ' , ' board ' , ' boats ' , ' bobby ' , ' bonds ' , ' bones ' , ' bonus ' , ' boobs ' , ' books ' , ' boost ' , ' booth ' , ' boots ' , ' booty ' , ' bored ' , ' bound ' , ' boxed ' , ' boxes ' , ' brain ' , ' brake ' , ' brand ' , ' brass ' , ' brave ' , ' bread ' , ' break ' , ' breed ' , ' brian ' , ' brick ' , ' bride ' , ' brief ' , ' bring ' , ' broad ' , ' broke ' , ' brook ' , ' brown ' , ' bruce ' , ' brush ' , ' bryan ' , ' bucks ' , ' buddy ' , ' build ' , ' built ' , ' bunch ' , ' bunny ' , ' burke ' , ' burns ' , ' burst ' , ' buses ' , ' busty ' , ' butts ' , ' buyer ' , ' bytes ' , ' cabin ' , ' cable ' , ' cache ' , ' cakes ' , ' calif ' , ' calls ' , ' camel ' , ' camps ' , ' canal ' , ' candy ' , ' canon ' , ' cards ' , ' carey ' , ' cargo ' , ' carlo ' , ' carol ' , ' carry ' , ' cases ' , ' casey ' , ' casio ' , ' catch ' , ' cause ' , ' cedar ' , ' cells ' , ' cents ' , ' chain ' , ' chair ' , ' chaos ' , ' charm ' , ' chart ' , ' chase ' , ' cheap ' , ' cheat ' , ' check ' , ' chess ' , ' chest ' , ' chevy ' , ' chick ' , ' chief ' , ' child ' , ' chile ' , ' china ' , ' chips ' , ' choir ' , ' chose ' , ' chris ' , ' chuck ' , ' cindy ' , ' cisco ' , ' cited ' , ' civic ' , ' civil ' , ' claim ' , ' clara ' , ' clark ' , ' class ' , ' clean ' , ' clear ' , ' clerk ' , ' click ' , ' cliff ' , ' climb ' , ' clips ' , ' clock ' , ' clone ' , ' close ' , ' cloth ' , ' cloud ' , ' clubs ' , ' coach ' , ' coast ' , ' cocks ' , ' codes ' , ' cohen ' , ' coins ' , ' colin ' , ' colon ' , ' color ' , ' combo ' , ' comes ' , ' comic ' , ' condo ' , ' congo ' , ' const ' , ' coral ' , ' corps ' , ' costa ' , ' costs ' , ' could ' , ' count ' , ' court ' , ' cover ' , ' crack ' , ' craft ' , ' craig ' , ' craps ' , ' crash ' , ' crazy ' , ' cream ' , ' creek ' , ' crest ' , ' crime ' , ' crops ' , ' cross ' , ' crowd ' , ' crown ' , ' crude ' , ' cubic ' , ' curve ' , ' cyber ' , ' cycle ' , ' czech ' , ' daddy ' , ' daily ' , ' dairy ' , ' daisy ' , ' dance ' , ' danny ' , ' dated ' , ' dates ' , ' david ' , ' davis ' , ' deals ' , ' dealt ' , ' death ' , ' debug ' , ' debut ' , ' decor ' , ' delay ' , ' delhi ' , ' delta ' , ' dense ' , ' depot ' , ' depth ' , ' derby ' , ' derek ' , ' devel ' , ' devil ' , ' devon ' , ' diana ' , ' diane ' , ' diary ' , ' dicke ' , ' dicks ' , ' diego ' , ' diffs ' , ' digit ' , ' dildo ' , ' dirty ' , ' disco ' , ' discs ' , ' disks ' , ' dodge ' , ' doing ' , ' dolls ' , ' donna ' , ' donor ' , ' doors ' , ' doubt ' , ' dover ' , ' dozen ' , ' draft ' , ' drain ' , ' rDrama ' , ' drawn ' , ' draws ' , ' dream ' , ' dress ' , ' dried ' , ' drill ' , ' drink ' , ' drive ' , ' drops ' , ' drove ' , ' drugs ' , ' drums ' , ' drunk ' , ' dryer ' , ' dubai ' , ' dutch ' , ' dying ' , ' dylan ' , ' eagle ' , ' early ' , ' earth ' , ' ebony ' , ' ebook ' , ' eddie ' , ' edgar ' , ' edges ' , ' egypt ' , ' eight ' , ' elder ' , ' elect ' , ' elite ' , ' ellen ' , ' ellis ' , ' elvis ' , ' emacs ' , ' email ' , ' emily ' , ' empty ' , ' ended ' , ' endif ' , ' enemy ' , ' enjoy ' , ' enter ' , ' entry ' , ' epson ' , ' equal ' , ' error ' , ' essay ' , ' essex ' , ' euros ' , ' evans ' , ' event ' , ' every ' , ' exact ' , ' exams ' , ' excel ' , ' exist ' , ' extra ' , ' faced ' , ' faces ' , ' facts ' , ' fails ' , ' fairy ' , ' faith ' , ' falls ' , ' false ' , ' fancy ' , ' fares ' , ' farms ' , ' fatal ' , ' fatty ' , ' fault ' , ' favor ' , ' fears ' , ' feeds ' , ' feels ' , ' fence ' , ' ferry ' , ' fever ' , ' fewer ' , ' fiber ' , ' fibre ' , ' field ' , ' fifth ' , ' fifty ' , ' fight ' , ' filed ' , ' files ' , ' filme ' , ' films ' , ' final ' , ' finds ' , ' fired ' , ' fires ' , ' firms ' , ' first ' , ' fixed ' , ' fixes ' , ' flags ' , ' flame ' , ' flash ' , ' fleet ' , ' flesh ' , ' float ' , ' flood ' , ' floor ' , ' flour ' , ' flows ' , ' floyd ' , ' fluid ' , ' flush ' , ' flyer ' , ' focal ' , ' focus ' , ' folks ' , ' fonts ' , ' foods ' , ' force ' , ' forge ' , ' forms ' , ' forth ' , ' forty ' , ' forum ' , ' found ' , ' frame ' , ' frank ' , ' fraud ' , ' fresh ' , ' front ' , ' frost ' , ' fruit ' , ' fully ' , ' funds ' , ' funky ' , ' funny ' , ' fuzzy ' , ' gains ' , ' games ' , ' gamma ' , ' gates ' , ' gauge ' , ' genes ' , ' genre ' , ' ghana ' , ' ghost ' , ' giant ' , ' gifts ' , ' girls ' , ' given ' , ' gives ' , ' glass ' , ' glenn ' , ' globe ' , ' glory ' , ' gnome ' , ' goals ' , ' going ' , ' gonna ' , ' goods ' , ' gotta ' , ' grace ' , ' grade '
2022-10-30 18:45:53 +00:00
ADMIGGER_THREADS = { SIDEBAR_THREAD , BANNER_THREAD , BADGE_THREAD , SNAPPY_THREAD }
2022-06-18 15:37:01 +00:00
2022-10-08 00:43:04 +00:00
proxies = { " http " : PROXY_URL , " https " : PROXY_URL }
2022-06-18 15:37:01 +00:00
approved_embed_hosts = {
Narrow approved_embed_hosts for security.
Probably will break some peoples' profilecss and irritate the
newsposters, but in light of recent live proven exploits to disclose
user IP & username pairs to remote servers, the broad list of embed
hosts was unsustainable and impossible to prove safe.
We extend is_safe_url to allow whitelisting subdomains, specifically
to solve the s.lain.la open redirect exploit. Also, open media proxies
like external-content.duckduckgo.com were concerning enough, despite
likely being safe, to warrant removal. Anything infrequently used and
difficult to review, or has a reasonable alternative, was also removed.
In general: we want people to be rehosting, and if we want to allow
more external content, we need to run a media proxy. The central issue
is that any user-configurable 302 is a potential disclosure risk, and
Lord knows how many ways there were to get <arbitrarynewssite>.com to
do so. Maybe zero, but the problem is we just don't know.
2022-12-05 23:57:35 +00:00
### GENERAL PRINCIPLES #####################################################
# 0) The goal is to prevent user info leaks. Worst is a username + IP.
# 1) Cannot point to a server controlled by a site user.
# 2) Cannot have open redirects based on query string. (tightest constraint)
# 3) #2 but pre-stored, ex: s.lain.la 302 with jannie DM attack.
### TODO: Run a media proxy and kill most of these. Impossible to review.
### First-Party
2022-06-18 15:37:01 +00:00
SITE ,
' rdrama.net ' ,
2022-10-30 18:01:01 +00:00
BAN_EVASION_DOMAIN ,
2022-10-17 19:13:33 +00:00
' watchpeopledie.tv ' ,
2022-11-23 17:24:13 +00:00
' fsdfsd.net ' ,
Narrow approved_embed_hosts for security.
Probably will break some peoples' profilecss and irritate the
newsposters, but in light of recent live proven exploits to disclose
user IP & username pairs to remote servers, the broad list of embed
hosts was unsustainable and impossible to prove safe.
We extend is_safe_url to allow whitelisting subdomains, specifically
to solve the s.lain.la open redirect exploit. Also, open media proxies
like external-content.duckduckgo.com were concerning enough, despite
likely being safe, to warrant removal. Anything infrequently used and
difficult to review, or has a reasonable alternative, was also removed.
In general: we want people to be rehosting, and if we want to allow
more external content, we need to run a media proxy. The central issue
is that any user-configurable 302 is a potential disclosure risk, and
Lord knows how many ways there were to get <arbitrarynewssite>.com to
do so. Maybe zero, but the problem is we just don't know.
2022-12-05 23:57:35 +00:00
### Third-Party Image Hosts
# TODO: Might be able to keep these even if we media proxy?
' imgur.com ' , # possibly restrict to i.imgur.com
' pomf2.lain.la ' , # DO NOT generalize to lain.la. s.lain.la open redirect
' giphy.com ' , # used by the GIF Modal
2022-06-18 15:37:01 +00:00
' tenor.com ' ,
' gfycat.com ' ,
Narrow approved_embed_hosts for security.
Probably will break some peoples' profilecss and irritate the
newsposters, but in light of recent live proven exploits to disclose
user IP & username pairs to remote servers, the broad list of embed
hosts was unsustainable and impossible to prove safe.
We extend is_safe_url to allow whitelisting subdomains, specifically
to solve the s.lain.la open redirect exploit. Also, open media proxies
like external-content.duckduckgo.com were concerning enough, despite
likely being safe, to warrant removal. Anything infrequently used and
difficult to review, or has a reasonable alternative, was also removed.
In general: we want people to be rehosting, and if we want to allow
more external content, we need to run a media proxy. The central issue
is that any user-configurable 302 is a potential disclosure risk, and
Lord knows how many ways there were to get <arbitrarynewssite>.com to
do so. Maybe zero, but the problem is we just don't know.
2022-12-05 23:57:35 +00:00
' postimg.cc ' , # WPD chat seems to like it
' files.catbox.moe ' ,
2023-02-06 05:10:53 +00:00
' b1.thefileditch.ch ' ,
' s1.fileditch.ch ' ,
Narrow approved_embed_hosts for security.
Probably will break some peoples' profilecss and irritate the
newsposters, but in light of recent live proven exploits to disclose
user IP & username pairs to remote servers, the broad list of embed
hosts was unsustainable and impossible to prove safe.
We extend is_safe_url to allow whitelisting subdomains, specifically
to solve the s.lain.la open redirect exploit. Also, open media proxies
like external-content.duckduckgo.com were concerning enough, despite
likely being safe, to warrant removal. Anything infrequently used and
difficult to review, or has a reasonable alternative, was also removed.
In general: we want people to be rehosting, and if we want to allow
more external content, we need to run a media proxy. The central issue
is that any user-configurable 302 is a potential disclosure risk, and
Lord knows how many ways there were to get <arbitrarynewssite>.com to
do so. Maybe zero, but the problem is we just don't know.
2022-12-05 23:57:35 +00:00
### Third-Party Media
# TODO: Preferably kill these. Media proxy.
# DO NOT ADD: wordpress.com, wp.com (maybe) | Or frankly anything. No more.
2022-12-22 17:13:03 +00:00
' redd.it ' , # disconcerting surface size {i, preview, external-preview, &c} but believed safe
Narrow approved_embed_hosts for security.
Probably will break some peoples' profilecss and irritate the
newsposters, but in light of recent live proven exploits to disclose
user IP & username pairs to remote servers, the broad list of embed
hosts was unsustainable and impossible to prove safe.
We extend is_safe_url to allow whitelisting subdomains, specifically
to solve the s.lain.la open redirect exploit. Also, open media proxies
like external-content.duckduckgo.com were concerning enough, despite
likely being safe, to warrant removal. Anything infrequently used and
difficult to review, or has a reasonable alternative, was also removed.
In general: we want people to be rehosting, and if we want to allow
more external content, we need to run a media proxy. The central issue
is that any user-configurable 302 is a potential disclosure risk, and
Lord knows how many ways there were to get <arbitrarynewssite>.com to
do so. Maybe zero, but the problem is we just don't know.
2022-12-05 23:57:35 +00:00
' redditmedia.com ' , # similar to above
' twimg.com ' ,
' pinimg.com ' ,
' kiwifarms.net ' , # how sure are we Jersh doesn't have an open redirect?
' upload.wikimedia.org ' ,
2022-06-18 15:37:01 +00:00
' staticflickr.com ' ,
' substackcdn.com ' ,
Narrow approved_embed_hosts for security.
Probably will break some peoples' profilecss and irritate the
newsposters, but in light of recent live proven exploits to disclose
user IP & username pairs to remote servers, the broad list of embed
hosts was unsustainable and impossible to prove safe.
We extend is_safe_url to allow whitelisting subdomains, specifically
to solve the s.lain.la open redirect exploit. Also, open media proxies
like external-content.duckduckgo.com were concerning enough, despite
likely being safe, to warrant removal. Anything infrequently used and
difficult to review, or has a reasonable alternative, was also removed.
In general: we want people to be rehosting, and if we want to allow
more external content, we need to run a media proxy. The central issue
is that any user-configurable 302 is a potential disclosure risk, and
Lord knows how many ways there were to get <arbitrarynewssite>.com to
do so. Maybe zero, but the problem is we just don't know.
2022-12-05 23:57:35 +00:00
' wixmp.com ' , # image CDN: deviantart, others?
' kym-cdn.com ' ,
' tumblr.com ' , # concerningly broad.
' ytimg.com ' ,
2022-12-27 02:17:04 +00:00
' yt3.ggpht.com ' ,
2023-03-12 19:55:34 +00:00
' bitchute.com ' ,
Narrow approved_embed_hosts for security.
Probably will break some peoples' profilecss and irritate the
newsposters, but in light of recent live proven exploits to disclose
user IP & username pairs to remote servers, the broad list of embed
hosts was unsustainable and impossible to prove safe.
We extend is_safe_url to allow whitelisting subdomains, specifically
to solve the s.lain.la open redirect exploit. Also, open media proxies
like external-content.duckduckgo.com were concerning enough, despite
likely being safe, to warrant removal. Anything infrequently used and
difficult to review, or has a reasonable alternative, was also removed.
In general: we want people to be rehosting, and if we want to allow
more external content, we need to run a media proxy. The central issue
is that any user-configurable 302 is a potential disclosure risk, and
Lord knows how many ways there were to get <arbitrarynewssite>.com to
do so. Maybe zero, but the problem is we just don't know.
2022-12-05 23:57:35 +00:00
### Third-Party Resources (For e.g. Profile Customization)
# TODO: Any reasonable way to proxy these instead?
' use.typekit.net ' , # Adobe font CDN
' p.typekit.net ' , # Adobe font CDN
' fonts.googleapis.com ' , # Google font CDN
' githubusercontent.com ' , # using repos as media sources. no obvious exploit
' kindpng.com ' ,
' pngfind.com ' ,
}
2022-06-18 15:37:01 +00:00
2022-07-02 10:44:05 +00:00
def is_site_url ( url ) :
Narrow approved_embed_hosts for security.
Probably will break some peoples' profilecss and irritate the
newsposters, but in light of recent live proven exploits to disclose
user IP & username pairs to remote servers, the broad list of embed
hosts was unsustainable and impossible to prove safe.
We extend is_safe_url to allow whitelisting subdomains, specifically
to solve the s.lain.la open redirect exploit. Also, open media proxies
like external-content.duckduckgo.com were concerning enough, despite
likely being safe, to warrant removal. Anything infrequently used and
difficult to review, or has a reasonable alternative, was also removed.
In general: we want people to be rehosting, and if we want to allow
more external content, we need to run a media proxy. The central issue
is that any user-configurable 302 is a potential disclosure risk, and
Lord knows how many ways there were to get <arbitrarynewssite>.com to
do so. Maybe zero, but the problem is we just don't know.
2022-12-05 23:57:35 +00:00
return ( url
and ' \\ ' not in url
and ( ( url . startswith ( ' / ' ) and not url . startswith ( ' // ' ) )
or url . startswith ( f ' { SITE_FULL } / ' ) ) )
2022-07-02 10:44:05 +00:00
2022-06-18 15:37:01 +00:00
def is_safe_url ( url ) :
Narrow approved_embed_hosts for security.
Probably will break some peoples' profilecss and irritate the
newsposters, but in light of recent live proven exploits to disclose
user IP & username pairs to remote servers, the broad list of embed
hosts was unsustainable and impossible to prove safe.
We extend is_safe_url to allow whitelisting subdomains, specifically
to solve the s.lain.la open redirect exploit. Also, open media proxies
like external-content.duckduckgo.com were concerning enough, despite
likely being safe, to warrant removal. Anything infrequently used and
difficult to review, or has a reasonable alternative, was also removed.
In general: we want people to be rehosting, and if we want to allow
more external content, we need to run a media proxy. The central issue
is that any user-configurable 302 is a potential disclosure risk, and
Lord knows how many ways there were to get <arbitrarynewssite>.com to
do so. Maybe zero, but the problem is we just don't know.
2022-12-05 23:57:35 +00:00
domain = tldextract . extract ( url )
2022-12-06 01:06:04 +00:00
return ( is_site_url ( url )
or domain . registered_domain in approved_embed_hosts
or domain . fqdn in approved_embed_hosts )
2022-06-18 15:37:01 +00:00
2022-06-24 15:08:57 +00:00
hosts = " | " . join ( approved_embed_hosts ) . replace ( ' . ' , ' \ . ' )
2022-07-08 16:21:13 +00:00
tiers = {
" (Paypig) " : 1 ,
" (Renthog) " : 2 ,
" (Landchad) " : 3 ,
" (Terminally online turboautist) " : 4 ,
" (Marsey ' s Sugar Daddy) " : 5 ,
" (JIDF Bankroller) " : 6 ,
" (Rich Bich) " : 7 ,
" (LlamaBean) " : 1 ,
2022-08-16 15:26:50 +00:00
" (Victim) " : 1 ,
" (Corpse) " : 2 ,
" (Zombie) " : 3 ,
" (Ghost) " : 4 ,
" (Survivor) " : 5 ,
2022-10-05 22:47:12 +00:00
" (Jigsaw) " : 6 ,
2022-07-08 16:21:13 +00:00
}
2022-07-01 05:55:53 +00:00
has_sidebar = path . exists ( f ' files/templates/sidebar_ { SITE_NAME } .html ' )
has_logo = path . exists ( f ' files/assets/images/ { SITE_NAME } /logo.webp ' )
2022-07-16 18:37:07 +00:00
2022-09-19 18:52:50 +00:00
forced_hats = {
" rehab " : ( " Roulette " , " I ' m a recovering ludomaniac! " ) ,
" progressivestack " : ( " Attention Whore " , " I won the oppression olympics! " ) ,
" longpost " : ( " The Pizzashill " , " We need to get rid of the character limit! " ) ,
" bird " : ( " Bluecheck " , " Three sentences is too much for me... " ) ,
" marseyawarded " : ( " Three Lil Marseys " , " :marseynotes: :marseynotes: :I prefer to speak in cats: " ) ,
" bite " : ( " Vampire Mask " , " When other little girls wanted to be ballet dancers I kind of wanted to be a vampire. " ) ,
" rainbow " : ( " Globohomo " , " Homosexuality is no longer optional! " ) ,
2022-09-20 00:55:25 +00:00
" owoify " : ( " Cat Ears (wiggly) " , " Nuzzles, pounces on you, UwU, you ' re so warm!.. " ) ,
2022-09-19 18:52:50 +00:00
" earlylife " : ( " The Merchant " , " SHUT IT DOWN, the goys know! " ) ,
" marsify " : ( " Marsified " , " I can ' t pick my own Marseys, help! " ) ,
2022-09-23 21:47:32 +00:00
" is_suspended " : ( " Behind Bars " , " This user is banned and needs to do better! " ) ,
2023-01-01 11:36:20 +00:00
" agendaposter " : ( ( " Egg_irl " , " This user is getting in touch with xir identity! " ) ,
2022-11-26 20:14:31 +00:00
( " Trans Flag " , " Just in case you forgot, trans lives matter. " ) ,
( " Trans Flag II " , " Your egg is cracked; wear it with pride! " ) ,
( " Pride Flag " , " Never forget that this is a primarily gay community. Dude bussy lmao. " ) ,
( " Pride Flag II " , " This user is a proud supporter of LGBTQ+ rights. " ) )
2022-09-29 05:43:29 +00:00
}
2022-10-19 10:39:03 +00:00
EMAIL_REGEX_PATTERN = ' [A-Za-z0-9._ % +-] { 1,64}@[A-Za-z0-9.-] { 2,63} \ .[A-Za-z] { 2,63} '
2022-10-29 22:53:42 +00:00
2023-03-07 01:51:48 +00:00
IMAGE_FORMATS = ( ' png ' , ' jpg ' , ' jpeg ' , ' webp ' , ' gif ' )
2023-01-01 03:38:37 +00:00
VIDEO_FORMATS = ( ' mp4 ' , ' webm ' , ' mov ' , ' avi ' , ' mkv ' , ' flv ' , ' m4v ' , ' 3gp ' )
AUDIO_FORMATS = ( ' mp3 ' , ' wav ' , ' ogg ' , ' aac ' , ' m4a ' , ' flac ' )
2022-11-22 21:42:52 +00:00
2022-11-22 21:58:57 +00:00
if not IS_LOCALHOST and SECRET_KEY == DEFAULT_CONFIG_VALUE :
2022-11-22 21:42:52 +00:00
from warnings import warn
warn ( " Secret key is the default value! Please change it to a secure random number. Thanks <3 " , RuntimeWarning )
2023-02-26 11:08:52 +00:00
2023-03-02 20:29:22 +00:00
if AEVANN_ID :
GLOBAL = environ . get ( " GLOBAL " , " " ) . strip ( )
else :
GLOBAL = None
2023-03-06 20:49:01 +00:00
STARS = ' \n \n ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ \n \n '