-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDiscord.js
1938 lines (1901 loc) · 99.6 KB
/
Discord.js
1
2
3
4
5
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
require('dotenv').config();
const Discord = require('discord.js');
const bot = new Discord.Client();
const TOKEN = process.env.TOKEN;
//var safeEval = require('safe-eval')
var safeEval = require('newbox-eval')
//const moment = require("moment")
var io = require("socket.io-client")
const querystring = require('querystring');
const fetch = require('node-fetch');
const DBL = require("dblapi.js");
const dbl = new DBL('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjcyMjgwMzI0MzExNzQ0NTE3MiIsImJvdCI6dHJ1ZSwiaWF0IjoxNjA4MDQ1ODg5fQ.E-pIrQLZxl-nM8EGJGKAe1IC3aSITuogFjdo9dippe4', {
webhookPort: 5000,
webhookAuth: 'r00tl!k3$t00r'
}, bot);
var serversVerified = ["776438560559071244", "722489023297224795", "751515125479112756", "787776747952275466", "794597787110211596", "759849655005085696", "785869282071805962"]
// Optional events
dbl.on('posted', () => {
console.log('Server count posted!');
})
dbl.on('error', e => {
console.log(`Oops! ${e}`);
})
var ch;
var edtitingsave;
var reactee = [];
var fs = require('fs');
var slowmoders = []
var backups = []
var r = 0
var allowed = ["722803243117445172", "719498374885277728", "727890741757476864", "727930847558107136", "839923941396054037"]
var permas = []
var tbon = false
var activated = []
var froze = false
var localStorage = require("localStorage")
var mystorage = localStorage
var cheats = [];
ppapi = {};
var existShop = ["fortune","addmore", "devmode", "owner", "verify", "box"];
var commandsShop = ["list", "buy"];
requestsFromShop = {};
cheats["ihatekermit"] = {
alreadyused: [],
money: 10000,
blocked: false
};
cheats["ilikepc"] = {
alreadyused: [],
money: 1999,
blocked: false
};
cheats["ilovepc"] = {
alreadyused: [],
money: 1000000,
blocked: false
};
cheats["infpls"] = {
alreadyused: [],
money: Infinity,
blocked: true
};
cheats["gaylebisstupid"] = {
money: 3000,
alreadyused: [],
blocked: false,
defaultfunc: function() {
console.log("used gaylebisstupid cheat!")
cheats["gaylebisstupid"].alreadyused = [];
}
};
permas["513764205661257728"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "User requested №8", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
}
permas["731310313265299488"] = {
level: 0, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "main war hoster", //the reason of perms
verified: false, //Is that person verified?
devmode: false //this defined devmode enabled or not
}
permas["594120305232969769"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "User requested №7", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
}
permas["721286606417297410"] = {
level: 5, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "Really own PCbot / Реально создал PCbot", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
}
permas["679628927831900161"] = {
level: 5, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "Really good person / Реально хороший человек", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
};
permas["839923941396054037"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "good dev / хороший разраб", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
};
permas["850028775542620191"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "bot of good dev / бот хорошого разраба", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
};
permas["727930847558107136"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "User required №1", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
};
permas["664067003664957440"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "User required №2", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
};
permas["6993256719979643090"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "User required №3", //the reason of perms
verified: false, //Is that person verified?
devmode: true //this defined devmode enabled or not
};
permas["292383975048216576"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "User required №4", //the reason of perms
verified: false, //Is that person verified?
devmode: true //this defined devmode enabled or not
};
permas["429315263717179415"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "User required №5", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
};
permas["768079192448696331"] = {
level: 3005, //it means the level of user (0-5). 0-ban, 1-vip, 2-mod, 3-admin,4-headadmin,5-owner
reason: "User required №6", //the reason of perms
verified: true, //Is that person verified?
devmode: true //this defined devmode enabled or not
}
permas["744419318623633478"]={level:3005, reason:"Cool guy", verified: true, devmode:true}
permas ["804041781897330799"] = {
level: 5,
reason: "known",
verified: true,
devmode: true
}
//var lusers = [];
var lusers = require(__dirname + '/users.json');
for (luser in lusers) {
lusers[luser].timeout = false;
}
function readSaveUsersFile() {
lusers = require(__dirname + '/users.json')
//lusers = []
fs.writeFile(__dirname + '/users.json', JSON.stringify(lusers), function(err) {
if (err) {
console.error(err)
}
})
// fs.writeFile(__dirname + '/users.json', "{}", function(err){if(err) {console.error(err)}})
setTimeout(readSaveUsersFile, 1000);
}
readSaveUsersFile();
//839923941396054037
//721286606417297410
//const he = require("he")
bot.login(TOKEN);
var cmdrun = false
bot.on('ready', () => {
/* bot.user.setPresence({
game: {
name: 'Use pm!help for cmds.',
type: 'PLAYING'
},
status: 'online'
})*/
bot.user.setActivity('Use pm!help for cmds.', {
type: 'PLAYING'
})
setInterval(function() {
bot.user.setActivity("Have fun at " + bot.guilds.cache.size.toString() + " servers!", {
type: 'PLAYING'
});
}, 5000)
setInterval(function() {
bot.user.setActivity('Use pm!help for cmds.', {
type: 'PLAYING'
});
}, 3000)
console.info(`Logged in as ${bot.user.tag}!`);
channel = bot.channels.cache.get('728540765286039613');
pcbotembed = new Discord.MessageEmbed()
pcbotembed.setTitle("PCbot notifications")
pcbotembed.setColor("#009ddb")
pcbotembed.setAuthor("PCbot")
pcbotembed.setDescription("<:PCbotOnline:785869381564497920> PCbot is now UP. You can use it! " /*+||but im dead :( so i will off*||"*/ )
pcbotembed.setFooter("Generated automatically by PCbot.")
channel.send(pcbotembed)
bot.channels.cache.get("792661081801490453").send(pcbotembed)
//setTimeout(bot.destroy, 2000)
//process.exit(0);
});
setInterval (function (){
for (var user in lusers){
if (lusers[user].people == Infinity || lusers[user].money == Infinity){
lusers[user].mail.push("Mail from pcbot-development-bot:\nThanks for using PCbot economy system. You reached the max values. I will clean these values, because they will become a null value. Please try again! You got Prestiged. You have 200 coins and 1 people on account now. Earn again :)");
lusers[user].people = 1;
lusers[user].money = 200;
}
}
}, 1000)
bot.on("messageReactionAdd", function(rct) {
})
bot.on("messageReactionRemove", function(rct) {})
bot.on('message', msg => {
/*if (msg.channel.type == "dm" && msg.author.id == "727930847558107136") return;
if (msg.channel.type == "dm" && msg.author.id == "839923941396054037") return;*/
/*
if (msg.content.toLowerCase().startsWith("я ")) {
if (args[0] == undefined) return
if (args[0] == "PCbot") return msg.channel.send("лол нет, <@" + msg.author.id + "> теперь утка!");
if (msg.mentions.users.size != 0) return msg.channel.send("упоминания не поддерживаются.")
if (args.join(" ").includes(" я ")) return msg.channel.send("ты не дурак случайно?????")
msg.channel.send("Здравствуй " + args.join(" ") + ", я PCbot!");
}*/
if (msg.content == "pm!frozepanel") {
if (msg.channel.type != 'dm') return msg.channel.send("DM only, duck")
if (permas[msg.author.id] != undefined && permas[msg.author.id].level == 5) {
msg.channel.send("Lets go:\nSelect the :lock: to freeze, :unlock: for unfreeze.\n\nNot ready for reactions.").then(function(mozgorobotdva) {
mozgorobotdva.react("🔒").then(function() {
mozgorobotdva.react("🔓").then(function() {
setTimeout(function() {
mozgorobotdva.edit("Lets go:\nSelect the :lock: to freeze, :unlock: for unfreeze.")
bot.once("messageReactionAdd", function(rct) {
if (rct._emoji.name == "🔒") {
froze = true;
mozgorobotdva.reactions.removeAll()
mozgorobotdva.edit("Lets go:\nSelect the :lock: to freeze, :unlock: for unfreeze.\n\nExpired.\nFROZE")
} else if (rct._emoji.name == "🔓") {
froze = false;
mozgorobotdva.reactions.removeAll()
mozgorobotdva.edit("Lets go:\nSelect the :lock: to freeze, :unlock: for unfreeze.\n\nExpired.\nUNFROZE")
}
})
}, 10000)
})
})
})
} else {
msg.channel.send("You arnt very amdin.")
}
}
/*if (msg.channel.type != 'dm')
{
msg.member.roles.remove(msg.guild.roles.cache.find(role => role.name === 'OMR'));
msg.member.roles.remove(msg.guild.roles.cache.find(role => role.name === 'OMM'));
}*/
if (froze) return
var perms = "SYSTEM"
var rusperms = "система"
//msg.content = he.decode(msg.content)
var messaged = msg.content;
var args = messaged.split(' ').slice(1);
if (!cmdrun) {
// channel.send("[PCbot notifications] PCbot is up! Use PCbot now!")
function func() {
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
prompt: 'JS> '
});
rl.prompt();
rl.on('line', (line) => {
if (line.startsWith("sudo ")) {
try {
console.log(eval(line.replace("sudo ", "")));
} catch (err) {
console.error(err);
}
} else {
try {
console.log(safeEval(line.replace("sudo ", "")));
} catch (err) {
console.error(err);
}
}
rl.prompt();
})
}
func()
cmdrun = true
}
if (msg.channel.id == "736101552548479099") {
if (!allowed.includes(msg.author.id)) {
msg.delete();
msg.author.send("You does not have write permission in this channel.").then(function(mozg) {
setTimeout(function() {
mozg.delete()
}, 5000)
})
return
}
}
if (msg.channel.id == "736578491327185046") {
if (slowmoders.includes(msg.author.id)) {
msg.delete()
msg.author.send("You does not have write permission in this channel.").then(function(mozg) {
setTimeout(function() {
mozg.delete()
}, 5000)
})
return
}
slowmoders.push(msg.author.id);
setTimeout(function() {
var index = slowmoders.indexOf(msg.author.id);
if (index > -1) {
slowmoders.splice(index, 1);
}
}, 60000)
}
if (msg.content == "pm!captcha") {
msg.channel.send("⬛ I am not a robot (NOT ACTIVE)").then(function(mrobottri) {
if (msg.guild.id != "722489023297224795") {
mrobottri.react("❌")
return mrobottri.edit("Failed to make a captcha check: Not a PCserv server.")
}
if (msg.member.roles.cache.some(role => role.name === 'PassCaptchaUsingPCbot')) {
mrobottri.react("❌")
return mrobottri.edit("Failed to make a captcha check: Already passed a test.")
}
mrobottri.react("✔")
setTimeout(function() {
mrobottri.edit("⬛ I am not a robot")
bot.once("messageReactionAdd", function(rct) {
if (rct._emoji.name == "✔") {
mrobottri.reactions.removeAll();
mrobottri.edit("Passing check...")
try {
if (msg.webhookID) throw new Error("Webhook! ABORT")
if (msg.author.bot) throw new Error("Bot! ABORT")
mrobottri.react("✅")
member = msg.member;
var role = msg.guild.roles.cache.find(role => role.name === 'PassCaptchaUsingPCbot');
member.roles.add(role);
mrobottri.edit(":white_check_mark: I am not a robot")
} catch {
mrobottri.edit(":x: I am not a robot")
mrobottri.react("❌")
}
} else {
mrobottri.edit("Check was cancelled.")
}
}, 3000)
}, 3000)
})
}
if (msg.author.bot && msg.author.id != "735170500770136156" && msg.author.id != "761911121677910047" && msg.author.id != "850028775542620191" && msg.author.id != "850404789824651324") return
if (msg.content == "pm!help") {
if (permas[msg.author.id] != undefined && permas[msg.author.id].level == 0) {
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> PCbot OS v1.0\nServer respond 403 Forbidden\n\nCannot GET /help")
return
}
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> PCbot OS v13.2.3\n\nServer is accessible by link: https://sites.google.com/view/pcsite1/pbdbh")
}
if (msg.content == "pm!rushelp") {
if (permas[msg.author.id] != undefined && permas[msg.author.id].level == 0) {
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> PCbot OS v1.0\nServer ответил 403 Forbidden\n\nCannot GET /help")
return
}
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> PCbot OS v13.2.3\n\nServer доступен по ссылке: https://sites.google.com/view/pcsite1/pcdbc")
}
if (msg.content == "pm!vote") {
if (lusers[msg.author.id] == undefined) {
return msg.channel.send("Vote Rewards needs to be attached to user, so please register.")
}
msg.channel.send("Vote Links:\nTOP.GG: https://top.gg/bot/722803243117445172/vote\n\nInfo on *Reward*: __5000RUB, 20 employees and 2 giftboxes.__\nx2 at \"weekends\" on top.gg")
}
if (msg.content == "pm!voteReward") {
if (lusers[msg.author.id] == undefined) {
return msg.channel.send("Rewards needs to be attached to user, so please register.")
}
if (lusers[msg.author.id].voted != undefined) {
return msg.channel.send("FAIL: You are voted, but you was impatient, bye.")
}
msg.channel.send("Please wait, checking status in vote list...").then(function(editz) {
dbl.hasVoted(msg.author.id).then(voted => {
if (voted) {
dbl.isWeekend().then(weekend => {
if (weekend) {
lusers[msg.author.id].bank = lusers[msg.author.id].bank + 10000;
lusers[msg.author.id].people = lusers[msg.author.id].people + 40;
var id = Math.random().toString().replace(".", "");
msg.author.send("> Ho-ho-ho!\n> I am a vote, and i want to give you a lootbox!\n> Type this command to claim your reward, i will wait you!\n> pm!lootbox " + id + "\n\nYour rewarder.")
ppapi[id] = {
money: Math.floor(Math.random() * 10000),
employees: Math.floor(Math.random() * 10),
id: msg.author.id
};
var id = Math.random().toString().replace(".", "");
msg.author.send("> Ho-ho-ho!\n> I am a vote, and i want to give you a lootbox!\n> Type this command to claim your reward, i will wait you!\n> pm!lootbox " + id + "\n\nYour rewarder.")
ppapi[id] = {
money: Math.floor(Math.random() * 10000),
employees: Math.floor(Math.random() * 10),
id: msg.author.id
};
var id = Math.random().toString().replace(".", "");
msg.author.send("> Ho-ho-ho!\n> I am a vote, and i want to give you a lootbox!\n> Type this command to claim your reward, i will wait you!\n> pm!lootbox " + id + "\n\nYour rewarder.")
ppapi[id] = {
money: Math.floor(Math.random() * 10000),
employees: Math.floor(Math.random() * 10),
id: msg.author.id
};
var id = Math.random().toString().replace(".", "");
msg.author.send("> Ho-ho-ho!\n> I am a vote, and i want to give you a lootbox!\n> Type this command to claim your reward, i will wait you!\n> pm!lootbox " + id + "\n\nYour rewarder.")
ppapi[id] = {
money: Math.floor(Math.random() * 10000),
employees: Math.floor(Math.random() * 10),
id: msg.author.id
};
lusers[msg.author.id].voted = true;
setTimeout(function() {
delete lusers[msg.author.id].voted;
}, 3600000)
editz.edit("You are in voted list, today is multiplier time.\nYou will be awarded with 10000RUB, 40 employees and 4 gift boxes.\nNext reward will be available after one hour.")
} else {
lusers[msg.author.id].bank = lusers[msg.author.id].bank + 5000;
lusers[msg.author.id].people = lusers[msg.author.id].people + 20;
var id = Math.random().toString().replace(".", "");
msg.author.send("> Ho-ho-ho!\n> I am a vote, and i want to give you a lootbox!\n> Type this command to claim your reward, i will wait you!\n> pm!lootbox " + id + "\n\nYour rewarder.")
ppapi[id] = {
money: Math.floor(Math.random() * 10000),
employees: Math.floor(Math.random() * 10),
id: msg.author.id
};
var id = Math.random().toString().replace(".", "");
msg.author.send("> Ho-ho-ho!\n> I am a vote, and i want to give you a lootbox!\n> Type this command to claim your reward, i will wait you!\n> pm!lootbox " + id + "\n\nYour rewarder.")
ppapi[id] = {
money: Math.floor(Math.random() * 10000),
employees: Math.floor(Math.random() * 10),
id: msg.author.id
};
lusers[msg.author.id].voted = true;
setTimeout(function() {
delete lusers[msg.author.id].voted;
}, 7200000)
editz.edit("You are in voted list, but today isnt Friday, Saturday and Sunday.\nYou will be only awarded with 5000RUB, 20 employees and 2 gift boxes.\nNext reward will be available after two hours.")
}
});
} else {
editz.edit("You are not in voted list.\nVote Links:\nTOP.GG: https://top.gg/bot/722803243117445172/vote\n\nInfo on *Reward*: __5000RUB, 20 employees and 2 giftboxes.__\nx2 at \"weekends\" on top.gg")
}
});
})
}/*
if (msg.content.toLowerCase().includes("new year")) {
dbl.hasVoted(msg.author.id).then(voted => {
if (voted) {
if (msg.mentions.everyone) {
msg.channel.send("Happy new Year, everyone!\nI wish everyone a happy new year.\nI wish everyone a good life, success on all starting things, and all your things to be happen.\nLike you someone think about a new PC, and you will get that.\nI wish everyone also the thing: Please, dont be sick.\nThe New Year Card initiated by " + msg.author.tag);
} else if (msg.mentions.users.size != 0) {
msg.mentions.users.first().send("Happy new Year, " + msg.mentions.users.first().tag + "!\nI wish you a happy new year.\nI wish you a good life, success on all starting things, and all your things to be happen.\nLike you think about a new PC, and you will get that.\nI wish you also the thing: Please, dont be sick.\nThe New Year Card initiated by " + msg.author.tag);
} else {
msg.author.send("Happy new Year, " + msg.author.tag + "!\nI wish you a happy new year.\nI wish you a good life, success on all starting things, and all your things to be happen.\nLike you think about a new PC, and you will get that.\nI wish you also the thing: Please, dont be sick.\nThe New Year Card initiated by " + msg.author.tag);
}
if (msg.channel.type !== "dm" && !msg.mentions.everyone) msg.channel.send("Private message sent.");
}
})
}*/
if (msg.content == "pm!daily") {
if (lusers[msg.author.id] == undefined) {
return msg.channel.send("Register to get daily reward.")
}
if (lusers[msg.author.id].daily == true) {
return msg.channel.send("Stop running in the halls.\nYou need to wait.\nDefault cooldown is 24 hours, but if the bot restarted you can ask the owner for the resolving of problem.\n\nWhile you wait, visit and vote for PCbot (pm!vote)")
} else {
msg.channel.send("You runned PCbot daily command. It gave you 10 employees and 10000RUB. Come back in next 24 hours!");
lusers[msg.author.id].money = lusers[msg.author.id].money + 100000;
lusers[msg.author.id].people = lusers[msg.author.id].people + 10;
lusers[msg.author.id].daily = true;
setTimeout(function() {
lusers[msg.author.id].daily = false;
}, 86400000)
}
}
if (msg.content.startsWith("pm!shop ")) {
if (lusers[msg.author.id] == undefined) {
return msg.channel.send("Register to buy.")
}
if (!commandsShop.includes(args[0])) {
msg.channel.send("Sub-command DOESN'T EXIST. use `pm!shop list` to view shop items.")
} else if (args[0] == "list") {
msg.channel.send("Shop items:\n**Power-ups**\n`box` - Costs 9000RUB - LootBox. Works only for other person.\n`fortune` - a fortune cookie. 30 RUB. Only will be lost if you are lucky!\n**Level-ups**\n`devmode` - costs 999999RUB - This adds developer mode to you. As you needing to be trusted, it will send a generated email to pcbot-development with your ID and the give ID.\n*`Note that if you given the request you cannot send another until you will be denied/granted.`*\n`owner` - costs 1555599RUB and requires verification and HIGH trust. - Adding OWNER level to you. As you needing to be trusted, it will send a generated email to pcbot-development with your ID and the give ID. Note if you given request to the devmode one you cannot buy this.\n`verify` - costs 1505050RUB and requires not so mush of trust. - Generates a verify message to pcbot-development. You cannot buy this if you send request to another ones.\n\nUse `pm!shop buy [item]` to buy an item.")
} else if (args[0] == "buy") {
if (!existShop.includes(args[1])) {
msg.channel.send("No such shop item!!!")
} else if (args[1] == "owner") {
if (requestsFromShop[msg.author.id] !== undefined) {
msg.channel.send("Your request is already on work.")
} else if (permas[msg.author.id].level == 5) {
msg.channel.send("You are already an owner.")
} else {
if (lusers[msg.author.id].money < 1555599) {
msg.channel.send("You need " + (1555599 - lusers[msg.author.id].money).toString() + "RUB more to get this item.")
} else {
var reqId = Number(Math.random().toString().replace(".", "")).toString()
lusers[msg.author.id].money = lusers[msg.author.id].money - 1555599;
requestsFromShop[msg.author.id] = reqId;
lusers["pcbot-development"].mail.push("SHOP REQUEST\n" + "From " + msg.author.id + " TYPE OWNER " + reqId);
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> Buyed an item `owner`! now in request.")
}
}
} else if (args[1] == "devmode") {
if (requestsFromShop[msg.author.id] !== undefined) {
msg.channel.send("Your request is already on work.")
} else if (permas[msg.author.id].devmode) {
msg.channel.send("You are already own `devmode`.")
} else {
if (lusers[msg.author.id].money < 999999) {
msg.channel.send("You need " + (999999 - lusers[msg.author.id].money).toString() + "RUB more to get this item.")
} else {
var reqId = Number(Math.random().toString().replace(".", "")).toString()
lusers[msg.author.id].money = lusers[msg.author.id].money - 999999;
requestsFromShop[msg.author.id] = reqId;
lusers["pcbot-development"].mail.push("SHOP REQUEST\n" + "From " + msg.author.id + " TYPE DEVMODE " + reqId);
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> Buyed an item `devmode`! now in request.")
}
}
} else if (args[1] == "verify") {
if (requestsFromShop[msg.author.id] !== undefined) {
msg.channel.send("Your request is already on work.")
} else if (permas[msg.author.id].verified) {
msg.channel.send("You are already own `verify`.")
} else {
if (lusers[msg.author.id].money < 1505050) {
msg.channel.send("You need " + (1505050 - lusers[msg.author.id].money).toString() + "RUB more to get this item.")
} else {
var reqId = Number(Math.random().toString().replace(".", "")).toString()
lusers[msg.author.id].money = lusers[msg.author.id].money - 1505050;
requestsFromShop[msg.author.id] = reqId;
lusers["pcbot-development"].mail.push("SHOP REQUEST\n" + "From " + msg.author.id + " TYPE VERIFY " + reqId);
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> Buyed an item `verify`! now in request.")
}
}
}else if (args[1] == "fortune"){
if (lusers[msg.author.id].money < 30) {
msg.channel.send("You need " + (30 - lusers[msg.author.id].money).toString() + "RUB more to get this item.")
} else {
if (Math.floor(Math.random() * 100) == 40){
lusers[msg.author.id].money = lusers[msg.author.id].money - 20;
lusers[msg.author.id].people = lusers[msg.author.id].people + 20;
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> Buyed an item `fortune`! You're lucky today.")
}else{
lusers[msg.author.id].people = lusers[msg.author.id].people + 5;
msg.channel.send("You aren't lucky. Try again next time. You didn't waste your money, just rewards will be less than lucky \"OP\" rewards. You are safe from autorobbing also!")
}
}
} else if (args[1] == "addmore") {
return msg.channel.send("Error when retrieving this shop item:\nToo overpowered, locked!\nERR_MALICIOUS_ITEM");
if (lusers[msg.author.id].money < 100000) {
msg.channel.send("You need " + (100000 - lusers[msg.author.id].money).toString() + "RUB more to get this item.")
} else {
if (lusers[msg.author.id].people >= 17976931348623157e+292) return msg.channel.send("Quota of people reached. You cannot buy people.")
lusers[msg.author.id].money = lusers[msg.author.id].money - 100000;
lusers[msg.author.id].people = lusers[msg.author.id].people * lusers[msg.author.id].people
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> Buyed an item `addmore`!")
}
} else if (args[1] == "box") {
if (lusers[msg.author.id].money < 9000) {
msg.channel.send("You need " + (9000 - lusers[msg.author.id].money).toString() + "RUB more to get this item.")
} else {
if (!msg.mentions.users.size && args[2] == undefined) {
return msg.channel.send("come on, mention an user or provide an id.");
}
var usedID = msg.mentions.users.size > 0 ? false : true;
if (usedID) {
if (!bot.users.cache.has(args[2])) {
return msg.channel.send("He didn't even messaged in the bot!")
}
}
var mentioned = msg.mentions.users.first() || bot.users.cache.get(args[2])
if (mentioned.bot) {
return msg.channel.send("come on, this user is a bot.")
}
if (lusers[mentioned.id] == undefined) {
return msg.channel.send("come on, this user havent a PCbot account.")
}
if (mentioned.id == msg.author.id) {
return msg.channel.send("come on, this works only on other user.");
}
lusers[msg.author.id].money = lusers[msg.author.id].money - 9000;
var id = Math.random().toString().replace(".", "");
mentioned.send("> Ho-ho-ho!\n> I am user, and i want to give you a lootbox!\n> Type this command to claim your reward, i will wait you!\n> pm!lootbox " + id + "\n\nYour User.")
ppapi[id] = {
money: Math.floor(Math.random() * 10000),
employees: Math.floor(Math.random() * 10),
id: mentioned.id
};
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> well sent.");
}
}
}
}
if (msg.content.startsWith("pm!lootbox ")) {
if (lusers[msg.author.id] == undefined) {
return msg.channel.send("Well no lootboxes for you.. register lol")
}
if (args[0] == undefined) {
return msg.channel.send("Well no lootboxes for you.. what about argument with ID!")
}
if (ppapi[args[0]] == undefined) {
return msg.channel.send("Well no lootboxes for you.. ID is invalid!!")
}
if (ppapi[args[0]].id != msg.author.id) {
msg.channel.send("Well no lootboxes for you.. it is not for you.");
return;
}
msg.channel.send("Opening LootBox from your User...").then(function(edit) {
setTimeout(function() {
edit.edit("Opening LootBox from your User...\n\nDecoded " + ppapi[args[0]].money + "RUB to add to bank...");
}, 5000)
setTimeout(function() {
edit.edit("Opening LootBox from your User...\n\nDecoded " + ppapi[args[0]].money + "RUB to add to bank...\nDecoded " + ppapi[args[0]].employees + " people to add...");
}, 10000)
setTimeout(function() {
lusers[msg.author.id].bank = lusers[msg.author.id].bank + ppapi[args[0]].money;
lusers[msg.author.id].people = lusers[msg.author.id].people + ppapi[args[0]].employees;
edit.edit("Opening LootBox from your User... OK <:PCbotOperationCompleted:785870172913270904> \n\nDecoded " + ppapi[args[0]].money + "RUB to add to bank...\nDecoded " + ppapi[args[0]].employees + " people to add...\n\nYour rewards was added!");
delete ppapi[args[0]];
}, 15000)
})
}
if (msg.content.startsWith("pm!rob ")) {
if (lusers[msg.author.id] == undefined) {
return msg.channel.send("Register to rob.")
}
if (lusers[args[0]] == undefined) {
return msg.channel.send("That user isnt existing.")
}
if (args[0] == msg.author.id) return msg.channel.send("You cannot rob from yourself....")
if (lusers[args[0]].blocked.includes(msg.author.id)) {
msg.channel.send("Rejected: Unexpected error #184. You cannot rob.")
return
if (lusers[args[0]].hasOwnProperty("locked")) return msg.channel.send("The account was locked.");
}
var chance = false;
var money = Math.floor(Math.random() * lusers[args[0]].money);
if (Math.floor(Math.random() * 2) == 1) {
chance = true;
} else {
chance = false;
}
if (money == 0) {
return msg.channel.send("Or his money got stole and he is on 0, or all money is banked, or you are unlucky.\nCannot steal 0RUB.")
}
if (!chance) {
if (money > lusers[msg.author.id].money) return msg.channel.send("nice, you get caught, but lost NOTHING")
if (money == 0) {
return msg.channel.send("Or his money got stole and he is on 0, or all money is banked, or you are totally unlucky because got no chance..\nCannot steal 0RUB.")
}
lusers[msg.author.id].money = lusers[msg.author.id].money - money;
return msg.reply("You got caught!\n\nYou lost " + money + "RUB.")
}
lusers[args[0]].money = lusers[args[0]].money - money;
lusers[msg.author.id].money = lusers[msg.author.id].money + money;
msg.reply("<:PCbotOperationCompleted:785870172913270904> You stole " + money + "RUB. Your balance is " + lusers[msg.author.id].money + "RUB.")
}
if (msg.content.startsWith("pm!bank ")) {
if (lusers[msg.author.id] == undefined) {
return msg.channel.send("Register to bank your money;.")
}
if (args[0] == "all") {
lusers[msg.author.id].bank = lusers[msg.author.id].bank + lusers[msg.author.id].money;
lusers[msg.author.id].money = 0;
msg.channel.send("Banked all money.")
} else {
if (isNaN(Number(args[0]))) return msg.channel.send("NaN number")
if (lusers[msg.author.id].money < Number(args[0])) return msg.reply("Too big!")
if (Number(args[0]) < 0) return msg.channel.send("negative? fuck you instead")
if (args[0].includes(".")) return msg.channel.send("yay dots of rub. wait fuck you.")
lusers[msg.author.id].bank = lusers[msg.author.id].bank + Number(args[0]);
lusers[msg.author.id].money = lusers[msg.author.id].money - Number(args[0]);
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> Banked " + args[0] + "RUB.")
}
}
if (msg.content.startsWith("pm!unbank ")) {
if (lusers[msg.author.id] == undefined) {
return msg.channel.send("Register to unbank your money.")
}
if (args[0] == "all") {
lusers[msg.author.id].money = lusers[msg.author.id].money + lusers[msg.author.id].bank;
lusers[msg.author.id].bank = 0;
msg.channel.send("All money back.")
} else {
if (isNaN(Number(args[0]))) return msg.channel.send("NaN number")
if (lusers[msg.author.id].bank < Number(args[0])) return msg.reply("Too big!")
if (Number(args[0]) < 0) return msg.channel.send("negative? fuck you instead")
if (args[0].includes(".")) return msg.channel.send("yay dots of rub. wait fuck you.")
lusers[msg.author.id].bank = lusers[msg.author.id].bank - Number(args[0]);
lusers[msg.author.id].money = lusers[msg.author.id].money + Number(args[0]);
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> Back " + args[0] + "RUB.")
}
}
if (msg.content == "pm!userules") {
msg.author.send("**`PCbot` use rules**\n\n:one: Do not hack the bot.\n:two: Do not make crazy things with saves (like spam or flood).\nThis rule does not applies if its code or it is definitely not spam.\n:three: Do not use the bots OR webhooks to automatize catching of money.\\*\n\n\n\\* - Additional information is in pm!rules.\n\n**Any violation of the rules will result a ban.**").then(function(rsryuwgyqegy) {
if (permas[msg.author.id] != undefined && permas[msg.author.id].level == 0 && permas[msg.author.id].reason.includes("[VIOLATION OF RULES]")) {
rsryuwgyqegy.edit("**`PCbot` use rules**\n\n:one: Do not hack the bot.\n:two: Do not make crazy things with saves (like spam or flood).\nThis rule does not applies if its code or it is definitely not spam.\n:three: Do not use the bots OR webhooks to automatize catching of money.\\*\n\n\n\\* - Additional information is in pm!rules.\n\n**Any violation of the rules will result a ban.**\n\nWarning: You violated these rules!")
}
})
msg.channel.send("Sent to DM.")
}
if (msg.content.startsWith("expire ")) {
msg.delete()
if (args[0] == undefined) return msg.author.send("Type expiring time in secounds.")
if (isNaN(args[0])) return msg.author.send("NumberEx: Not a Number.")
var fff = msg.content.replace("expire " + args[0], "")
msg.channel.send(msg.author.username + " said:" + fff + "\n\n\n(Message Expiring in " + args[0] + " secounds)").then(function(mozgorobot) {
setTimeout(function() {
mozgorobot.delete()
}, Number(args[0]) * 1000)
})
}
if (msg.content.startsWith("pm!delinc ")) {
msg.delete()
if (permas[msg.author.id] != undefined && permas[msg.author.id].level == 0) {
msg.channel.send("Banned.")
return
}
if (msg.member.hasPermission(8)) {
var deleted = 0
msg.guild.channels.cache.forEach(channel => {
if (channel.name.includes(msg.content.replace("pm!delinc ", ""))) {
deleted++;
channel.delete()
}
})
if (deleted == 0) return msg.channel.send("NOTHING FOUND!")
msg.channel.send("Deleted " + deleted + " channels.")
} else {
msg.channel.send("Deleted 0 channels cuz you access catted")
}
}
if (msg.content.startsWith("pm!prec")) {
if (args[0] == "add") {
if (args[1] == "pingnotif") {
var role = msg.guild.roles.cache.find(role => role.name === 'notifping');
var member = msg.member
member.roles.add(role);
msg.channel.send("added")
} else {
msg.channel.send("No such addable role.")
}
} else if (args[0] == "delete") {
if (args[1] == "pingnotif") {
var role = msg.guild.roles.cache.find(role => role.name === 'notifping');
var member = msg.member
member.roles.remove(role);
msg.channel.send("removed")
} else {
msg.channel.send("No such deleteable role.")
}
} else if (args[0] == "help") {
msg.channel.send("Assign roles to you.\nSyntax: pm!prec [option] [role]\n\nAvailable options:\nadd\ndelete\nAvailable roles:\npingnotif")
} else {
msg.channel.send("Required argument required.")
}
}
if (msg.content.startsWith("pm!allowreadonly")) {
msg.delete()
if (permas[msg.author.id] != undefined && permas[msg.author.id].level == 5) {
allowed.push(msg.author.id);
msg.channel.send("OK")
} else {
msg.channel.send("NO!")
}
}
if (msg.content.startsWith("pm!hasAPIaccess")){
if (args[0] == undefined) return msg.channel.send("To inspect API_ACCESS, you need the bot ID.");
if (args[0] != "735170500770136156" && args[0] != "761911121677910047" && args[0] != "850028775542620191" && args[0] != "850404789824651324") return msg.channel.send(args[0] + " API_ACCESS: DENIED_NOT_REQUESTED");
msg.channel.send(args[0] + " API_ACCESS: ALLOWED")
}
if (msg.content.startsWith("pm!save ")) {
var regex = new RegExp("^[a-zA-Z0-9]+$");
nme = String(args[0]);
txt = msg.content.replace("pm!save " + nme + " ", "");
if (!regex.test(nme)) {
msg.channel.send("ERR This save name is not allowed. Pls replace name and try again (Can include only a-A A-Z 0-9 characters)\nTried to save file: " + nme + "\nWith content: " + txt)
return
}
nome = nme.toLowerCase();
if (nome == "con") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "nul") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "aux") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "prn") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "com1") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "lpt1") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "com2") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "lpt2") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "com3") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "lpt3") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "com4") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "lpt4") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "com5") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "lpt5") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "com6") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "lpt6") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "com7") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "lpt7") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "com8") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "lpt8") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "com9") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (nome == "lpt9") {
msg.channel.send("Failed to Create " + nome + ": Invalid Descriptor")
return
}
if (args[0] == undefined) {
msg.channel.send("Name don't there\nAborting...")
return
} else if (txt == "pm!save " + nme) {
msg.channel.send("Text don't there\nAborting...")
return
}
if (lusers[msg.author.id] == undefined) {
return msg.channel.send("You duck, you are not registered an account.")
}
if (lusers[msg.author.id].saves == undefined) {
return msg.channel.send("Looks like your account haves a read-only status. Try requesting the read-write status.")
}
if (lusers[msg.author.id].saves[nme] != undefined) {
edtitingsave = nme;
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> EDITING THE " + nme + " RIGHT NOW!")
} else {
for (loser in lusers) {
if (lusers[loser].saves[nme] != undefined) {
if (lusers[loser].hasOwnProperty("locked")) return msg.channel.send("The author's account was locked.");
if (lusers[loser].saves[nme].includes("<allowediting" + msg.author.id + ">")) {
edtitingsave = nme;
msg.channel.send("EDITING THE " + nme + " RIGHT NOW!")
} else {
return msg.channel.send("Request a read-write status.")
}
}
}
}
if (txt.length > 500) {
msg.channel.send("Text is long.\nABORTING...")
return
}
if (nme.toLowerCase() == "qt" || nme.toLowerCase() == "quiky-ticky" || nme.toLowerCase() == "quiky.ticky") {
msg.channel.send("==========================================================\n=ERROR================================================X===\n==========================================================\n= Texts about Quiky Ticky is not allowed to create.=======\n= Please contact your system administrator.===============\n==========================================================\n================================OK========================\n==========================================================")
return
}
if (edtitingsave == nme) {
if (lusers[msg.author.id].saves[nme] != undefined) {
lusers[msg.author.id].saves[nme] = txt;
} else {
for (loser in lusers) {
if (lusers[loser].saves[nme] != undefined) {
if (lusers[loser].saves[nme].includes("<allowediting" + msg.author.id + ">")) {
lusers[loser].saves[nme] = "---Autoeditor permissions---" + "\n<allowediting" + msg.author.id + ">\n\n---Edited text---\n" + txt;
} else {
lusers[loser].saves[nme] = txt;
}
}
}
}
} else {
lusers[msg.author.id].saves[nme] = txt;
}
msg.channel.send("<:PCbotOperationCompleted:785870172913270904> Saved!\nUse pm!read " + nme + " to read file")
}
if (msg.content.startsWith("pm!read")) {
savedtext = "";
nme = String(args[0]);
if (args[0] == undefined) {
msg.channel.send("Name don't there\nAborting...")
return
}
var aloser = ""
for (loser in lusers) {
if (lusers[loser].saves[nme] != undefined) {
aloser = loser
savedtext = lusers[loser].saves[nme]
}
}
if (aloser != ""){
if (lusers[aloser].hasOwnProperty("locked")) return msg.channel.send("The author's account was locked.");
}
try {
String.prototype.replaceAll = function(searchValue, replacer) {
return this.split(searchValue).join(replacer)
}
savedtext
let read = savedtext
let readed = read.replace("<undone>", "[This text is not done. Please help done this text.]\n")
let readeded = readed.replace(/<datetime>/g, new Date())
let readededed = readeded.replace(/<randnum>/g, Math.random())
let readedededed = readededed.replace(/<quote>/g, "Quoting:\n")
let readededededed = readedededed.replace(/<quoteend>/g, "\n---------\n")
let readedededededed = readededededed.replace(/<arg>/g, msg.content.replace("pm!read " + nme + " ", ""))
let readedededededededed = readedededededed.replace(/<nick>/g, msg.author.username)
let readededededededededed = readedededededededed.replace(/<color>/g, "N/A")
let readedededededededededed = readededededededededed.replace(/<home>/g, msg.author.id)
readedededededededededed = readededededededededed.replaceAll("@everyone", "<ducked everyone>")
if (readedededededededededed.includes("pm!read " + nme)) {
msg.channel.send("Sorry, but seems like the creator wants something after pm!read " + nme + ". Please give me one arg!")