-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
351 additions
and
2,326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
TOKEN= {Your Discord Token} | ||
TOPGG= {Your TOPGG Token} | ||
DLS= {Your DLS Token} | ||
OWNERID=221838936866029568 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
TOKEN=PutYourTokenHere | ||
OWNERID=221838936866029568 | ||
|
||
TOKEN= {Your Discord Token} | ||
TOPGG= {Your TOPGG Token} | ||
DLS= {Your DLS Token} | ||
OWNERID=221838936866029568 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
worker: node shard.js | ||
worker: npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
const Discord = require("discord.js"); | ||
const config = require("../../config/config.json"); | ||
|
||
module.exports.run = async (client, message, args) => { | ||
|
||
//User no permission | ||
const embed6 = new Discord.MessageEmbed() | ||
.setDescription( | ||
`${emojis.cross} ${message.author.username}, Missing Permission` | ||
) | ||
.setColor("RED"); | ||
if (!message.member.hasPermission("KICK_MEMBERS") || message.author.id === 221838936866029568) { | ||
return message.channel.send(embed6).then(m => m.delete({ timeout: 5000 })); | ||
} | ||
|
||
//Bot no permission | ||
const notice3 = new Discord.MessageEmbed() | ||
.setDescription(`${emojis.cross} I don't have permission to list people!`) | ||
.setColor("RED"); | ||
if (!message.guild.member(client.user).hasPermission("KICK_MEMBERS")) { | ||
return message.channel.send(notice3).then(m => m.delete({ timeout: 5000 })); | ||
} | ||
|
||
//List and Pruning | ||
let mentionedrole = message.mentions.roles.firstKey() | ||
const withoutPrefix = message.content.slice(config.prefix.length); | ||
const split = withoutPrefix.split(/ +/); | ||
const command = split[0]; | ||
const argss = split.slice(1); | ||
let id = argss[0]; | ||
|
||
//Didn't mention a role | ||
const notice2 = new Discord.MessageEmbed() | ||
.setDescription(`${message.author}, You didn't mention a role!`) | ||
.setColor("RED"); | ||
if (!args.length) return message.channel.send(notice2); | ||
|
||
//Didn't mention the exact role | ||
const embed7 = new Discord.MessageEmbed() | ||
.setTitle("Wrong Usage!") | ||
.setDescription("Correct Example: p!prune <role> <days>") | ||
.setColor("RED"); | ||
if (!id.startsWith('<@&') && id.endsWith('>')) { | ||
message.delete(); | ||
return message.channel.send(embed7).then(m => m.delete({ timeout: 5000 })); | ||
} | ||
|
||
|
||
|
||
|
||
}; | ||
module.exports.help = { | ||
name: "prune", | ||
description: "Pruning users in specific roles and days.", | ||
usage: "p!prune <role> <days>", | ||
accessableby: "ADMINISTRATOR", | ||
aliases: [], | ||
cooldown: 300 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.