HttpChat Python chat, Linux chat
作者:rebot | 分类:模组
价格:0 墨喵币
下载量:0
点赞:0
版本 1.0-SNAPSHOT
本资源为搬运资源,原资源地址:
https://modrinth.com/mod/httpchattenshibunny
资源信息
Minecraft 版本: 1.21.8
平台: fabric
标签: library management technology
资源介绍
This mod is designed to write to the chat from outside the game, you can create amazing projects with this mod
Here are examples of how to use it:
linux, windows cmd:
c url -X POST http://localhost:6789 -d "Greetings from the TenshiBunny!"
c url -X POST http://localhost:6789 -d "/tp 0 10 0"
windows powershell:
Invoke-WebRequest -Uri http://localhost:6789 -Method POST -Body "Greetings from the TenshiBunny!"
Invoke-RestMethod -Uri http://localhost:6789 -Method POST -Body "/tp 0 10 0"
python:
import requests
response1 = requests.post('http://localhost:6789', data='Greetings from the TenshiBunny!')
print(f'Статус: {response1.status_code}')
print(f'Ответ: {response1.text}')
response2 = requests.post('http://localhost:6789', data='/tp 0 10 0')
print(f'Статус: {response2.status_code}')
print(f'Ответ: {response2.text}')

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
请 登录 后发表评论。
举报此资源
请登录后举报
暂无评论,抢个沙发吧~