GithubHelp home page GithubHelp logo

jystro / minecraft-info-bot Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 15.0 2.78 MB

Discord bot which provides info about Minecraft players and servers

License: MIT License

TypeScript 96.22% Dockerfile 3.78%
minecraft discord-bot discord discord-js discordjs bot mojang

minecraft-info-bot's Introduction

Minecraft info bot

Discord Download

This project is not releated to Mojang and respects it's guidelines. Minecraft is a trademark of Mojang Synergies AB.

Minecraft info is a Discord bot written 100% in TypeScript

Please note: information like the bot's token has been removed. Start the program for the first time to generate a .env file and insert your token in it or set the DISCORD_TOKEN variable in your environment

Commands

help

Displays this page

Usage: !help


install

Sends the link to the installation paragraph of this file

Usage: !install


ping

Returns the response time between when the command is received and when the answer is sent

Usage: !ping


player

Displays player's name, uuid, skin, cape

Note: Name history is no longer supported as Mojang have removed it from their API

Usage: !player <uuid/name>


repo

Sends the link to this repository

Usage: !repo


server

Gives information about the specified minecraft server

Usage: !server <ip address>


uuid

Displays the uuid associated with the specified player name

Usage: !uuid <name>


version

Returns the bot's version

Usage: !version



Installation

You can download the bot files locally and host it on your own using Node or add the already hosted bot

Git and Node

These steps are the same for both git and downloading a .zip archive

  1. Download the repository using git with git clone https://github.com/Jystro/Minecraft-info-bot or by downloading a zip file and unzipping it
  2. Open a terminal in the directory of the package.json file
  3. Run the command npm install to download the necessary packages
  4. Run npm start afterwards to start the bot. The first time the bot will generate some files and shut down
  5. Follow the instructions and set the env variable DISCORD_TOKEN to your token or write it in the .env file. You can get a token here
  6. Restart the bot once the token is set to login to Discord

Docker

If you have Docker installed on your machine, clone the repository and build the image from Dockerfile. Docker-compose.yml example is also available

Otherwise,

Remember to set the DISCORD_TOKEN and DISCORD_CLIENTID environmental variables and to create a volume for presistent data. You can find the Client_id by activating developer settings in Discord and right clicking the bot's profile -> Copy User Id

If you need help with the bot, join the Discord server

Contributing

If you wish to contribute to this repository please fork it

Acknowledgments

minecraft-info-bot's People

Contributors

dependabot[bot] avatar jystro avatar tranquillyunpleasant avatar yichifauzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

minecraft-info-bot's Issues

dist is missing

Hi so my internet blocks the npm registry site so i need to install packages from github
But i wanted to install minecraft server util and the dist in missing
Can yall gimme a link to dist or do something?
Thx ✔

Negative ping

Sometimes the ping command gives a negative value. This is a known issue and will be addressed in v2.2.0

Question

Is possible just use player name expect from using uuid?

suggestion

could add sever icon to server command?

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.