Giter VIP home page Giter VIP logo

rdmopole2's Introduction

Node.js CI Lint

GitHub Release GitHub Contributors Discord

RDMopole2

Installation

  1. Clone repository git clone https://github.com/versx/RDMopole2
  2. Install dependencies npm run update
  3. Copy config cp src/configs/config.example.json src/configs/config.json
  4. Create a Discord bot at https://discord.com/developers and enter the botToken, clientId, and clientSecret in your config.json
  5. Fill out config vi src/configs/config.json
  6. Create or copy your existing geofences to the geofences folder. One geofence per file, the following is the expected format:
    [City Name]
    0,0
    1,1
    2,2
    3,3
  7. Run npm start
  8. Access via http://machineip:port/ login using your Discord account

Updating

  1. git pull
  2. Run npm run update in root folder
  3. Run npm start

Notes

If you want to host your images locally where RDM-opole2 resides, change your pokemon and eggs image urls to something like the following:
Pokemon Id is always 3 digits i.e 007, 047, 147 although form will be whatever the form number is i.e 12, 195, 4032 etc

"images": {
    "pokemon": "https://mygod.github.io/pokicons/v2",
    "eggs": "../img/eggs/%s.png"
},

PM2 (recommended)

Once everything is setup and running appropriately, you can add this to PM2 ecosystem.config.js file so it is automatically started:

module.exports = {
  apps : [
  {
    name: 'RDM-opole2',
    script: 'index.js',
    cwd: '/home/username/RDM-opole2/src/',
    instances: 1,
    autorestart: true,
    watch: false,
    max_memory_restart: '1G',
    out_file: 'NULL'
  }
  ]
};

rdmopole2's People

Contributors

anna-28 avatar clburlison avatar dependabot[bot] avatar mygod avatar nhumber avatar turtiesocks avatar versx avatar

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.