HttpChat Python chat, Linux chat

模组

· 作者 TenshiBunny

一个模组,允许你从任何编程语言或控制台直接代表玩家发送消息或命令到聊天栏。

0 本站下载 0 关注 更新于 9 个月前

最新 1.0-SNAPSHOT · 1.21.8 · Fabric

一键开服(送7天)

本模组允许从游戏外部向聊天栏发送消息,你可以利用此模组创建令人惊叹的项目。

以下是使用示例:

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}')

Linux:

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源