Skip to content

Nexus-Scripture/Old-School-RuneScape

Repository files navigation

Old School RuneScape Bot

Says "repo not found" due to repo being private. Make repo public to fix this

GitHub Contributors Issues GitHub pull requests Node.js CI

Bot was made for Iron Valor Discord Server as a commission. If you want your own custom Discord Bot, contact me via

BOT READY FOR PRODUCTION

Have a bug?

Submit an Issue and tell me what's wrong.

Things to note before cloning

This codebase is uses discord.js, sqlite3, .env, and a few other packages. If you experience a problem with a package, don't blame me.

How to get working:

  1. Do npm install to install all dependencies from package.json.
  2. Navigate to the model folder (cd model/) and do node model.js file to create a database.
  3. Fill out .env.
  4. Run Bot.
    1. Local Machine: Use Run and Debug menu. Do NOT just do node bot.js, it wont break, you'll just look dumb.
    2. Server Machine: Install pm2 (npm install pm2 -g) and do pm2 start bot.js --name "name of bot". This will auto restart the bot if a critical error occurs and allows you to remotely monitor your bot on the PM2 website.

Optional if running on a Server:

  • View Database remotely:
    1. Install python. If you're on a server, good luck. If you're on a local machine, install python.

    2. Open a command line.

    3. Do pip install sqlite-web.

    4. Navigate to your db directory and do sqlite_web your-database-file.db (You can also do sqlite_web --port 8080 your-database-file.db to choose what port it appears on. Default is 8080).

    5. The line sqlite_web running at http://0.0.0.0:8080/ should appear.

    6. Open another command line.

    7. ssh into that port - ssh -L 8000:localhost:8080 user@your-server-ip.

    8. Open a browser or new tab.

    9. Go to http://localhost:8000 to view your database remotely.

    10. From there, you can modify the data within your database.

About

Commissioned Discord Bot

Resources

Stars

Watchers

Forks

Packages

No packages published