├── Alive
└── kingman.js
├── LICENSE
├── README.md
├── command
├── CopyPaster
│ ├── Add-user.js
│ ├── Report-a-Guild.js
│ ├── Report-a-user.js
│ ├── add-server.js
│ ├── remove-server.js
│ ├── remove-user.js
│ ├── server-info.js
│ ├── server-list.js
│ ├── user-info.js
│ └── users-list.js
└── devloper
│ ├── devlopers.js
│ └── help.js
├── events
└── MeCodes
│ ├── mongodb.js
│ └── status.js
├── index.js
├── me-mongomodals
└── CopyPasters
│ ├── Guild.js
│ ├── User.js
│ ├── reportbl.js
│ └── reprt.js
├── mecodes-congig.json
├── mehandlerconfig
├── command.js
└── events.js
└── package.json
/Alive/kingman.js:
--------------------------------------------------------------------------------
1 | const express = require('express');
2 | const server = express();
3 | server.all('/', (req, res)=>{
4 | res.send('bot is alive!')
5 | })
6 | function kingman(){
7 | server.listen(3000, ()=>{
8 | console.log(`
9 | _______________________________
10 |
11 | ✅ .===> Host is Ready
12 | _______________________________
13 | `)
14 | });
15 | }
16 | module.exports = kingman;
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 KMKINGMAN
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.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
KINGMAN DEV
2 |
3 |
4 |
5 | KINGMAN AntiCopyPaster Bot
6 | It is a bot that sends reports about people stealing their Codes rights And they say they are programmers etc.
7 | The bot was created in a short period of time, not exceeding five hours, and it works with the fastest database system, MongoDB
8 | How to use
9 |
10 |
11 | * Go to mecodes-congig.json File and put thes info
12 |
13 |
14 | ```json
15 | {
16 | "____Bot__Config___": "____Prefix____Report__Channel____",
17 | "prefix": "BOT_PREFIX",
18 | "rech": "REPORTS CHANNELS",
19 | "server": "REPORTS SERVER ID"
20 | }
21 | ```
22 | * Create a filename .evn and put this info
23 |
24 |
25 | ```env
26 | ME_TOKEN = Bot Token
27 | ME_MONGO = mongodb data url
28 | ```
29 |
30 |
31 | * Run the bot via `node index.js`
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/command/CopyPaster/Add-user.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const discord = require("discord.js");
34 | const me = require('../../mecodes-congig.json');
35 | const devs = me.divs
36 | const usermodal = require('../../me-mongomodals/CopyPasters/User')
37 | module.exports = {
38 | name: "adduser",
39 | category: "copypaster",
40 | description: "لاضافة كوبي بيستر للقائمة",
41 | run: async (client, kmsg, args, PREFIX) => {
42 | let filter = (m) => m.author.id === kmsg.author.id;
43 |
44 | let userid = kmsg.channel.send(`
45 | > **Please Insert The UserID**
46 | `).then( async msg1 => {
47 | kmsg.channel.awaitMessages(filter, {
48 | max: 1,
49 | time: 90000,
50 | errors: ["time"]
51 | }).then(uid => {
52 | uid.first().delete();
53 | userid = uid.first().content;
54 | let discrip;
55 | msg1.edit(`
56 | > **Please Write the Describtion Of Proplem**
57 | `).then(async msg2 => {
58 | kmsg.channel.awaitMessages(filter, {
59 | max: 1,
60 | time: 90000,
61 | errors: ["time"]
62 | }).then(des => {
63 | des.first().delete()
64 | discrip = des.first().content;
65 | let ocode;
66 | msg2.edit(`
67 | > ** Plese Send Original Codes / project Link [Uploade Project on some Host Like Top4Top] **
68 | `).then(async msg3 =>{
69 | kmsg.channel.awaitMessages(filter, {
70 | max: 1,
71 | time: 90000,
72 | errors: ["time"]
73 | }).then(ocodes =>{
74 | ocodes.first().delete();
75 | ocode = ocodes.first().content;
76 | let cpcode;
77 | msg3.edit(`
78 | > **Plese Send CopyPaser Codes / project Link [Uploade Project on some Host Like Top4Top] **
79 | `).then(async msg4 =>{
80 | kmsg.channel.awaitMessages(filter, {
81 | max: 1,
82 | time: 90000,
83 | errors: ["time"]
84 | }).then(cpcodes => {
85 | cpcodes.first().delete();
86 | cpcode = cpcodes.first().content;
87 | msg4.edit(`
88 | > **Reaction [✅] if you Conferm send a codes and [❌] to cansle **
89 | `).then(async s => {
90 | s.react('✅')
91 | s.react('❌')
92 | let re = (react, user) => react.emoji.name === "✅" && user.id === kmsg.author.id;
93 | let re2 = (react, user) => react.emoji.name === "❌" && user.id === kmsg.author.id;
94 | let rec = s.createReactionCollector(re, {time: 0});
95 |
96 | rec.on("collect", async c =>{
97 | s.edit(`
98 | > ** Done I sent a Report**
99 | `)
100 | .then( async r =>{
101 | r.delete({ timeout: 5000 })
102 | })
103 | let data = await usermodal.create({
104 | userID: userid,
105 | des : discrip,
106 | ocode: ocode,
107 | cpcode : cpcode,
108 | reprteduser : kmsg.author.id,
109 | })
110 | data.save().catch(e => console.log(e))
111 | })
112 | })
113 |
114 | s.delete({ timeout: 10000 }).catch(e =>{
115 | console.log(' ')
116 | })
117 |
118 | })
119 | })
120 | } )
121 |
122 | })
123 | })
124 | })
125 | })
126 | })
127 | }
128 | }
129 |
--------------------------------------------------------------------------------
/command/CopyPaster/Report-a-Guild.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const discord = require("discord.js");
34 | const me = require('../../mecodes-congig.json');
35 | const devs = me.divs
36 | const umodal = require('../../me-mongomodals/CopyPasters/reprt')
37 | module.exports = {
38 | name: "guildreport",
39 | category: "copypaster",
40 | description: "للابلاغ عن سيرفر كوبي بيستر",
41 | run: async (client, kmsg, args, PREFIX) => {
42 | let filter = (m) => m.author.id === kmsg.author.id;
43 | let ch = client.guilds.cache.get(me.server).channels.cache.get(me.rech);
44 | let userid = kmsg.channel.send(`
45 | > **GuildID**
46 | `).then( async msg1 => {
47 | kmsg.channel.awaitMessages(filter, {
48 | max: 1,
49 | time: 90000,
50 | errors: ["time"]
51 | }).then(uid => {
52 | uid.first().delete();
53 | userid = uid.first().content;
54 | let gownerid;
55 | msg1.edit('GuildOwnerID').then(async msg9 => {
56 | kmsg.channel.awaitMessages(filter, {
57 | max: 1,
58 | time: 90000,
59 | errors: ["time"]
60 | }).then(async gown => {
61 | gown.first().delete()
62 | gownerid = gown.first().content;
63 | let guildname;
64 | msg9.edit(`
65 | > **Please Write Guild Name**
66 | `).then(async msg98 => {
67 | kmsg.channel.awaitMessages(filter, {
68 | max: 1,
69 | time: 90000,
70 | errors: ["time"]
71 | }).then(async gname => {
72 | gname.first().delete()
73 | guildname = gname.first().content;
74 | let discrip;
75 | msg98.edit(`
76 | > **Please Write the Describtion Of Proplem**
77 | `).then(async msg2 => {
78 | kmsg.channel.awaitMessages(filter, {
79 | max: 1,
80 | time: 90000,
81 | errors: ["time"]
82 | }).then(async des => {
83 | des.first().delete()
84 | discrip = des.first().content;
85 | let ocode;
86 | msg2.edit(`
87 | > ** Plese Send Original Codes / project Link [Uploade Project on some Host Like Top4Top] **
88 | `).then(async msg3 =>{
89 | kmsg.channel.awaitMessages(filter, {
90 | max: 1,
91 | time: 90000,
92 | errors: ["time"]
93 | }).then(ocodes =>{
94 | ocodes.first().delete();
95 | ocode = ocodes.first().content;
96 | let cpcode;
97 | msg3.edit(`
98 | > **Plese Send CopyPaser Codes / project Link [Uploade Project on some Host Like Top4Top] **
99 | `).then(async msg4 =>{
100 | kmsg.channel.awaitMessages(filter, {
101 | max: 1,
102 | time: 90000,
103 | errors: ["time"]
104 | }).then(cpcodes => {
105 | cpcodes.first().delete();
106 | cpcode = cpcodes.first().content;
107 | msg4.edit(`
108 | > **Reaction [✅] if you Conferm send a codes and [❌] to cansle **
109 | `).then(async s => {
110 | s.react('✅')
111 | s.react('❌')
112 | let re = (react, user) => react.emoji.name === "✅" && user.id === kmsg.author.id;
113 | let re2 = (react, user) => react.emoji.name === "❌" && user.id === kmsg.author.id;
114 | let rec = s.createReactionCollector(re, {time: 0});
115 | let re2c = s.createReactionCollector(re2, {time: 0});
116 | rec.on("collect", async c =>{
117 | s.edit(`
118 | > ** Done I sent a Report**
119 | `)
120 | .then( async r =>{
121 | r.delete({ timeout: 5000 })
122 | })
123 | let data = await umodal.create({
124 | guild: userid,
125 | gowner : gownerid,
126 | ocode: ocode,
127 | cpcode : cpcode,
128 | rtype : "guild",
129 | userID : kmsg.author.id,
130 | des : discrip,
131 | guildname: guildname
132 | })
133 | data.save().catch(e => console.log(e))
134 | ch.send(`
135 | > **ServerID : ${userid}**
136 | > **ServerOwnerID: ${gownerid}**
137 | > **ServerName : ${guildname}**
138 | > **discription : ${discrip}**
139 | > **original codes : ${ocode}**
140 | > **CopyPaser Code : ${cpcode}**
141 | > **Reporter : ${kmsg.author.id}**
142 | > **report type : guild **
143 | `).then(m =>{
144 | m.react('✅')
145 | m.react('❌')
146 | })
147 | })
148 | })
149 | re2c.on('collect', c=>{
150 | s.edit(`
151 | > **Done Cancel **
152 | `).then(r =>{
153 | r.delete({ timeout: 5000 })
154 | })
155 | })
156 | s.delete({ timeout: 10000 }).catch(e =>{
157 | console.log(' ')
158 | })
159 | })
160 | })
161 |
162 | })
163 | })
164 | } )
165 |
166 | })
167 | })
168 | })
169 | })
170 | })
171 | })
172 | })
173 | }
174 | }
175 |
--------------------------------------------------------------------------------
/command/CopyPaster/Report-a-user.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 |
34 | const umodal = require('../../me-mongomodals/CopyPasters/reprt')
35 | const discord = require("discord.js");
36 | const me = require('../../mecodes-congig.json');
37 | module.exports = {
38 | name: "userreport",
39 | category: "copypaster",
40 | description: "للابلاغ عن شخص كوبي بيستر",
41 | run: async (client, kmsg, args) => {
42 | let filter = (m) => m.author.id === kmsg.author.id;
43 | let ch = client.guilds.cache.get(me.server).channels.cache.get(me.rech);
44 | let userid = kmsg.channel.send(`
45 | > **USER ID **
46 | `).then( async msg1 => {
47 | kmsg.channel.awaitMessages(filter, {
48 | max: 1,
49 | time: 90000,
50 | errors: ["time"]
51 | }).then(uid => {
52 | uid.first().delete();
53 | userid = uid.first().content;
54 | let discrip;
55 | msg1.edit(`
56 | > **Please Write the Describtion Of Proplem**
57 | `).then(async msg2 => {
58 | kmsg.channel.awaitMessages(filter, {
59 | max: 1,
60 | time: 90000,
61 | errors: ["time"]
62 | }).then(des => {
63 | des.first().delete()
64 | discrip = des.first().content;
65 | let ocode;
66 | msg2.edit(`
67 | > ** Plese Send Original Codes / project Link [Uploade Project on some Host Like Top4Top] **
68 | `).then(async msg3 =>{
69 | kmsg.channel.awaitMessages(filter, {
70 | max: 1,
71 | time: 90000,
72 | errors: ["time"]
73 | }).then(ocodes =>{
74 | ocodes.first().delete();
75 | ocode = ocodes.first().content;
76 | let cpcode;
77 | msg3.edit(`
78 | > **Plese Send CopyPaser Codes / project Link [Uploade Project on some Host Like Top4Top] **
79 | `).then(async msg4 =>{
80 | kmsg.channel.awaitMessages(filter, {
81 | max: 1,
82 | time: 90000,
83 | errors: ["time"]
84 | }).then(cpcodes => {
85 | cpcodes.first().delete();
86 | cpcode = cpcodes.first().content;
87 | msg4.edit(`
88 | > **Reaction [✅] if you Conferm send a codes and [❌] to cansle **
89 | `).then(async s => {
90 | s.react('✅')
91 | s.react('❌')
92 | let re = (react, user) => react.emoji.name === "✅" && user.id === kmsg.author.id;
93 | let re2 = (react, user) => react.emoji.name === "❌" && user.id === kmsg.author.id;
94 | let rec = s.createReactionCollector(re, {time: 0});
95 | let re2c = s.createReactionCollector(re2, {time: 0});
96 | rec.on("collect", async c =>{
97 | s.edit(`
98 | > ** Done I sent a Report**
99 | `)
100 | .then( async r =>{
101 | r.delete({ timeout: 5000 })
102 | })
103 | let data = await umodal.create({
104 | userID: kmsg.author.id,
105 | des : discrip,
106 | ocode: ocode,
107 | cpcode : cpcode,
108 | reporttype : "user",
109 | target : userid
110 | })
111 | data.save().catch(e => console.log(e))
112 | ch.send(`
113 | > **target : ${userid}**
114 | > **discription : ${discrip}**
115 | > **original codes : ${ocode}**
116 | > **CopyPaser Code : ${cpcode}**
117 | > **Reporter : ${kmsg.author.id}**
118 | > **report type : user **
119 | `).then(m =>{
120 | m.react('✅')
121 | m.react('❌')
122 | })
123 | })
124 | })
125 | re2c.on('collect', c=>{
126 | s.edit(`
127 | > **Done Cancel**
128 | `).then(r =>{
129 | r.delete({ timeout: 5000 })
130 | })
131 | })
132 | s.delete({ timeout: 10000 }).catch(e =>{
133 | console.log(' ')
134 | })
135 |
136 | })
137 | })
138 | } )
139 |
140 | })
141 | })
142 | })
143 | })
144 | })
145 | }
146 | }
147 |
--------------------------------------------------------------------------------
/command/CopyPaster/add-server.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const discord = require("discord.js");
34 | const me = require('../../mecodes-congig.json');
35 | const guilmodal = require('../../me-mongomodals/CopyPasters/Guild')
36 | const devs = me.divs
37 | module.exports = {
38 | name: "addserver",
39 | category: "copypaster",
40 | description: "لاضافة سيرفر كوبي بيستر",
41 | run: async (client, kmsg, args, PREFIX) => {
42 | let filter = (m) => m.author.id === kmsg.author.id;
43 | let userid = kmsg.channel.send(`
44 | > ***Please Insert The GuildID**
45 | `).then( async msg1 => {
46 | kmsg.channel.awaitMessages(filter, {
47 | max: 1,
48 | time: 90000,
49 | errors: ["time"]
50 | }).then(uid => {
51 | uid.first().delete();
52 | userid = uid.first().content;
53 | let gownerid;
54 | msg1.edit('*Please Insert The Guild Owner ID').then(async msg9 => {
55 | kmsg.channel.awaitMessages(filter, {
56 | max: 1,
57 | time: 90000,
58 | errors: ["time"]
59 | }).then(async gown => {
60 | gown.first().delete()
61 | gownerid = gown.first().content;
62 | let guildname;
63 | msg9.edit(`
64 | > ***Please Insert The Guild Name**
65 | `).then(async msg98 => {
66 | kmsg.channel.awaitMessages(filter, {
67 | max: 1,
68 | time: 90000,
69 | errors: ["time"]
70 | }).then(async gname => {
71 | gname.first().delete()
72 | guildname = gname.first().content;
73 | let discrip;
74 | msg98.edit(`
75 | > **Please Write the Describtion Of Proplem**
76 | `).then(async msg2 => {
77 | kmsg.channel.awaitMessages(filter, {
78 | max: 1,
79 | time: 90000,
80 | errors: ["time"]
81 | }).then(async des => {
82 | des.first().delete()
83 | discrip = des.first().content;
84 | let ocode;
85 | msg2.edit(`
86 | > ** Plese Send Original Codes / project Link [Uploade Project on some Host Like Top4Top] **
87 | `).then(async msg3 =>{
88 | kmsg.channel.awaitMessages(filter, {
89 | max: 1,
90 | time: 90000,
91 | errors: ["time"]
92 | }).then(ocodes =>{
93 | ocodes.first().delete();
94 | ocode = ocodes.first().content;
95 | let reporter;
96 | msg3.edit(`
97 | > **ReporterUserID **
98 | `).then(async msg66 =>{
99 | kmsg.channel.awaitMessages(filter, {
100 | max: 1,
101 | time: 90000,
102 | errors: ["time"]
103 | }).then(repor =>{
104 | repor.first().delete();
105 | reporter = repor.first().content;
106 | let cpcode;
107 | msg66.edit(`
108 | > **Plese Send CopyPaser Codes / project Link [Uploade Project on some Host Like Top4Top] **
109 | `)
110 | .then(async msg4 =>{
111 | kmsg.channel.awaitMessages(filter, {
112 | max: 1,
113 | time: 90000,
114 | errors: ["time"]
115 | }).then(cpcodes => {
116 | cpcodes.first().delete();
117 | cpcode = cpcodes.first().content;
118 | msg4.edit(`
119 | > **Reaction [✅] if you Conferm send a codes and [❌] to cansle **
120 | `).then(async s => {
121 | s.react('✅')
122 | s.react('❌')
123 | let re = (react, user) => react.emoji.name === "✅" && user.id === kmsg.author.id;
124 | let re2 = (react, user) => react.emoji.name === "❌" && user.id === kmsg.author.id;
125 | let rec = s.createReactionCollector(re, {time: 0});
126 | let re2c = s.createReactionCollector(re2, {time: 0});
127 | rec.on("collect", async c =>{
128 | s.edit(`
129 | > ** Done I sent a Report**
130 | `)
131 | .then( async r =>{
132 | r.delete({ timeout: 5000 })
133 | })
134 | let data = await guilmodal.create({
135 | guildID: userid,
136 | ownerID : gownerid,
137 | ocode: ocode,
138 | cpcode : cpcode,
139 | reprteduser : reporter,
140 | userID : kmsg.author.id,
141 | des : discrip,
142 | guildname: guildname
143 | })
144 | data.save().catch(e => console.log(e))
145 | })
146 | })
147 | re2c.on('collect', c=>{
148 | s.edit(`
149 | > **Done Cancel Share Code **
150 | `).then(r =>{
151 | r.delete({ timeout: 5000 })
152 | })
153 | })
154 | s.delete({ timeout: 10000 }).catch(e =>{
155 | console.log(' ')
156 | })
157 | })
158 | })
159 | })
160 | })
161 |
162 | })
163 | })
164 | } )
165 |
166 | })
167 | })
168 | })
169 | })
170 | })
171 | })
172 | })
173 | }
174 | }
175 |
--------------------------------------------------------------------------------
/command/CopyPaster/remove-server.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const guilmodal = require('../../me-mongomodals/CopyPasters/Guild')
34 | const discord = require("discord.js");
35 | const me = require('../../mecodes-congig.json');
36 | const devs = me.divs
37 | module.exports = {
38 | name: "removeserver",
39 | category: "copypaster",
40 | description: "لازالة سيرفر كوبيبيستر من القائمة",
41 | run: async (client, kmsg, args, PREFIX) => {
42 | if(!args[0]) return kmsg.reply(`**Please Insert ServerID**`);
43 | let data = await guilmodal.findOneAndDelete({guildID: args[0]})
44 | if(!data) return kmsg.reply(`**This is not CopyPaster Server**`);
45 | kmsg.channel.send(`**Deleted Server From OurDatabase **`)
46 |
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/command/CopyPaster/remove-user.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const discord = require("discord.js");
34 | const me = require('../../mecodes-congig.json');
35 | const devs = me.divs
36 | const umodal = require('../../me-mongomodals/CopyPasters/User')
37 | module.exports = {
38 | name: "removeuser",
39 | category: "copypaster",
40 | description: "لازالة كوبي بيستر من القائمة",
41 | run: async (client, kmsg, args, PREFIX) => {
42 | if(!args[0]) return kmsg.reply(`**Please Insert UserID**`);
43 | let data = await umodal.findOneAndDelete({userID: args[0]})
44 | if(!data) return kmsg.reply(`**This User is not CopyPaster**`);
45 | kmsg.channel.send(`**Deleted User From DataBase**`)
46 |
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/command/CopyPaster/server-info.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const discord = require("discord.js");
34 | const me = require('../../mecodes-congig.json');
35 | const guilmodal = require('../../me-mongomodals/CopyPasters/Guild')
36 | const devs = me.divs
37 | module.exports = {
38 | name: "server-info",
39 | category: "copypaster",
40 | description: "لعرض معلومات و ادله عن سيرفر الكوبي بيسترز",
41 | run: async (client, kmsg, args, PREFIX) => {
42 | if(!args[0]) return msg.reply('**Please Insert Server ID**')
43 | let data = await guilmodal.findOne({guildID: args[0]})
44 | if(!data) return kmsg.reply('**This is not copypaster Server**')
45 | kmsg.channel.send(`
46 | > **Server Name ${data.guildname}**
47 | > **ServerID: ${data.guildID}**
48 | > **Server OwnerID: ${data.ownerID}**
49 | > **Discriptin : ${data.des} **
50 | > **OriginalCode : ${data.ocode} **
51 | > **FakeCodes : ${data.cpcode} **
52 | > **Reporter User : ${data.reprteduser}**
53 | `)
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/command/CopyPaster/server-list.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const me = require('../../mecodes-congig.json');
34 | const discord = require("discord.js");
35 | const guilmodal = require('../../me-mongomodals/CopyPasters/Guild')
36 | module.exports = {
37 | name: "serverlist",
38 | category: "copypaster",
39 | description: "لعرض قائمة السيرفرات الكوبي بيستر",
40 | run: async (client, kmsg, args, PREFIX) => {
41 | let users = []
42 | let data = await guilmodal.find({});
43 | data.forEach(async (mecodes) => {
44 | users.push(`${mecodes.guildID} - ${mecodes.guildname}`)
45 | })
46 | try{
47 | let embed = new discord.MessageEmbed()
48 | .setTitle("**Copy Paster Guilds**")
49 | .setAuthor(kmsg.author.tag, kmsg.author.displayAvatarURL({ dynamic: true }))
50 | .setFooter(kmsg.guild.name, kmsg.guild.iconURL())
51 | .setThumbnail(kmsg.guild.iconURL())
52 | .addField('**Copy Paster Servers**', `${users.join(`\n`)}`)
53 | .setColor("GREEN")
54 | kmsg.channel.send({ embed: embed })
55 | } catch(e){
56 | kmsg.reply(`**No Servers Yet!!**`);
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/command/CopyPaster/user-info.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const discord = require("discord.js");
34 | const me = require('../../mecodes-congig.json');
35 | const usermodal = require('../../me-mongomodals/CopyPasters/User')
36 | const devs = me.divs
37 | module.exports = {
38 | name: "user-info",
39 | category: "copypaster",
40 | description: "لعرض معلومات عن الكوبي بيستر",
41 | run: async (client, kmsg, args, PREFIX) => {
42 | if(!args[0]) return kmsg.reply('**Please Insert User ID**')
43 | let data = await usermodal.findOne({userID: args[0]})
44 | if(!data) return kmsg.reply('**This youser is not copypaster**')
45 | kmsg.channel.send(`
46 | > **User ID: ${data.userID}**
47 | > **Discriptin : ${data.des} **
48 | > **OriginalCode : ${data.ocode} **
49 | > **FakeCodes : ${data.cpcode} **
50 | > **Reporter User : ${data.reprteduser}**
51 | `)
52 |
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/command/CopyPaster/users-list.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const me = require('../../mecodes-congig.json');
34 | const discord = require("discord.js");
35 | const umodal = require('../../me-mongomodals/CopyPasters/User')
36 | module.exports = {
37 | name: "userslist",
38 | category: "copypaster",
39 | description: "لعرض قائمة الاشخاص الكوبي بيستر",
40 | run: async (client, kmsg, args, PREFIX) => {
41 | let users = []
42 | let data = await umodal.find({});
43 | data.forEach(async (kingmandev) => {
44 | users.push(`<@!${kingmandev.userID}>`)
45 | })
46 | try {
47 | let embed = new discord.MessageEmbed()
48 | .setTitle("**Copy Paster Users**")
49 | .setAuthor(kmsg.author.tag, kmsg.author.displayAvatarURL({ dynamic: true }))
50 | .setFooter(kmsg.guild.name, kmsg.guild.iconURL())
51 | .setThumbnail(kmsg.guild.iconURL())
52 | .addField('**Copy Paster Users**', `${users.join("/n")}`)
53 | .setColor("GREEN")
54 | kmsg.channel.send({ embed: embed })
55 |
56 | } catch(e){
57 | kmsg.reply(`**No Users Yet!!**`)
58 |
59 | }
60 |
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/command/devloper/devlopers.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const discord = require("discord.js");
34 | const me = require('../../mecodes-congig.json');
35 | const usermodal = require('../../me-mongomodals/CopyPasters/User')
36 | const devs = me.divs
37 | module.exports = {
38 | name: "devlopers",
39 | category: "MeCodes",
40 | description: "معلومات التواصل مع مطور البوت",
41 | run: async (client, kmsg, args, PREFIX) => {
42 | kmsg.channel.send(`
43 | > ** Devloper Name : [KINGMAN] **
44 | > ** Devloper Github : [https://github.com/KMKINGMAN] **
45 | > ** Devloper Phone Number : [+962792914245] **
46 | > ** Support Discord Server : [ https://discord.gg/2wJqGg3KY8 ] **
47 | `)
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/command/devloper/help.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const {MessageEmbed} = require("discord.js");
34 | const me = require('../../mecodes-congig.json');
35 | const usermodal = require('../../me-mongomodals/CopyPasters/User')
36 | const devs = me.divs
37 | module.exports = {
38 | name: "help",
39 | category: "kingman dev",
40 | description: "لعرض قائمة الاوامر",
41 | run: async (client, kmsg, args, PREFIX) => {
42 | let commands = kmsg.client.commands.array();
43 | let EMBED = new MessageEmbed()
44 | .setTitle(`KINGMANDEV`)
45 | .setDescription(`**بوت فضح الكوبي بيستر الاول بالديسكورد**`)
46 | .setColor("GOLD");
47 | commands.forEach((cmd) => {
48 | EMBED.addField(
49 | `**${PREFIX}${cmd.name} ${cmd.aliases ? `(${cmd.aliases})` : ""}**`,
50 | `${cmd.description}`,
51 | true
52 | );
53 | });
54 | kmsg.channel.send(EMBED)
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/events/MeCodes/mongodb.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const mongoose = require('mongoose');
34 | const discord = require("discord.js");
35 | const MONGO_DDB = process.env.ME_MONGO
36 | module.exports = {
37 | name: 'ready',
38 | async execute(client) {
39 | mongoose.connect(MONGO_DDB, {useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false}).then(console.log(`
40 | _______________________________
41 |
42 | ✅ ==> Mongo-DB Connection is OK
43 | _______________________________
44 | `));
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/events/MeCodes/status.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const figlet = require('figlet');
34 | module.exports = {
35 | name: 'ready',
36 | async execute(client) {
37 | figlet('KINGMAN', function(err, data) {
38 | if (err) {
39 | console.log('Something went wrong...');
40 | console.dir(err);
41 | return;
42 | }
43 | console.log(data)
44 | });
45 | client.user.setPresence({
46 | status: 'online',
47 | activity:{
48 | name:'KINGMAN ANTICOPYPASTER SYSTEM',
49 | type:'STREAMING',
50 | url: 'https://www.twitch.tv/kingman4hack'
51 | }
52 | })
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | ***********************
3 | * Created by KINGMAN
4 | ***********************
5 | * KINGMANDEV Owner :)
6 | ───────█████████████████████
7 | ────████▀─────────────────▀████
8 | ──███▀───────────────────────▀███
9 | ─██▀───────────────────────────▀██
10 | █▀───────────────────────────────▀█
11 | █─────────────────────────────────█
12 | █─────────────────────────────────█
13 | █─────────────────────────────────█
14 | █───█████─────────────────█████───█
15 | █──██▓▓▓███─────────────███▓▓▓██──█
16 | █──██▓▓▓▓▓██───────────██▓▓▓▓▓██──█
17 | █──██▓▓▓▓▓▓██─────────██▓▓▓▓▓▓██──█
18 | █▄──████▓▓▓▓██───────██▓▓▓▓████──▄█
19 | ▀█▄───▀███▓▓▓██─────██▓▓▓███▀───▄█▀
20 | ──█▄────▀█████▀─────▀█████▀────▄█
21 | ─▄██───────────▄█─█▄───────────██▄
22 | ─███───────────██─██───────────███
23 | ─███───────────────────────────███
24 | ──▀██──██▀██──█──█──█──██▀██──██▀
25 | ───▀████▀─██──█──█──█──██─▀████▀
26 | ────▀██▀──██──█──█──█──██──▀██▀
27 | ──────────██──█──█──█──██
28 | ──────────██──█──█──█──██
29 | ──────────██──█──█──█──██
30 | ──────────██──█──█──█──██
31 | ──────────██──█──█──█──██
32 | ──────────██──█──█──█──██
33 | ──────────██──█──█──█──██
34 | ──────────██──█──█──█──██
35 | ──────────██──█──█──█──██
36 | ──────────██──█──█──█──██
37 | ──────────██──█──█──█──██
38 | ──────────██──█──█──█──██
39 | ───────────█▄▄█▄▄█▄▄█▄▄█
40 |
41 | */
42 | const Discord = require("discord.js");
43 | const discord = require("discord.js");
44 | const kingman = require('./Alive/kingman');
45 | kingman();
46 | const { MessageEmbed , Collection , Client } = require("discord.js");
47 | const client = new Client()
48 | client.commands = new discord.Collection();
49 | client.eventss = new discord.Collection();
50 | client.aliases = new discord.Collection();
51 | const fs = require('fs');
52 | const invites = {};
53 | const colors = require("colors");
54 | /**
55 | * TOKEN/PREFIX/CONFIG-FILE
56 | */
57 | const TOKEN_BOT = process.env['ME_TOKEN']
58 | const MONGO_DDB = process.env['ME_MONGO']
59 | const config = require('./mecodes-congig.json');
60 | const PREFIX = config.prefix
61 |
62 | /* ON ERROR */
63 | client.on("error", console.error);
64 | /**
65 | * COMMANDS HANDLER SETUP
66 | * EVENTS HANDLER SETUP
67 | */
68 | ["command", "events"].forEach(p => {
69 | require(`./mehandlerconfig/${p}`)(client);
70 | });
71 | /*
72 | COMMAND HANDLER SETUP CODES
73 | */
74 | client.on('message', kmsg => {
75 | const pmention = new RegExp(`^<@!?${client.user.id}>( |)$`);
76 | if (kmsg.content.match(pmention)) {
77 | return kmsg.reply(`**MY PREFIX IS: ${PREFIX}**`)
78 | }
79 | if (kmsg.author.bot) return;
80 | if (!kmsg.guild) {
81 | return kmsg.reply("**ONLY WORK ON SERVERS NOT DM**")
82 | }
83 | let prefix = PREFIX;
84 | const args1 = kmsg.content.slice(prefix.length).split(/ +/);
85 | if (!kmsg.content.startsWith(PREFIX)) return;
86 | const args = kmsg.content
87 | .slice(PREFIX.length)
88 | .trim()
89 | .split(/ +/g);
90 | const kmcommand = args.shift().toLowerCase();
91 | if (kmcommand.length === 0) return;
92 | let kmcode = client.commands.get(kmcommand);
93 | if (!kmcode) kmcode = client.commands.get(client.aliases.get(kmcommand));
94 | if (kmcode) kmcode.run(client, kmsg, args, PREFIX , prefix);
95 | });
96 |
97 |
98 | client.login(TOKEN_BOT)
99 |
--------------------------------------------------------------------------------
/me-mongomodals/CopyPasters/Guild.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const { Schema, model } = require('mongoose');
34 | const copypasterguild = Schema({
35 | guildID: {
36 | type: String,
37 | required: true
38 | },
39 | ownerID: {
40 | type: String,
41 | },
42 | des:{
43 | type: String,
44 | },
45 | ocode:{
46 | type: String,
47 | },
48 | cpcode:{
49 | type: String,
50 | },
51 | reprteduser:{
52 | type: String,
53 | },
54 | guildname : {
55 | type: String,
56 | }
57 |
58 | });
59 | module.exports = model('copypasterguilds', copypasterguild);
60 |
--------------------------------------------------------------------------------
/me-mongomodals/CopyPasters/User.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const { Schema, model } = require('mongoose');
34 | const copypasterusers = Schema({
35 | userID: {
36 | type: String,
37 | required: true
38 | },
39 | des : {
40 | type: String,
41 | default: "",
42 | },
43 | ocode:{
44 | type: String,
45 | },
46 | cpcode:{
47 | type: String,
48 | },
49 | reprteduser:{
50 | type: String,
51 | }
52 | });
53 | module.exports = model('copypasterusers', copypasterusers);
54 |
--------------------------------------------------------------------------------
/me-mongomodals/CopyPasters/reportbl.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | Soon Reports BlackList System
33 | */
34 | const { Schema, model } = require('mongoose');
35 | const reportblacklist = Schema({
36 | userid: {
37 | type: String,
38 | required: true
39 | },
40 | });
41 | module.exports = model('reblacklist', reportblacklist);
42 |
--------------------------------------------------------------------------------
/me-mongomodals/CopyPasters/reprt.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const { Schema, model } = require('mongoose');
34 | const copypasterusers = Schema({
35 | userID: {
36 | type: String,
37 | required: true
38 | },
39 | des : {
40 | type: String,
41 | default: "",
42 | },
43 | ocode:{
44 | type: String,
45 | },
46 | cpcode:{
47 | type: String,
48 | },
49 | reporttype:{
50 | type: String,
51 | },
52 | gowner:{
53 | type: String,
54 | default: "None",
55 | },
56 | guild:{
57 | type: String,
58 | default: "None",
59 | },
60 | target:{
61 | type: String,
62 | default: "None",
63 | },
64 | guildname : {
65 | type: String,
66 | }
67 | });
68 | module.exports = model('reports', copypasterusers);
69 |
--------------------------------------------------------------------------------
/mecodes-congig.json:
--------------------------------------------------------------------------------
1 | {
2 | "____Bot__Config___": "____Prefix____Report__Channel____",
3 | "prefix": ".",
4 | "rech": "841679495223967765",
5 | "server": "837654358639771658"
6 | }
--------------------------------------------------------------------------------
/mehandlerconfig/command.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const { readdirSync } = require("fs");
34 | const ascii = require("ascii-table");
35 | const fs = require("fs")
36 |
37 | let table = new ascii("Commands");
38 | table.setHeading("Command", "Load status");
39 |
40 | module.exports = (client) => {
41 | readdirSync("./command/").forEach(dir => {
42 |
43 |
44 | const commands = readdirSync(`./command/${dir}/`).filter(file => file.endsWith(".js"));
45 |
46 | for (let file of commands) {
47 | let pull = require(`../command/${dir}/${file}`);
48 |
49 | if (pull.name) {
50 | client.commands.set(pull.name, pull);
51 | table.addRow(file, '✅');
52 | } else {
53 | table.addRow(file, `❌ -> missing a CMD Name`);
54 | continue;
55 | }
56 |
57 | if (pull.aliases && Array.isArray(pull.aliases)) pull.aliases.forEach(alias => client.aliases.set(alias, pull.name));
58 | }
59 | });
60 | console.log(table.toString());
61 | }
62 |
--------------------------------------------------------------------------------
/mehandlerconfig/events.js:
--------------------------------------------------------------------------------
1 | /*
2 | ---------------------------------------
3 | | All rights reserved to KIGNAMN |
4 | | If there is any error, just visit the|
5 | | KINGMANDEV Discord Server |
6 | | Phone Number: +962792914245 |
7 | ---------------------------------------
8 | ______███████████████████████
9 | ______█████████████████████████
10 | ______███████████████████████__██
11 | ____▒░██████████████████████____██
12 | ___▒░░████████████████████▒▒____██
13 | __▒▒░░███████████████████▒░▒___██
14 | __▒░░░▒█████████████████▒░░▒__██
15 | _▒▒░░░░▒███████████████▒░░▒_██
16 | ▒░▒░░░░░▒█████████████▒░░░▒█
17 | ▒▒░▒▒░░░▒▒███████████▒░░▒▒
18 | ▒▒░░▒▒░░░▒███████████▒▒░░
19 | ▒░▒▒░░▒▒░░░░▒▒░░░░░░░░▒▒
20 | ▒▒░░▒░░▒▒░░░░▒░░░░░░░▒▒
21 | ▒▒▒░░▒░░▒▒░░░░░░░░░░▒▒
22 | _▒░▒░░░▒▒░░░░░░░░░░▒▒
23 | __▒░▒░░░▒░░░░░░░░░░▒▒
24 | ___▒░▒▒░░░░░░░░░░░░▒▒
25 | ____▒░▒▒░░░░░░░░░░░▒▒
26 | ______▒▒░░░░░░░░░░░▒▒
27 | _______▒▒░░░░░░░░░░▒▒
28 | ________▒▒░░░░░░░░░▒▒
29 | _________▒▒░░░░░░░░▒▒
30 | _________▒▒░░░░░░░░▒▒
31 | _________▒▒░░░░░░░░▒▒
32 | */
33 | const { readdirSync } = require("fs");
34 | const ascii = require("ascii-table");
35 | const fs = require("fs")
36 | let table = new ascii("Events");
37 | table.setHeading("Events", "Load status");
38 |
39 | module.exports = (client) => {
40 | readdirSync("./events/").forEach(dir => {
41 |
42 | const events = readdirSync(`./events/${dir}/`).filter(file => file.endsWith(".js"));
43 | for (const file of events){
44 | const event = require(`../events/${dir}/${file}`)
45 | if(event.name){
46 | let eventName = file.split(".")[0];
47 | client.eventss.set(event.name, event);
48 | table.addRow(file, '✅');
49 | client.on(event.name, (...args) => event.execute(...args, client));
50 | }else{
51 | table.addRow(file, `❌ -> missing a event's name`);
52 | continue;
53 | }
54 | }
55 |
56 | });
57 | console.log(table.toString());
58 |
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "kingman AntCopyPasterBot",
3 | "version": "1.0.0",
4 | "description": "It is a bot that sends reports about people stealing their Codes rights And they say they are programmers etc.",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "keywords": ["kingman", "anticopypasterbot", "kingmanbot"],
10 | "author": "Muhammad Kurkar +962792914245 [KINGMAN]",
11 | "license": "ISC",
12 | "dependencies": {
13 | "ascii-table": "0.0.9",
14 | "colors": "^1.4.0",
15 | "discord.js": "^12.5.3",
16 | "express": "^4.17.1",
17 | "figlet": "^1.5.0",
18 | "mongoose": "^5.12.12"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------