Giter VIP home page Giter VIP logo

mc-tg-bot's Introduction

mc-tg-bot

Minecraft Server Status telegram bot.

Features

  • Get player count, online players, server version, and name
  • Get latency to server (ping from bot to server)

Startup

Rename .env.example to .env, replace values of BOT_TOKEN and USER_CHAT_ID to yours(If you are willing to use this bot in a group, you need to get your group chatid first).

Additionally, you can preset your MC server address as MC_SERVER_ADDRESS in .env file.(You can set the address later by calling /setting)

How to create a Telegram chatbot yourself?

Add Bot Father to your contact, use /newbot command to create your own bot. You will get your HTTP api token as BOT_TOKEN eventually.

20240101153019

How to get my own chatid?

  • Fastest way: Add Get My ID to your contact, use /start command and you will get your current chatid as your USER_CHAT_ID.

  • Conventional way: Visit Telegram Web, open Saved Messages chat window, the number behind web.telegram.org/a/# is your user chatid, sometimes it is a negative figure. (You can also appy this approach to get your group channel chatid, etc.)

Commands Preset

  • /start Welcome text
  • /help Show help text
  • /mc Show MC server status
  • /setting Set MC server address
  • /about Show information about the bot

mc-tg-bot's People

Contributors

flynncao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.