stdin2discord.py: pretty format
This commit is contained in:
parent
4b41a107b0
commit
d35ec4ee88
@ -7,7 +7,7 @@ def send(_msg: str):
|
|||||||
|
|
||||||
r = requests.post(
|
r = requests.post(
|
||||||
url='https://discord.com/api/webhooks/936927833572380692/QrqoK8aVCOkGFh1L0HaHPd_Z-Usj-ubhXYvHadZyCA1Y5GOB7-0xWmuyKI9l4byvKjQ1',
|
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'}
|
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
|
||||||
)
|
)
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user