forked from rDrama/rDrama
excise clitpeeler from code
parent
195de67dba
commit
9404c91449
|
@ -568,8 +568,6 @@ IMMUNE_TO_NEGATIVE_AWARDS = {}
|
||||||
EXEMPT_FROM_1MONTH_EDITING_LIMIT = {}
|
EXEMPT_FROM_1MONTH_EDITING_LIMIT = {}
|
||||||
|
|
||||||
MODMAIL_ID = 2
|
MODMAIL_ID = 2
|
||||||
GIFT_NOTIF_ID = 5
|
|
||||||
SIGNUP_FOLLOW_ID = 0
|
|
||||||
PROGSTACK_ID = 4
|
PROGSTACK_ID = 4
|
||||||
|
|
||||||
POLL_BET_COINS = 200
|
POLL_BET_COINS = 200
|
||||||
|
@ -703,8 +701,6 @@ if SITE in {'rdrama.net', 'staging.rdrama.net'}:
|
||||||
'gaslight': 18121,
|
'gaslight': 18121,
|
||||||
}
|
}
|
||||||
|
|
||||||
GIFT_NOTIF_ID = CARP_ID
|
|
||||||
|
|
||||||
WELCOME_MSG = f"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\nThanks!\n\nNext 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\nDefinitely 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\nYou'll want to set this pretty soon. Set the banner too while you're at it. Your profile is important!\n\n### Flairs\n\nSince 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\nSpeaking 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\nDramacoin 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\nLike 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\nDramacoin can also be traded amongst users from their profiles. Note that there is a 3% transaction fee.\n\n### Badges\n\nRemember 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](/post/{CHANGELOG_THREAD}).\n\n### Other stuff\n\nWe'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, more than a thousand emojis already (most of which are rDrama originals), and on and on and on and on. This is just the basics, mostly to help you get acquainted with some of the things you can do here to make it more easy on the eyes, customizable, and enjoyable. If you don't enjoy it, just go away! We're not changing things to suit you! Get out of here loser! And no, you can't delete your account :na:\n\nI love you.<br>*xoxo Carp* 💋"
|
WELCOME_MSG = f"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\nThanks!\n\nNext 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\nDefinitely 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\nYou'll want to set this pretty soon. Set the banner too while you're at it. Your profile is important!\n\n### Flairs\n\nSince 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\nSpeaking 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\nDramacoin 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\nLike 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\nDramacoin can also be traded amongst users from their profiles. Note that there is a 3% transaction fee.\n\n### Badges\n\nRemember 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](/post/{CHANGELOG_THREAD}).\n\n### Other stuff\n\nWe'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, more than a thousand emojis already (most of which are rDrama originals), and on and on and on and on. This is just the basics, mostly to help you get acquainted with some of the things you can do here to make it more easy on the eyes, customizable, and enjoyable. If you don't enjoy it, just go away! We're not changing things to suit you! Get out of here loser! And no, you can't delete your account :na:\n\nI love you.<br>*xoxo Carp* 💋"
|
||||||
|
|
||||||
REDDIT_NOTIFS_USERS = {
|
REDDIT_NOTIFS_USERS = {
|
||||||
|
@ -790,20 +786,14 @@ elif SITE == 'watchpeopledie.tv':
|
||||||
LONGPOSTBOT_ID = 4
|
LONGPOSTBOT_ID = 4
|
||||||
ZOZBOT_ID = 5
|
ZOZBOT_ID = 5
|
||||||
|
|
||||||
CARP_ID = 48
|
|
||||||
AEVANN_ID = 9
|
AEVANN_ID = 9
|
||||||
GTIX_ID = 77694
|
GTIX_ID = 77694
|
||||||
|
|
||||||
GIFT_NOTIF_ID = CARP_ID
|
|
||||||
SIGNUP_FOLLOW_ID = CARP_ID
|
|
||||||
|
|
||||||
NOTIFIED_USERS = {
|
NOTIFIED_USERS = {
|
||||||
'aevan': AEVANN_ID,
|
'aevan': AEVANN_ID,
|
||||||
'avean': AEVANN_ID,
|
'avean': AEVANN_ID,
|
||||||
' capy': AEVANN_ID,
|
' capy': AEVANN_ID,
|
||||||
'capy ': AEVANN_ID,
|
'capy ': AEVANN_ID,
|
||||||
'carp': CARP_ID,
|
|
||||||
'clit': CARP_ID,
|
|
||||||
'g-tix': GTIX_ID,
|
'g-tix': GTIX_ID,
|
||||||
'gtix': GTIX_ID,
|
'gtix': GTIX_ID,
|
||||||
}
|
}
|
||||||
|
|
|
@ -350,13 +350,7 @@ def sign_up_post(v):
|
||||||
check_for_alts(new_user, include_current_session=True)
|
check_for_alts(new_user, include_current_session=True)
|
||||||
send_notification(new_user.id, WELCOME_MSG)
|
send_notification(new_user.id, WELCOME_MSG)
|
||||||
|
|
||||||
if SIGNUP_FOLLOW_ID:
|
if CARP_ID:
|
||||||
signup_autofollow = get_account(SIGNUP_FOLLOW_ID)
|
|
||||||
new_follow = Follow(user_id=new_user.id, target_id=signup_autofollow.id)
|
|
||||||
g.db.add(new_follow)
|
|
||||||
signup_autofollow.stored_subscriber_count += 1
|
|
||||||
g.db.add(signup_autofollow)
|
|
||||||
elif CARP_ID:
|
|
||||||
send_notification(CARP_ID, f"A new user - @{new_user.username} - has signed up!")
|
send_notification(CARP_ID, f"A new user - @{new_user.username} - has signed up!")
|
||||||
|
|
||||||
execute_blackjack(new_user, None, new_user.username, 'username')
|
execute_blackjack(new_user, None, new_user.username, 'username')
|
||||||
|
|
|
@ -147,7 +147,9 @@ def transfer_currency(v, username, currency_name, apply_tax):
|
||||||
receiver.pay_account('coins', amount - tax)
|
receiver.pay_account('coins', amount - tax)
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"Invalid currency '{currency_name}' got when transferring {amount} from {v.id} to {receiver.id}")
|
raise ValueError(f"Invalid currency '{currency_name}' got when transferring {amount} from {v.id} to {receiver.id}")
|
||||||
if GIFT_NOTIF_ID: send_repeatable_notification(GIFT_NOTIF_ID, log_message)
|
|
||||||
|
if CARP_ID: send_repeatable_notification(CARP_ID, log_message)
|
||||||
|
|
||||||
send_repeatable_notification(receiver.id, notif_text)
|
send_repeatable_notification(receiver.id, notif_text)
|
||||||
|
|
||||||
return {"message": f"{amount - tax} {currency_name} have been transferred to @{receiver.username}"}
|
return {"message": f"{amount - tax} {currency_name} have been transferred to @{receiver.username}"}
|
||||||
|
|
Loading…
Reference in New Issue