Skip to content

A minecraft chat bot for anarchy servers (similar to mooomooo)

License

Notifications You must be signed in to change notification settings

VeryBigSad/unnamedBot

Repository files navigation

GitHub Readme Stats

UnnamedBot

A MooMoo copy to create custom commands via a Minecraft account.

Tests Passing GitHub Contributors Issues

Info

Unnamedbot is a copy/recreation of the popular 2b2t account moomoo, it allows you to create commands on any server the account joins!

Features

  • Built in commands like playtime, report, firstmessage, qoute, lastseen, and more to come
  • Customizable prefix
  • (WOW) CREATE YOUR OWN COMMANDS WITH ZERO CODE! Use commands.json to add your own custom commands, like !discord or !bestgroup, read How to make commands to setup.
  • Discord integration coming soon™

Setup

Easy!

  1. Install Node JS and npm on your system (link)
  2. Download this repository, open the folder that it contains, open the terminal there.
  3. Run npm install

Configuring

To configure go to config.json Things to change:

prefix - what to use as a command prefix in in-game chat, like ! or ?.

commandInterval - How often can this bot send text messages in chat.

discord_bot_private_key - Your discord bot token for discord integration (coming soon™)

spammer - Stuff to manage your spammer.

  1. min_spam_wait - minimal time between messages (in minutes).
  2. max_spam_wait - maximal time between messages (in minutes).
  3. messages - list of messages that will be spammed by the bot.

Running

To run the bot use this command: [] = optional <> = required

node bot.js [-microsoft (If is a migrated account)] <ip (ip of the server)> <port (port of the server, 25565 by default)> <username (minecraft username. Email if microsoft account)> <password (Account Password)>

Running on Linux VM on session quit. (Advanced)

If you would like to run the bot on a Linux Server and be able to logout of the session you can use the Node Package "forever"

To install it run sudo npm i forever -g

Then to start the bot run forever start bot.js [-microsoft (If is a migrated account)] <ip (ip of the server)> <port (port of the server, 25565 by default)> <username (minecraft username. Email if microsoft account)> <password (Account Password)>

Sadly to stop the bot you must restart your entire server as the Daemon does not close properly

Creating Custom Commands

First go to commands.json, there is info in that file on how to create commands.

Does it collect my data?

No, Unanmedbot will login to the minecraft account specified via the enviroment variables and then discard the login details. As of writing this Mineflayer does not store your data.

Built With

  • Mineflayer - Node.JS package to connect to Minecaft servers.
  • Discord.js - The most common Discord Bot building frame work used by many bots.

Contributing

Making pull requests is cool, and you should do it if you think that you have something to add! (Feel free to add your name under "Other Contributors" if you helped out!

Authors

  • Sanyss/VeryBigSad - Initial work & maintaining
  • NoWillToLife - Inspiration

Other Contributors

  • Rodney_RWR - Code Clean-Up & Updating README

License

You can do whatever you want but adding us as contributors would be nice of you :)