This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import threading | |
import sys | |
import re | |
import argparse | |
import time | |
from getpass import getpass | |
""" | |
A simple IRC client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from PIL import Image, ExifTags | |
import pillow_heif | |
import argparse | |
def convert_heic_to_format(input_path, output_format="png", output_dir=None): | |
""" | |
Converts HEIC images to the specified format (png, jpeg, webp) while preserving metadata. | |
:param input_path: Path to the HEIC file or folder containing HEIC files. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as openpgp from './openpgp.mjs'; | |
import * as Crypto from 'expo-crypto'; | |
if (typeof global.crypto === 'undefined') { | |
global.crypto = { | |
getRandomValues: (array) => { | |
const randomBytes = Crypto.getRandomBytes(array.length); | |
array.set(randomBytes); | |
}, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is not really perfect to use and has the risk to ban you based on discord TOS on automation. | |
s : server id | |
c : channel id | |
a : user id | |
m : id of message to start from | |
You also need to fill in "x-super-properties" and "authorization" with your datas. | |
Good luck :) |