Skip to main content

A python tool to managing your whitelist through WeChat.

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.3.6.tar.gz (26.5 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.3.6-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for weauth-1.3.6.tar.gz
Algorithm Hash digest
SHA256 0158d75ec7fcc6c04422ab78928d4f27ebde5005724266a8568f65c3130524ad
MD5 1b6197c997d01fed5e0a251f2bd1e520
BLAKE2b-256 e45e34112a9566e21104de114abc44e9c57498d50b919fb7d1063387c71cf039

See more details on using hashes here.

Provenance

The following attestation bundles were made for weauth-1.3.6.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.3.6-py3-none-any.whl.

File metadata

  • Download URL: weauth-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 34.1 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.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9c9740095a78d890712ddfea1b2c80c4b7b88ddcfb4badd5725e207ca67a0855
MD5 f3e6be5e12fb269cdcf114e66c0e06a1
BLAKE2b-256 eccd4dfd27a3979e02e75f7f8ba64ff346beec92830620113bf0e1fed6fcedbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for weauth-1.3.6-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