Skip to main content

A python tool to managing your whitelist through WeChat. 使用微信公众号来管理MC服务器与注册白名单。

Project description

WeAuth

WeAuth is a bridge between WeChat Official Accounts and your Minecraft server.

Requirement

Requires python >= 3.8

pip3 install -r requirements.txt

Your Minecraft server should've been installed with MCManager. WeAuth uses the api of MCManager to connect with game server.

Later on, WeAuth will support Rcon to connect Minecraft server.

Installation

pip3 install weauth

Quick start

mkdir WeAuth
cd WeAuth
weauth

config.yaml and ops.yaml will be generated after first-time running.

vi config.yaml

You can configure your WeChatDeveloper information and game server in config.yaml.

vi ops.yaml

You should also fill in the IDs of In-Game admins in ops.yaml. For example:

ops: [Zi_min, Pink_fish, jsdkj2m999]

After configuration, run WeAuth again.

WeChat Command

Add an ID into Whitelist

#ID
#Zi_min
#bjwefbjw

Send a Command

@command
@tell @a hello,world
@give @a minecraft:torch 1

Only those whose ID in ops.yaml can use this function.

Homepage

For more guide and 中文介绍.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weauth-1.6.0.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weauth-1.6.0-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file weauth-1.6.0.tar.gz.

File metadata

  • Download URL: weauth-1.6.0.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for weauth-1.6.0.tar.gz
Algorithm Hash digest
SHA256 74234889ce3083a22de0aeb635fe263f9cc1f1d8333a1eeda67e6af83a22aaa5
MD5 ebe68db22693244fcb4c04176316db46
BLAKE2b-256 1630b4d1e13d590faeca91a552aee964cd1c3c1b0b4fba150cf28bd2c5a2d9e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for weauth-1.6.0.tar.gz:

Publisher: python-publish.yml on TomatoCraftMC/WeAuth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file weauth-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: weauth-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for weauth-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72761a40f80981ca770f2860de7af4220cfb6735a9dd238d012a46abaf1c7355
MD5 1a315012a92d8da62d4c237b0f338e81
BLAKE2b-256 448638300d7e7768c3b6509cb99d44b9a7fd497f7d00f3410c7fe9bafb13d942

See more details on using hashes here.

Provenance

The following attestation bundles were made for weauth-1.6.0-py3-none-any.whl:

Publisher: python-publish.yml on TomatoCraftMC/WeAuth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page