Git Product home page Git Product logo

backups-bot's Introduction

Backups Bot

๐ŸŒ€ Backups Bot using the discord-backup package!

Features

  • create-backup command
  • load-backup command
  • info-backup command

Create

This command allows you to create a backup of the current server (restricted to moderators)

create

Info

This command allows you to get information about the backup you created

info

Load

This command allows you to load a backup in the current server (restricted to administrators)

load

Install

  • Clone repository
git clone https://github.com/Androz2091/backups-bot
  • Fill configuration (config.json)

Head to https://discord.com/developers/applications and create an application to obtain your bot token.

{
    "token": "Your Discord Bot token",
    "prefix": "b!"
}
  • Install dependencies
npm install
  • Start
node index.js

backups-bot's People

Contributors

androz2091 avatar mal0004 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

backups-bot's Issues

Backup member roles

It would be nice to have an option to backup member roles and restore them also an option to fetch members instead of taking them from cache

Forums being backed up as voice channels

Forum channels and their posts are not backed up as expected, instead a voice channel is created with the forum's name.

Edit: Intended to leave this issue on the node library, not on the bot template. Closed this issue.

On load backup the bot crash

Traceback:
/root/backups-bot/node_modules/discord.js/src/rest/RequestHandler.js:154
throw new DiscordAPIError(request.path, data, request.method, res.status);
^

DiscordAPIError: Invalid Form Body
image: File cannot be larger than 256.0 kb.
at RequestHandler.execute (/root/backups-bot/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/root/backups-bot/node_modules/discord.js/src/rest/RequestHandler.js:39:14) {
method: 'post',
path: '/guilds/929385503273406464/emojis',
code: 50035,
httpStatus: 400
}

How to bypass this limit?

Cooldown

Could you add a cooldown and a backup list/user?

Doesnt work properly

got an issue that it doesnt create a backup nor the folder for it. im using it on a raspberry pi if that helps. heres the error I get:

files.forEach((file) => {
^

TypeError: Cannot read property 'forEach' of undefined
at /home/pi/Desktop/backup/index.js:11:11
at FSReqCallback.oncomplete (fs.js:171:23)

Having issues with TypeError: guild.iconURL is not a function

TypeError: guild.iconURL is not a function

TypeError: guild.iconURL is not a function
at /Users//Downloads/Eastide/node_modules/discord-backup/lib/index.js:147:44
at step (/Users//Downloads/Eastide/node_modules/discord-backup/lib/index.js:33:23)

could there be another way to bypass this?

Timely Backup

Is it possible to create backup every 24hours and delete the previous backup file automatically? @Androz2091

not a issue help needed

is there a way to set maximum number of message to backup could you please tell me that how can we do that

Backups save location

I am wondering where the backups will be saved. I figured out it should be in a json file or something, but I can't find the location.

More messages per channel

Hi! An option for how many messages per channel should be used would be great!
I'll try to modify it myself but I'm not good at this.

Also, curious about how many would be possible before things start going south.

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.