GithubHelp home page GithubHelp logo

naschorr / plane-pal Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 5.71 MB

PUBG plane tracking bot for Discord

License: MIT License

Python 99.78% Shell 0.22%
discord discord-bot pubg playerunknowns-battlegrounds

plane-pal's Introduction

Plane Pal

PUBG plane tracking bot for Discord

Activation

  • Go to this page on Discord's site.
  • Select the server that you want Plane Pal to be added into.
  • Hit the "Authorize" button.
  • Start plotting!

Usage

|<erangel|miramar> <Plane's Heading> <X Grid Marker><Y Grid Marker>[Grid Subsection]

Plane Pal get activated with the pipe: | character by default, and it can plot out the plane's path with either the erangel or e keywords if you want to plot the path on the original PUBG map, Erangel. Alternatively, you can plot the map on the newer desert map, Miramar with the miramar or m keywords.

To get the bot to plot the plane's trajectory, it needs two pieces of information:

  • The plane's current heading
  • The plane's current position (its grid markers)

The plane's heading just comes from looking forward while the plane is flying, and seeing what the compass at the top of the screen says.

The grid marker comes from the letters representing the plane's X and Y location on the map. For example, in Erangel, grid marker BK has the Georgopol bridge running through the middle of it, and marker EO has most of the military base inside it. Just make sure that the X marker comes before the Y marker when invoking Plane Pal.

You can also more accurately position the plane with the optional Grid Subsection argument, which just comes from further subdividing the plane's current grid into nine equal squares, each with an imaginary number that corresponds to the squares location. The numbers are oriented in the same way as a keyboard in that square one is at the bottom left corner, and square nine is at the top right corner. If you omit this, the bot will just assume that the plane travelled through the middle of the grid.

See the examples section below.

Examples

|erangel 90 ak1

erangel 90 ak1

|e 105 al7

erangel 105 al7

|erangel 355 ep

erangel 355 ep

|e 330 gp7

erangel 330 gp7

|e 275 hn

erangel 275 hn

|miramar 115 al

miramar 115 al

|m 175 ei1

miramar 175 ei1 175

|miramar 280 ho

miramar 280 ho

Colors

The colors seen on the maps represent common distances you can travel from the plane's path. Data was pulled from this post by Sarillexis. (I'd also recommend looking at this video by WackyJacky101 for a good parachuting overview.)

  • The white line shows the plane's path over the game's map.
  • The orange-ish area shows the distance that a player can travel by gliding as far as possible from the plane before they're forced to pull their parachute.
  • The yellow-ish area shows the distance that a player can travel by opening their parachute immediately and maintaining a 30 km/h vertical speed.

Installation (Windows)

If you want to customize the bot to suit your needs, you may want to install and run it locally. If you're on Linux, then you can probably figure out how to do this on your own. To do that:

  • Make sure you've got Python 3.5 or greater, and virtualenv installed (pip install virtualenv)
  • cd into the directory that you'd like the project to go
  • git clone https://github.com/naschorr/plane-pal
  • virtualenv plane-pal/
  • cd plane-pal
  • Activate your newly created virtualenv with: ./Scripts/activate
  • Install the required modules with: pip install -r requirements.txt
  • Create a Discord app, flag it as a bot, and put the bot token inside plane-pal/token.json
  • Register the Bot with your server. Go to: https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot&permissions=0, but make sure to replace CLIENT_ID with your bot's client id.
  • Select your server, and hit "Authorize"
  • Check out config.json for any configuration you might want to do. It's set up to work well out of the box, but you may want to change the colors, distances, or the pathing.

Notes

Tested and running on Windows 10, and Ubuntu 16.04. Currently hosted on my freebie EC2 instance, so I've got no idea what kind of demand that thing can handle.

If you run into issues during PyNaCl's installation on Linux when installing the requirements, you may need to run: apt install build-essential libffi-dev python3.5-dev to install some supplemental features for the setup process.

plane-pal's People

Contributors

naschorr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.