Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.15 KB

README.md

File metadata and controls

51 lines (37 loc) · 1.15 KB

PhoenixBot

Nodejs & Typescript Wrapper

Developed by 0xPierre

Getting Started

The purpose of this example is to show you an implementation of the Phoenix API using NodeJS and Typescript.

Prerequisites

You must have Nodejs installed on your computer.

Installation

  1. Clone the repo

    git clone https://github.com/PierreCrb/PhoenixAPI-Nodejs-Typescript/tree/main
  2. Install NPM packages

    npm install
  3. Enter your Phoenix port in config.json

    {
       "port": 11111,
       "host": "127.0.0.1"
    }

Usage

  1. Start API

       npm start
  2. And you should see in the console all the messages received with this format:

    {
       [17:21:17] [RECV] stat 16258 16108 4152 7589 0 1458
       [17:23:26] [SEND] walk 15 15 1 12
    }