1.0.4 • Published 3 years ago

gg-con-old-outdated v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

griefergames

A high-level package for easily creating bots for the Minecraft network GrieferGames.net.

Built upon mineflayer.

Disclaimer: You could get banned by using the bot.

Features

  • Supports Promises/Async-Await
  • Expressive API (type definitions)
  • Easily connect on every "CityBuild" server using a single method
  • Optimized chat queue - adapts to chat mode and other factors
  • Session caching and refreshing
  • Fake money filtering
  • Useful events - react to private messages, money transfers etc.
  • Make use of the complete feature set of Mineflayer - this package only adds functionality

Installation

npm install https://github.com/Neocraftr/griefergames-bot.git

Quick Start

Importing the package:

const gg = require('griefergames');

// or (using destructuring)
const { createBot } = require('griefergames');

// or (using ES6 import)
import { createBot } from 'griefergames';

Creating a bot:

const bot = createBot({
  // Authentication with Mojang account
  username: 'email@example.com',
  password: 'password',
  // or MCLeaks.net
  mcLeaksToken: 'token',
  
  logMessages: true
});

// This is async (returns a promise)
// We will ignore that for demonstration purposes.
bot.init();

bot.on('ready', () => {
  // You should wait for the 'ready' event
  // for most actions.
  console.log('Bot is now ready for use!');

  // For example, now would be a good time
  // to connect on our chosen "CityBuild" server.
  bot
    .connectCityBuild('cb2')
    .then(() => {
      console.log('Connected on CityBuild 2!');
      // Do things on the server...
    })
    .catch(e => {
      console.error(e);
    });
});

Support

You will probably have some questions at some point of using this package.

The type definitions give away most of the functionality of the package. You can check these manually, or, if you are using an IDE with code suggestion functionality, such as IntelliSense, it will also list all available methods for you. If you end up stuck though, don't hesitate to open a new issue directly on GitHub!

License

MIT

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago