Code Monkey home page Code Monkey logo

chaoscraft-server's Introduction

ChaosCraft Server:

This manages the brains behind the ChaosCraft Bots. If your not familiar with ChaosCraft check us out on YouTube

Note:

At the moment you can install ChaosCraft Bot and run it locally or on a server of your own with out needing to install the ChaosCraft Server. They automatically point at our servers. Understand that the ChaosCraft Server is NOT the same as running a MineCraft server. Feel free to run your own MineCraft Server as well.

Install:

Step 1:

Install Git https://git-scm.com/downloads

Step 2:

Install NodeJS https://nodejs.org/en/

Step 3:

Clone down the code from GitHub

git clone [email protected]:schematical/chaoscraft-server.git

Step 4:

Run npm install

Step 5:

Build it

npm build

Step 7:

Set your ChaosCraft Bots config to point at your sever implementation. The full scope of how to do this is a bit much but if you know how to setup web servers you should be able to figure it out.

Setup your configurations, you will need to setup your own MongoDB setup and Redis. We are using the npm config package. You can see my information in the ./config directory. The format is as follows:

Redis:

    ...
    redis:{
        chaoscraft: {
            port: 6379,
            host:  'YOUR_REDIS_HOST',
            prefix: 'chaoscraft:'
        }
    },
    ...

Mongo:

    ...
    mongo:{
        chaoscraft: {
            url: 'mongodb://YOUR_MONGO_URI',
            user: 'YOUR_USERNAME',
            pass: 'YOUR_PASSWORD'
        }

    },
    ...

Step 8:

Start it

npm start

Step 9:

API:

NOTE: This is not complete and moves quickly. Just look in the ./routes directory.

GET /bots:

List off bots that are marked as alive

GET /bots/:bot:

Gives you details on a specific bot

GET /bots/:bot/brain:

Returns the bots Neural Network

GET /bots/active:

Returns a list of bots that are currently active(online).

GET /bots/:bot/active:

Lets you know if a specific bot is online.

GET /bots/:bot/inventory

Returns information on a specific bots inventory

GET /bots/:bot/position

Returns information on a specific bots position

GET /bots/:bot/stats

Returns information on a specific bots stats

GET /stats

Returns leaderboard information

chaoscraft-server's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

chaoscraft-server's Issues

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.