Skip to content

minecraft bot system that logs chat and user activity to elasticsearch and provides a fastapi api for querying stats

Notifications You must be signed in to change notification settings

dorochadev/minespy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minespy

minespy is a tool that runs minecraft bots to collect and log chat messages and player activity into elasticsearch. it also provides a fastapi-based http api to query users, servers, messages, and activity data.

features

  • minecraft bots that automatically join servers and log chat
  • elasticsearch storage for messages, activity, and user stats
  • fastapi http api to explore data

requirements

  • python 3.9+
  • node.js (for mineflayer bots)
  • elasticsearch 8.x

installation

clone the repo and install dependencies:

git clone https://github.com/dorocha/minespy.git
cd minespy
pip install -r requirements.txt

install node dependencies:

npm install mineflayer

running the bots

start the bots defined in main.py:

python3 main.py

running the api

launch the api server with uvicorn:

uvicorn api.api:app --reload --port 5000

then open http://localhost:5000/docs to see available endpoints.

notes

  • configure servers to monitor inside main.py
  • elasticsearch must be running on http://localhost:9200

About

minecraft bot system that logs chat and user activity to elasticsearch and provides a fastapi api for querying stats

Topics

Resources

Stars

Watchers

Forks

Languages