Closed ProHyphonzDaCoder closed 3 years ago
You copied code from Charwee and your marking it as your own? what a scumbag you are bud
yes you are right! he copied the code!! jerkk!!
@Sauravlol the worst part is he has a damn licensing for a code which he did not even create and he says dont remove credits
You copied code from Charwee and your marking it as your own? what a scumbag you are bud
I got the code from a friend, and he told I could use it. I did not know it was someone else is. Sorry, I will give that person the credits. Can you send me the actual owner of the code?
You copied code from Charwee and your marking it as your own? what a scumbag you are bud
yes you are right! he copied the code!! jerkk!!
I got the code from a friend, and he told I could use it. I did not know it was someone else is. Sorry, I will give that person the credits. Can you send me the actual owner of the code?
The Actual Owner Of Your Code is here - https://www.youtube.com/watch?v=t0D-3fp3n1w
I guess I'm a little late to the party, but lets check if this is a copy:
if you check https://github.com/charweeeee/Mod-Mail/commits/master, the first commit was on March 11th (https://github.com/charweeeee/Mod-Mail/commit/b5fb30f93fb3cb9515cbdcd8ea8c6d314d8a00b6) while this repo's first commit was on March 9th (d9076d20e617645ef6e2a69402539907acf55eb5), BUT this doesn't auto declare that this is the original.
diff
Now let's compare the oldest commit of index.js
(https://github.com/FiredragonPlayz/Mod-Mail/blob/d9076d20e617645ef6e2a69402539907acf55eb5/index.js) to the current (https://github.com/FiredragonPlayz/Mod-Mail/blob/410c9b4e4c96220d68b81e6e97ce5da89f677645/index.js) using diff
(with syntax highlighting).
@@ -1,21 +1,11 @@
const discord = require("discord.js");
const client = new discord.Client()
const { token, prefix, ServerID } = require("./config.json")
-const { Collection, Client, Discord } = require('discord.js');
-const path = require('path')
-const fs = require('fs')
const config = require('./config.json');
-module.exports = client;
-client.commands = new Collection();
-client.prefix = config.prefix;
-client.aliases = new Collection();
-client.categories = fs.readdirSync(path.resolve('commands'));
-["command"].forEach(handler => {
- require(path.resolve(`handlers/${handler}`))(client);
-});
-client.on("ready", () => {
+client.on("ready", () => {
+ console.log("I am ready to get some DM's!")
client.user.setActivity("Watching My Dm's | Made By: FiredragonPlayz#0087")
})
@@ -41,12 +31,14 @@
client.on("message", async message => {
if (message.author.bot) return;
- let args = message.content.slice(prefix.length).split(' ');
+ const args = message.content.slice(prefix.length).trim().split(/ +/g);
let command = args.shift().toLowerCase();
if (message.guild) {
+
if (command == "setup") {
+ if (!message.content.startsWith(prefix)) return;
if (!message.member.hasPermission("ADMINISTRATOR")) {
return message.channel.send("You need Admin Permissions to setup the modmail system!")
}
@@ -88,8 +80,10 @@
return message.channel.send("Setup is Completed ✅")
} else if (command == "close") {
-
-
+ if (!message.content.startsWith(prefix)) return;
+ if (!message.member.roles.cache.find((x) => x.name == "Staff")) {
+ return message.channel.send("You need `Staff` role to use this command")
+ }
if (message.channel.parentID == message.guild.channels.cache.find((x) => x.name == "MODMAIL").id) {
const person = message.guild.members.cache.get(message.channel.name)
@@ -111,13 +105,14 @@
}
} else if (command == "open") {
+ if (!message.content.startsWith(prefix)) return;
const category = message.guild.channels.cache.find((x) => x.name == "MODMAIL")
if (!category) {
return message.channel.send("Moderation system is not setuped in this server, use " + prefix + "setup")
}
- if (!message.member.roles.cache.find((x) => x.name == "SUPPORTER")) {
+ if (!message.member.roles.cache.find((x) => x.name == "Staff")) {
return message.channel.send("You need `Staff` role to use this command")
}
@@ -145,7 +140,7 @@
.setDescription(message.content)
.addField("Name", target.user.username)
.addField("Account Creation Date", target.user.createdAt)
- .addField("Direct Contact", "Yes(it means this mail is opened by a supporter)");
+ .addField("Direct Contact", "Yes(it means this mail is opened by a Staff)");
channel.send(nembed)
@@ -153,7 +148,7 @@
.setAuthor("DIRECT MAIL OPENED")
.setColor("GREEN")
.setThumbnail(client.user.displayAvatarURL())
- .setDescription("You have been contacted by Supporter of **" + message.guild.name + "**, Please wait until he send another message to you!");
+ .setDescription("You have been contacted by Staff of **" + message.guild.name + "**, Please wait until he send another message to you!");
target.send(uembed);
@@ -164,12 +159,13 @@
return message.channel.send(newEmbed);
} else if (command == "help") {
+ if (!message.content.startsWith(prefix)) return;
let embed = new discord.MessageEmbed()
.setAuthor('MODMAIL BOT', client.user.displayAvatarURL())
.setURL('https://flamebot.gq')
.setColor("#FF0000")
- .setDescription("This bot is made by Purge, You cannot remove the credits.")
+ .setDescription("This bot is made by FiredragonPlayz") //Please Don't Remove Credits
.addField("$setup", "Setup the modmail system(This is not for multiple server.)", true)
.addField("$open", 'Let you open the mail to contact anyone with his ID', true)
@@ -207,20 +203,6 @@
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
if (!message.guild) {
const guild = await client.guilds.cache.get(ServerID) || await client.guilds.fetch(ServerID).catch(m => { })
if (!guild) return;
Okay, looks pretty much the same, but whos this Purge guy?
- .setDescription("This bot is made by Purge, You cannot remove the credits.")
+ .setDescription("This bot is made by FiredragonPlayz") //Please Don't Remove Credits
So then I went on GitHub search and found this: https://github.com/Purge0827/Mod-Mail-Bot from https://github.com/search?q=%22This+bot+is+made+by+Purge%2C+You+cannot+remove+the+credits.%22&type=code
Lets do another check using diff
(Comparing Purges to Fires latest index.js)
Before we do the diff, lets minify the files (https://minifycode.com/javascript-minifier/) and then beautify them again (https://beautifier.io/).
6,7c6,8
< } = require("./config.json") client.on("ready", () => {
< console.log("I am ready to receive and Send Mails :D") client.user.setActivity("Watching My Dm's :D")
---
> } = require("./config.json") const config = require('./config.json');
> client.on("ready", () => {
> console.log("I am ready to get some DM's!") client.user.setActivity("Watching My Dm's | Made By: FiredragonPlayz#0087")
11c12
< let yembed = new discord.MessageEmbed().setAuthor("MAIL DELETED", client.user.displayAvatarURL()).setColor('RED').setThumbnail(client.user.displayAvatarURL()).setDescription("Your mail is deleted by moderator and if you have ny problem with that than you can open mail again by sending message here.") return person.send(yembed)
---
> let yembed = new discord.MessageEmbed().setAuthor("MAIL DELETED", client.user.displayAvatarURL()).setColor('RED').setThumbnail(client.user.displayAvatarURL()).setDescription("Your mail is deleted by moderator and if you have any problem with that than you can open mail again by sending message here.") return person.send(yembed)
15c16
< let args = message.content.slice(prefix.length).split(' ');
---
> const args = message.content.slice(prefix.length).trim().split(/ +/g);
18a20
> if (!message.content.startsWith(prefix)) return;
25c27
< let role = message.guild.roles.cache.find((x) => x.name == "SUPPORTER") let everyone = message.guild.roles.cache.find((x) => x.name == "@everyone") if (!role) {
---
> let role = message.guild.roles.cache.find((x) => x.name == "Staff") let everyone = message.guild.roles.cache.find((x) => x.name == "@everyone") if (!role) {
28c30
< name: "SUPPORTER",
---
> name: "Staff",
35c37
< topic: "All the mail will be here :D",
---
> topic: "All the mail will be here",
43c45
< }) return message.channel.send("Setup is Completed :D")
---
> }) return message.channel.send("Setup is Completed ✅")
45a48,51
> if (!message.content.startsWith(prefix)) return;
> if (!message.member.roles.cache.find((x) => x.name == "Staff")) {
> return message.channel.send("You need `Staff` role to use this command")
> }
49c55
< } await message.channel.delete() let yembed = new discord.MessageEmbed().setAuthor("MAIL CLOSED", client.user.displayAvatarURL()).setColor("RED").setThumbnail(client.user.displayAvatarURL()).setFooter("Mail is closed by " + message.author.username) if (args[0]) yembed.setDescription(args.join(" ")) return person.send(yembed)
---
> } await message.channel.delete() let yembed = new discord.MessageEmbed().setAuthor("MAIL CLOSED", client.user.displayAvatarURL()).setColor("RED").setThumbnail(client.user.displayAvatarURL()).setFooter("Mail is closed by " + message.author.username) if (args[0]) yembed.setDescription(`Reason:${args.join(" ")}`) return person.send(yembed)
52a59
> if (!message.content.startsWith(prefix)) return;
56,57c63,64
< if (!message.member.roles.cache.find((x) => x.name == "SUPPORTER")) {
< return message.channel.send("You need supporter role to use this command")
---
> if (!message.member.roles.cache.find((x) => x.name == "Staff")) {
> return message.channel.send("You need `Staff` role to use this command")
73,74c80,81
< })).setDescription(message.content).addField("Name", target.user.username).addField("Account Creation Date", target.user.createdAt).addField("Direct Contact", "Yes(it means this mail is opened by a supporter)");
< channel.send(nembed) let uembed = new discord.MessageEmbed().setAuthor("DIRECT MAIL OPENED").setColor("GREEN").setThumbnail(client.user.displayAvatarURL()).setDescription("You have been contacted by Supporter of **" + message.guild.name + "**, Please wait until he send another message to you!");
---
> })).setDescription(message.content).addField("Name", target.user.username).addField("Account Creation Date", target.user.createdAt).addField("Direct Contact", "Yes(it means this mail is opened by a Staff)");
> channel.send(nembed) let uembed = new discord.MessageEmbed().setAuthor("DIRECT MAIL OPENED").setColor("GREEN").setThumbnail(client.user.displayAvatarURL()).setDescription("You have been contacted by Staff of **" + message.guild.name + "**, Please wait until he send another message to you!");
80c87,88
< let embed = new discord.MessageEmbed().setAuthor('MODMAIL BOT', client.user.displayAvatarURL()).setColor("GREEN").setDescription("This bot is made by Purge, You cannot remove the credits.").addField("/setup", "Setup the modmail system(This is not for multiple server.)", true).addField("/open", 'Let you open the mail to contact anyone with his ID', true).setThumbnail(client.user.displayAvatarURL()).addField("/close", "Close the mail in which you use this command.", true);
---
> if (!message.content.startsWith(prefix)) return;
> let embed = new discord.MessageEmbed().setAuthor('MODMAIL BOT', client.user.displayAvatarURL()).setURL('https://flamebot.gq').setColor("#FF0000").setDescription("This bot is made by FiredragonPlayz").addField("$setup", "Setup the modmail system(This is not for multiple server.)", true).addField("$open", 'Let you open the mail to contact anyone with his ID', true).setThumbnail(client.user.displayAvatarURL()).addField("$close", "Close the mail in which you use this command.", true);
86c94
< let member = message.guild.members.cache.get(message.channel.name) if (!member) return message.channel.send('Unable To Send Message') let lembed = new discord.MessageEmbed().setColor("GREEN").setFooter(message.author.username, message.author.displayAvatarURL({
---
> let member = message.guild.members.cache.get(message.channel.name) if (!member) return message.channel.send('Unable To Send Message') let lembed = new discord.MessageEmbed().setColor("GREEN").setAuthor(message.author.username, message.author.displayAvatarURL({
99c107
< }) let sembed = new discord.MessageEmbed().setAuthor("MAIN OPENED").setColor("GREEN").setThumbnail(client.user.displayAvatarURL()).setDescription("Conversation is now started, you will be contacted by supporters soon :D") message.author.send(sembed) let eembed = new discord.MessageEmbed().setAuthor("DETAILS", message.author.displayAvatarURL({
---
> }) let sembed = new discord.MessageEmbed().setAuthor("MAIL OPENED").setColor("GREEN").setThumbnail(client.user.displayAvatarURL()).setDescription("Conversation is now started, you will be contacted by staff soon") message.author.send(sembed) let eembed = new discord.MessageEmbed().setAuthor("DETAILS", message.author.displayAvatarURL({
103c111
< })).setDescription(message.content).addField("Name", message.author.username).addField("Account Creation Date", message.author.createdAt).addField("Direct Contact", "No(it means this mail is opened by person not a supporter)") return mx.send(eembed)
---
> })).setDescription(message.content).addField("Name", message.author.username).addField("Account Creation Date", message.author.createdAt).addField("Direct Contact", "No(it means this mail is opened by person not a staff)") return mx.send(eembed)
105c113
< let xembed = new discord.MessageEmbed().setColor("YELLOW").setFooter(message.author.tag, message.author.displayAvatarURL({
---
> let xembed = new discord.MessageEmbed().setColor("RED").setAuthor(message.author.tag, message.author.displayAvatarURL({
Everything looks pretty similar so after wasting 3 hours of my life, Purge should be the real owner (I guess??).
Now I'll go back into a cave now 👋 (@BiizoNinja summoned me if you were wondering)
You copied code from Charwee and your marking it as your own? what a scumbag you are bud