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.5.0b2.tar.gz (34.8 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.5.0b2-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

Details for the file weauth-1.5.0b2.tar.gz.

File metadata

  • Download URL: weauth-1.5.0b2.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for weauth-1.5.0b2.tar.gz
Algorithm Hash digest
SHA256 8c60f0b68cc0ebc5109c095861f3fe9caa9ceda3c084fd0fd0c7b2784e7e8512
MD5 396e6ad468d8ff7484519414fdf658a9
BLAKE2b-256 a900b59eab27c1991f5c15372e6b1d1200eef4f9dada02c801c05e34581dd846

See more details on using hashes here.

File details

Details for the file weauth-1.5.0b2-py3-none-any.whl.

File metadata

  • Download URL: weauth-1.5.0b2-py3-none-any.whl
  • Upload date:
  • Size: 41.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for weauth-1.5.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd90169f0a7aec62d8a9c2973e2ee38024daef448b2869e37e5c1e97a1a0a266
MD5 952b3c53e21e0835f916f429aceded35
BLAKE2b-256 98b90858cd8d01af869680538cb452a2f3c81e4e2fd8d30adfe9b459926540c5

See more details on using hashes here.

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