generate functionSun, 13 Nov 2022

Send D:\Flavour.txt to "discord webhook".

def send_file(file, webhook): with open(file, 'rb') as f: r = requests.post(webhook, files={'file': f}) if r.status_code == 200: return True else: return False send_file('D:\Flavour.txt', 'discord webhook')

Questions about programming?Chat with your personal AI assistant