Giter Site home page Giter Site logo

joniexy / gtps-auto-backup-discord-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sadesxd/gtps-auto-backup-discord-bot

0.0 0.0 0.0 114 KB

This project will help you to backup your gtps server using discord bot and without going to vps

License: MIT License

JavaScript 97.70% Batchfile 2.30%

gtps-auto-backup-discord-bot's Introduction

GTPS Auto Backup Discord Bot

Credit

Description

This project will help you to backup your gtps server using discord bot

NOTE

Please set firewall 7119 TCP before using this GTPS Auto Backup Discord Bot

Package required

  • common-tags
  • cpu-stat
  • discord.js
  • fs
  • ms
  • moment
  • path
  • zip-folder

How to use

  • Go to your vps and install this project
  • Extract zip file from downloaded this project
  • Install Node.js: https://nodejs.org/en/download/
  • Setting app in config.json file
  • Go to Build folder and click install.bat file for install the requirement package
  • If you done installed, In Build folder click start.bat file for start the program

Config

Configuration in config.json file

  • delay: this config must be ends with "s", "m", "h", "d"

    • "s" for seconds, example usage: "1s" -> 1 second
    • "m" for minutes, example usage: "1m" -> 1 minute
    • "h" for hours, example usage: "1h" -> 1 hour
    • "d" for days, example usage: "1d" -> 1 day
{
  "prefix": "", // Your bot prefix command
  "token": "", // Your bot token
  "secret_channels": "", // Discord Channels id, Backup file will auto send into this channel
  "role_id": "", // role id (Discord server role) will you allow for using backup command (Owner role id is recomended)
  "user_id": "", // only this user can using "backup" command, this is optional you can ignore this (optional)
  "delay": "", // Delay every backup, Backup file will auto send every (this delay config), example usage: "1s", "1m", "1h","1d"
  "world_folder": "Path/to/world_folder/", // Path into your world folder
  "player_folder": "Path/to/player_folder", // Path into your player folder
  "gtps_folder": "Path/to/gtps_folder" // Path into your gtps folder
}

Notes

Updated

3 - July - 2021

  • Fixed backup zip file is not fully send
  • make some code more shortly/simple

9 - July - 2021

  • Fixed file is not send if backup size is more than 8 mb
  • Added http web server, useful for send a backup if size of backup is more than 8 mb
  • Added more code

26 - July - 2021

  • Fixed Unexpected token json error
  • Added new function for fix config.json if the user get an error when filling the config
  • Fixed delay can't set more than 2m
  • Remove cooldown when backup the server
  • Fixed private ip ( web can't be reached )
  • Added new method for set the players / worlds / gtps path folder
  • Make the code more simple
  • Now user can't set delay under than 5m
  • Big thanks to GucktubeYT#3123 for help us to fix the problem

gtps-auto-backup-discord-bot's People

Contributors

sadesxd avatar gucktubeyt avatar joniexy 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.