Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

EarthMC-Toolkit/EarthMC-Stats

Repository files navigation

EarthMC Stats

Discord Static Badge

EarthMC Stats provides useful commands and info relating to players, towns, nations, alliances and more. This bot relies heavily on the purpose-made NPM Library which handles the parsing and caching of map data automatically.

Warning

  • This repo is meant for viewing and attribution, hosting it yourself will NOT work.

Note

  • Duplicate code is slowly being phased out in favour of helper classes found in the common folder.
  • To reduce reads/writes, an in-memory cache is used alongside Firestore - no PR's should edit this.

Features

Reliable

✅ A persistent DB is used, allowing EMCS to be used seamlessly when EarthMC goes down.
✅ Quick responses via an in-memory cache and fast HTTP client thanks to Undici.

Maintainable

✅ Written in TypeScript for type-safety and intellisense.
✅ Uses modern ESM format which provides a nicer syntax and better module compatibility.
DiscordJS commands and events have their own files for clarity and scalability.

The legal stu- 😴..

This project has the CC-BY-NC-SA 4.0 license.

You are free to:

  • Copy and redistribute the material in any medium or format.
  • Remix, transform, and build upon the material.

Under the following terms:

Attribution
You must give appropriate credit, provide a link to the license, and indicate if changes were made.
You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

NonCommercial
You may not use the material for commercial purposes.

ShareAlike
If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.

Sponsor this project

  •  

Contributors 3

  •  
  •  
  •