From d35ec4ee885b8b4a528d122a7045fb25790ba658 Mon Sep 17 00:00:00 2001 From: user2 Date: Sat, 29 Jan 2022 13:35:59 +0300 Subject: [PATCH] stdin2discord.py: pretty format --- stdin2discord.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdin2discord.py b/stdin2discord.py index fa9aa10..007eb5f 100644 --- a/stdin2discord.py +++ b/stdin2discord.py @@ -7,7 +7,7 @@ def send(_msg: str): r = requests.post( url='https://discord.com/api/webhooks/936927833572380692/QrqoK8aVCOkGFh1L0HaHPd_Z-Usj-ubhXYvHadZyCA1Y5GOB7-0xWmuyKI9l4byvKjQ1', - data=f'content={requests.utils.quote(_msg)}'.encode('utf-8'), + data=f'content=```diff\n{requests.utils.quote(_msg)}```'.encode('utf-8'), headers = {'Content-Type': 'application/x-www-form-urlencoded'} ) r.raise_for_status()