Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Premium plan #205

Open
3 of 10 tasks
EDM115 opened this issue Aug 12, 2023 · 3 comments
Open
3 of 10 tasks

[FEATURE REQUEST] Premium plan #205

EDM115 opened this issue Aug 12, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request Priority S

Comments

@EDM115
Copy link
Owner

EDM115 commented Aug 12, 2023

Planned Features :

  • No wait for a task to be processed
  • Process several tasks too complex
  • Automatic task restart after a bot restart
  • Better/Faster support
  • 4gb upload (not sure)
  • Thumbnails list
  • Access features before others
  • Access to another VIP bot if we have enough payments
  • 1$/month | 10$/year (PayPal, maybe something else)
  • ...
@EDM115 EDM115 added the enhancement New feature or request label Aug 12, 2023
@EDM115 EDM115 self-assigned this Aug 12, 2023
@EDM115
Copy link
Owner Author

EDM115 commented Aug 29, 2023

DB scheme :

vip_users = unzipper_db["vip_users"]

user_id: {int} The user ID
subscription: {date} When the subscription starts
ends: {date} When the subscription ends
used: {str} [paypal, telegram, sponsor, bmac] Which platform had been used
billed: {str} [monthly, yearly] At which frequency the user is billed
early: {bool} Is the user a early supporter (can be obtained only the first 3 months)
donator: {bool} Is the user also a donator
started: {date} When does the user ever started a subscription
successful: {int} How many successful payments had been done
gap: {bool} Is there been any gap between payments
gifted: {bool} If the user had been gifted a Premium plan (enjoy discounts)
referral: {str} Your referral code (enjoy discounts x2) encoded using base58check
lifetime: {bool} A special perk that only few people can have

date being :

datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ')

referral being :

import base58check

uid = 854158484
print("base = ", uid)
encoded = base58check.b58encode(str(uid).encode("ascii"))
print("round 1 = ", encoded.decode("ascii"))
encoded = base58check.b58encode(encoded)
print("round 2 = ", encoded.decode("ascii"))
decoded = base58check.b58decode(encoded)
print("round 1 = ", decoded.decode("ascii"))
decoded = base58check.b58decode(decoded)
print("round 2 = ", int(decoded.decode("ascii")))
base =  854158484
round 1 =  iVnJXkc8Wz83
round 2 =  2zHzuEXgUySapa2Ee
round 1 =  iVnJXkc8Wz83
round 2 =  854158484

EDM115 added a commit that referenced this issue Aug 29, 2023
@EDM115
Copy link
Owner Author

EDM115 commented Aug 31, 2023

referral simplified to :

import base58check

def get_referral_code(uid):
    return base58check.b58encode(base58check.b58encode(str(uid).encode("ascii"))).decode("ascii")

def get_referral_uid(referral_code):
    return int(base58check.b58decode(base58check.b58decode(referral_code).decode("ascii")).decode("ascii"))

@EDM115
Copy link
Owner Author

EDM115 commented Jan 21, 2024

use compose() for running the multiple clients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority S
Projects
None yet
Development

No branches or pull requests

1 participant