Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 29661e1

Browse files
committed
2.0.0
1 parent b689c6e commit 29661e1

File tree

144 files changed

+6268
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+6268
-0
lines changed

.env-sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TOKEN=PutYourTokenHere
2+
OWNERID=221838936866029568
3+

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
},
6+
extends: ["airbnb-base", "eslint:recommended"],
7+
parserOptions: {
8+
ecmaVersion: 12,
9+
sourceType: "module",
10+
},
11+
ignorePatterns: ["index.js"],
12+
rules: {
13+
semi: ["error", "always"],
14+
quotes: ["error", "double"],
15+
},
16+
};

.gitignore

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# TypeScript v1 declaration files
46+
typings/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Microbundle cache
58+
.rpt2_cache/
59+
.rts2_cache_cjs/
60+
.rts2_cache_es/
61+
.rts2_cache_umd/
62+
63+
# Optional REPL history
64+
.node_repl_history
65+
66+
# Output of 'npm pack'
67+
*.tgz
68+
69+
# Yarn Integrity file
70+
.yarn-integrity
71+
72+
# dotenv environment variables file
73+
.env
74+
.env.test
75+
76+
# parcel-bundler cache (https://parceljs.org/)
77+
.cache
78+
79+
# Next.js build output
80+
.next
81+
82+
# Nuxt.js build / generate output
83+
.nuxt
84+
dist
85+
86+
# Gatsby files
87+
.cache/
88+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
89+
# https://nextjs.org/blog/next-9-1#public-directory-support
90+
# public
91+
92+
# vuepress build output
93+
.vuepress/dist
94+
95+
# Serverless directories
96+
.serverless/
97+
98+
# FuseBox cache
99+
.fusebox/
100+
101+
# DynamoDB Local files
102+
.dynamodb/
103+
104+
# TernJS port file
105+
.tern-port
106+
botsettings.json
107+
botsettings.json
108+
109+
node_modules/
110+
111+
data/
112+
json.sqlite
113+
package-lock.json
114+
115+

.prettierrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": true,
4+
"semi": true,
5+
"singleQuote": false,
6+
"trailingComma": "es5",
7+
"bracketSpacing": true,
8+
"arrowParens": "avoid"
9+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Mashwishi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
worker: node shard.js

