restore autofollow for carp

master
Aevann 2024-04-26 02:00:27 +03:00
parent 60cb188936
commit 01101ae886
2 changed files with 11 additions and 2 deletions

View File

@ -582,6 +582,7 @@ CARP_ID = 0
AEVANN_ID = 0
GTIX_ID = 0
SIGNUP_FOLLOW_ID = 0
CURRENCY_TRANSFER_ID = 5
IMMUNE_TO_NEGATIVE_AWARDS = {}
@ -806,7 +807,9 @@ elif SITE in {'watchpeopledie.tv', 'marsey.world'}:
AEVANN_ID = 9
GTIX_ID = 77694
CURRENCY_TRANSFER_ID = 48
SIGNUP_FOLLOW_ID = CARP_ID
CURRENCY_TRANSFER_ID = CARP_ID
ANTISPAM_BYPASS_IDS = {1718156}
TIER_TO_NAME = {

View File

@ -351,7 +351,13 @@ def sign_up_post(v):
check_for_alts(new_user, include_current_session=True)
send_notification(new_user.id, WELCOME_MSG)
if CARP_ID:
if SIGNUP_FOLLOW_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!")
execute_blackjack(new_user, None, new_user.username, 'username')