Coder Social home page Coder Social logo

nana's Introduction

NANA Logo

Image belongs to https://mystickermania.com/sticker-packs/minecraft/minecraft-guardian

AGPL v3 License

×| NANA |×

A Discord Bot for Easy SMP. Made 2 years ago, has some chaotic code for sure.

Acknowledgements

This project uses the Sentry BGC command handling approach. Thus, it may have some dead code. Not to mention, a lot of promises in commands/history.js.

Demo

Video_2023-11-05_02-05-48.mp4

How do I run this myself?

Firstly, you will need experience with NodeJS and Minecraft Servers. There's a lot of dependencies NANA relies on and while it's fairly easy to add them, the possible implications while having no idea what you're doing are MASSIVE.

For example, ServerTap introduces this very dangeorus possibility

img.png

The best way to mitigate this would be to disable ALL the endpoints NANA does not use.

This bot uses SFTP to connect to a server it assumes to be remote.

God forbid something goes horribly wrong, it could lead to a compromised server. I recommend creating a user with hardly any permissions besides what it needs. The use of SSH key authentication is highly recommended.

Ideally, the server should only be able to be accessed from a VPN like Tailscale as a Docker Container. You will have to do the work of dockerizing this Discord bot. https://hub.docker.com/r/tailscale/tailscale

Best of luck, as you'll likely need to modify some lines of code. https://github.com/theophilusx/ssh2-sftp-client

nana's People

Contributors

brycensranch avatar renovate[bot] avatar

Watchers

 avatar

nana's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • chore(deps): update dependency better-sqlite3 to v9.6.0

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yml
npm
package.json
  • axios ^1.6.0
  • bad-words ^3.0.4
  • better-sqlite3 ^9.0.0
  • colors ^1.4.0
  • common-tags ^1.8.2
  • discord.js ^14.13.0
  • figlet ^1.7.0
  • human-date ^1.4.0
  • js-yaml ^4.1.0
  • minecraft-lookup ^1.1.36
  • minecraft-server-properties ^1.0.0
  • moment ^2.29.4
  • mysql2 ^3.6.3
  • parse-numeric-range ^1.3.0
  • paste.gg ^1.0.5
  • qs ^6.11.2
  • reflect-metadata ^0.2.0
  • ssh2-sftp-client ^10.0.0
  • string-similarity ^4.0.4
  • typeorm ^0.3.17

  • Check this box to trigger a request for Renovate to run again on this repository

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.