Мова

HttpChat Python chat, Linux chat

HttpChat Python chat, Linux chat

Modrinth

A mod that adds the ability to send messages or commands to the chat on behalf of the player directly from any programming language or console.

30 завантажень оновлено 3mo ago
остання v1.0-SNAPSHOT Modrinth
Fabric 1.21.8 – 1.21.8 LibraryManagementTechnology

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

Linux:

Версії

Alpha
1.0-SNAPSHOT
fabric · 1.21.8 · 3mo ago
only http chat
30

Коментарі 0

Поки немає коментарів. Будь першим, хто поділиться думкою.

Завантажити HttpChat Python chat, Linux chat

Файли надаються напряму з першоджерела. Modgrid не зберігає та не змінює їх.