Skip to content

Commit

Permalink
forgotten redirect from env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Resousse committed Jun 3, 2023
1 parent 522d8e0 commit fc056e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion template/mod_whatsapp_redirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

title = os.getenv('TITLE')
image = os.getenv('IMAGE')
redirect = os.getenv('REDIRECT')

if title is None:
title = input(f'{G}[+] {C}Group Title : {W}')
Expand All @@ -22,6 +23,10 @@
else:
utils.print(f'{G}[+] {C}Group Image :{W} '+image)

if redirect is None:
redirect = input(G + '[+]' + C + ' Enter WhatsApp Group URL : ' + W)
else:
utils.print(f'{G}[+] {C}WhatsApp Group URL :{W} '+redirect)

img_name = utils.downloadImageFromUrl(image, 'template/whatsapp_redirect/images/')
if img_name :
Expand All @@ -34,7 +39,6 @@
utils.print('\n' + R + '[-]' + C + ' Exception : ' + W + str(e))
exit()

redirect = input(G + '[+]' + C + ' Enter WhatsApp Group URL : ' + W)
with open('template/whatsapp_redirect/index_temp.html', 'r') as index_temp:
code = index_temp.read()
if os.getenv("DEBUG_HTTP"):
Expand Down

0 comments on commit fc056e0

Please sign in to comment.