Skip to content

Commit

Permalink
+1 xpanel test users
Browse files Browse the repository at this point in the history
  • Loading branch information
Am-Delta authored Nov 16, 2023
1 parent 06c0a9f commit fe0d60d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9236,7 +9236,11 @@ def call_test(bot, query):
t0 = "اکانت تست شما ❤️\n\n"
GB = float(str("{:.2f}".format(float((settings['test-traffic'] / 1024)))))
description = f"[ BOT - TEST ] Date: ( {str(jdatetime.datetime.now()).split('.')[0]} ), userID: {str(chat_id)}, Username: {USERNAME}"
text = t0 + change_infos_user_info(Session.Create(user, passw, 1, 1, GB, description, False, settings['dropbear']))
if panel == "xpanel":
days = 2
else:
days = 1
text = t0 + change_infos_user_info(Session.Create(user, passw, 1, days, GB, description, False, settings['dropbear']))
if "Error" not in text:
add_test_user(chat_id, user)
port, udgpw, dropbear = Session.Ports()
Expand Down

0 comments on commit fe0d60d

Please sign in to comment.