GithubHelp home page GithubHelp logo

japneet5233 / dankrpg-aoi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snoozeds/dankrpg-aoi

0.0 0.0 0.0 651 KB

A discord Economy & RPG bot using AOI.JS.

Home Page: https://dankrpg.xyz

License: MIT License

JavaScript 100.00%

dankrpg-aoi's Introduction

DankRPG has now been written in Discord.JS, visible here. There is no guarantee this repository will still work, as it will no longer be updated. It is kept public for historical purposes.

Forewarning: Always download the latest version from "Releases".
The main branch will be unstable.

The Guide

Please note that this project mainly for people who want to see the code of DankRPG, and learn from it. I have provided this guide for the people that wish to self host DankRPG, but you will most likely encounter errors. You will have to edit some of the code yourself.

If you wish to continue:

Hosting DankRPG | Step 1: Picking the correct host

There are multiple providers out there, with some even offering free credit. Choose what suits you best.
You could also use an online IDE, like replit. Though these will usually not allow root access.
Just make sure the one you choose supports:

  • Linux (I recommend Ubuntu/Debian distros. I will be mentioning Ubuntu commands below.)
  • 24/7 hosting
  • (optional) pay as you go.

Hosting DankRPG | Step 2: Connecting to your host

You should skip this step when using an online IDE.

For Linux users (your personal machine), I recommend EasySSH + FileZilla or Termius for accessing the server.
For Windows users (your personal machine), I recommend Bitvise or Termius.

To use these applications, they will usually ask for a couple of things:

  • The host/address: This is the ipv4 address provided by your hosting provider.
  • The username: Usually "root" on linux servers.
  • The password: Set by yourself through your hosting provider.
  • The port: Usually "22", but check with your hosting provider.

Hosting DankRPG | Step 3: Downloading dependencies on your host

Assuming you are using Ubuntu, run the following commands:

Installing Nodejs v18 (normal apt version is outdated):
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs

Installing npm (if you do not have it included with Nodejs):
sudo apt install npm

-- Here you want to upload the bot's files to a new folder.

mkdir folder_name (upload files here through your chosen program)
cd folder_name
npm init
npm install [email protected]
npm install pm2 -g
pm2 start index.js

Alternatively: run node index.js to see any errors occuring (this will not host the bot 24/7!)

Extra pm2 commands:

pm2 restart index.js - restarts the file
pm2 stop index.js - stops the file
pm2 ls - lists all processes running

dankrpg-aoi's People

Contributors

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