# discord-bot-updater

> Communicates to github to download a bot's source code.

Latest version **1.0.7** (published 2020-04-07) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install discord-bot-updater
pnpm add discord-bot-updater
yarn add discord-bot-updater
bun add discord-bot-updater
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2020-04-07 |
| First published | 2020-03-11 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 41.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | xTeal |
| Maintainers | xteal |
| Keywords | Discord, Updater, Github |

## Links

- npm: https://www.npmjs.com/package/discord-bot-updater
- Repository: https://github.com/NoNoTeal/discord-bot-updater
- Homepage: https://github.com/NoNoTeal/discord-bot-updater#readme
- Issues: https://github.com/NoNoTeal/discord-bot-updater/issues
- npm.io page: https://npm.io/package/discord-bot-updater

## Dependencies (2)

- [adm-zip](https://npm.io/package/adm-zip.md) ^0.4.14
- [node-merge-fix](https://npm.io/package/node-merge-fix.md) ^1.2.0

## Recent versions

- 1.0.7 (latest) — 2020-04-07
- 1.0.6 — 2020-04-07
- 1.0.4 — 2020-03-15
- 1.0.3 — 2020-03-13
- 1.0.2 — 2020-03-12
- 1.0.1 — 2020-03-12
- 1.0.0 — 2020-03-11

## README

# discord-bot-updater

## Usage

```js
var dbu = require('discord-bot-updater');
var doPrereleases = true; //default = true
var doOverwrite = true; //default = true
var posFromLatest = 0; //default = 0 can override doPrereleases if changed
var filter = []; //default = []
dbu.downloadRelease('username', 'reponame', doPrereleases, doOverwrite, posFromLatest, filter = [])
```
## Installation

```
npm i discord-bot-updater
```

## Warnings

Any existing files will be overwritten by the newer release, not merged. (MAY CAUSE CORRUPTION?)

## Changelog

### 1.0.0

Inital release (do not use)

### 1.0.1

Fixed a breaking bug.

### 1.0.2

Removed a line a code

### 1.0.3

Returns an array instead of a boolean, fixes posFromLatest so if it is modified, it will override doPrereleases.

### 1.0.4

Fixes filter bug

### 1.0.5

Connect repo to Github.
Export version-check as well

### 1.0.6

Implement a feature from node-merge-fix so when you overwrite a folder, files can be deleted.
Add some touchups to exported functions.

### 1.0.7

fixed 2 function

---
_Source: https://npm.io/package/discord-bot-updater · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