README.md

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
<div align="center">
2+
<a href="https://discord.com/api/oauth2/authorize?client_id=814580247973986314&permissions=259845516535&scope=bot"><img src="https://i.imgur.com/s4q1Wz3.png" width="15%"/></a>
3+
<h1><a href="https://discord.com/api/oauth2/authorize?client_id=814580247973986314&permissions=259845516535&scope=bot">Prune Bot </a></h1>
4+
5+
<h3>Version 2.0.0</h3>
6+
7+
<h4>Created by Mashwishi | Powered by <a href="https://discord.js.org/">Discord.js</a></h4>
8+
9+
<h6>Fellow Developers that guide me doing this from Discord Server Community of <a href="https://discord.gg/discord-api">Discord API</a>.
10+
<br>Special Thanks to our contributors and helper <a href="https://github.com/esfox">esfox</a>, <a href="https://github.com/itsjusttriz">itsjusttriz</a> and <a href="https://github.com/Hickacou">Hickacou</a>!</h6>
11+
12+
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/B0B14A4MU)
13+
14+
[![support][support-image]][support-invite]
15+
16+
[![Contributors][contributors-shield]][contributors-url]
17+
[![Forks][forks-shield]][forks-url]
18+
[![Stargazers][stars-shield]][stars-url]
19+
[![Issues][issues-shield]][issues-url]
20+
[![MIT License][license-shield]][license-url]
21+
<br>
22+
23+
</div>
24+
25+
---
26+
27+
<h2 align="center">What is this bot?</h2>
28+
29+
<strong><a href="https://discord.com/api/oauth2/authorize?client_id=814580247973986314&permissions=8&scope=bot">PruneBot</a></strong> is an easy to use multi-purpose bot and it has a free open source code to setup your own prune bot to your own server. Our goal is to cover as many functionalities as possible.
30+
31+
<strong><a href="https://discord.com/api/oauth2/authorize?client_id=816474139560378379&permissions=8&scope=bot">PruneBot (Development)</a></strong> is created for beta testing of the latest updates of PruneBot. This is also limited to 100 servers, This bot is not that stable and may contain bugs. There will be no support given to this version
32+
33+
---
34+
35+
### Bot Features:
36+
- :battery: 24/7 Full Uptime with high stability
37+
- :file_folder: Persistent Database based in `Enmap`
38+
- :cop: Powerful Moderation Commands
39+
- :smiley: Easy to use
40+
- ⚙ Per-Server Settings
41+
- :+1: Fast command responses
42+
- :tada: Giveaways Commands
43+
- :soccer: Slash Commands
44+
45+
### Important Note:
46+
- ⚠ | Embed links needed for bot embed messages
47+
- ⚠ | Admin Permission needed for Moderation commands
48+
49+
50+
---
51+
52+
<h2 align="center">Commands</h2>
53+
54+
### Featured Commands:
55+
56+
We have more than 80 commands in this bot, and they are **featured** and having 9 main categories
57+
58+
-**Basic:** `setprefix`, and more **coming soon**!
59+
- :lock: **Moderation:** `ban`, `kick`, `warn`, `mute`, `createchannel`, `createemoji`, and **9 more!**
60+
- :electric_plug: **Utility:** `weather`, `aes256`, `embed`, `enlarge`, and **4 more!**
61+
- :skull: **Pruning:** `urole`, `unorole`, `kole`, `knorole`, `fetch`
62+
- :file_folder: **Info:** `help`, `uptime`, `vote`, `channel`, `stats`, `whois`, and **5 more!**
63+
- :musical_note: **Music:** `play`, `loop`, `skip`, `stop`, `jumpto`, `volume`, and **4 more!**
64+
- :gift: **Giveaways:** `gstart`, `gend`, `greroll`
65+
- :stars: **Images:** `cat`, `changemymind`, `gay`, `trigger`, `circle`, and **7 more!**
66+
- :soccer: **Fun:** `8ball`, `reverse`, `snipe`, and **4 more!**
67+
68+
69+
## Issue/Suggestions
70+
71+
If met any issues, go [here](https://github.com/Mashwishi/PruneBot/issues) to report bug and create new issue for supporting
72+
73+
## Github Repository
74+
75+
PruneBot Made by Mashwishi, project [Here](https://github.com/Mashwishi/PruneBot)
76+
77+
<h2 align="center">Self-Hosting & Development</h2>
78+
79+
**We ask you to please not host your own instance of PruneBot.** Even though our license allows it, self-hosted instances of the bot have brought us a lot of headache in the past. If you're considering self-hosting, please [try the official instance of the bot first](https://github.com/mashwishi/PruneBot/#). If you have any concerns about the security of our instance, please contact us. We'd love to talk and answer any questions you have.
80+
81+
> If you're really really really going to self-host the bot, please [read our license](https://github.com/mashwishi/PruneBot/blob/master/LICENSE) first, and be aware that we don't provide any self-hosting support. **You'll be on your own.**
82+
83+
## Getting Started
84+
85+
This is how you will set-up your self-hosted Prune Bot.
86+
87+
88+
### Requirements
89+
90+
- Node.js v12.x or upper
91+
- Python (For Advanced Music feature)
92+
93+
### Installation
94+
1. Clone the repo
95+
```sh
96+
git clone https://github.com/mashwishi/prunebot.git
97+
```
98+
2. Install NPM packages
99+
```sh
100+
npm install
101+
```
102+
3. Create `.env` file to the same folder of the PruneBot then copy and fill this:
103+
```env
104+
TOKEN=<your bot token here>
105+
OWNERID=<your id here>
106+
```
107+
108+
### Reminders:
109+
110+
- If you are not using Discord Bot lists and top.gg, delete files from `handlers/dbl-loader.js` / `events/dbl/all-files` and removes all codes from index.js with `//`
111+
- If you are using Top.gg bot lists API, u need to delete `//` from commands lines from index.js
112+
- If you are not using .env supported hosters, please add code `require('dotenv').config()` to the top of the code from `index.js`, `shard.js` and other place are needed to use `process.env.(stuff)`
113+
114+
1. To get PruneBot ready to run locally, the first step is to clone this repository onto the machine you wish to run it on.
115+
2. **Node.js version 12 or newer is recommended to run PruneBot since we are using Discord.js v12**
116+
3. Use NPM to install the dependencies from the project folder: `npm install`
117+
4. Edit/create the file `.env` (or your hoster's provided environment secret) and insert your bot token in `TOKEN` value.
118+
5. Start the bot from the project folder: `node shard.js`
119+
6. Open `http://localhost:8080/` or your project URL to view the http output.
120+
121+
---
122+
123+
[support-invite]: https://discord.gg/WAh8eaF2Qq
124+
[support-image]: https://discordapp.com/api/guilds/779997243159216149/widget.png?style=banner2
125+
126+
[donate-link]: https://www.paypal.me/NCMC
127+
[donate-image]: https://i.imgur.com/R2SxfKG.png
128+
129+
<!-- MARKDOWN LINKS & IMAGES -->
130+
[contributors-shield]: https://img.shields.io/github/contributors/mashwishi/PruneBot.svg?style=for-the-badge
131+
[contributors-url]: https://github.com/mashwishi/PruneBot/graphs/contributors
132+
[forks-shield]: https://img.shields.io/github/forks/mashwishi/PruneBot.svg?style=for-the-badge
133+
[forks-url]: https://github.com/mashwishi/PruneBot/network/members
134+
[stars-shield]: https://img.shields.io/github/stars/mashwishi/PruneBot.svg?style=for-the-badge
135+
[stars-url]: https://github.com/mashwishi/PruneBot/stargazers
136+
[issues-shield]: https://img.shields.io/github/issues/mashwishi/PruneBot.svg?style=for-the-badge
137+
[issues-url]: https://github.com/mashwishi/PruneBot/issues
138+
[license-shield]: https://img.shields.io/github/license/mashwishi/PruneBot.svg?style=for-the-badge
139+
[license-url]: https://github.com/mashwishi/PruneBot/blob/master/LICENSE

SECURITY.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Supported |
9+
| ------- | ------------------ |
10+
| 5.1.x | :white_check_mark: |
11+
| 5.0.x | :x: |
12+
| 4.0.x | :white_check_mark: |
13+
| < 4.0 | :x: |
14+
15+
## Reporting a Vulnerability
16+
17+
Use this section to tell people how to report a vulnerability.
18+
19+
Tell them where to go, how often they can expect to get an update on a
20+
reported vulnerability, what to expect if the vulnerability is accepted or
21+
declined, etc.

0 commit comments

Comments
 (0)