forked from CarlGroth/Carl-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstattrak.py
1080 lines (1056 loc) · 30.4 KB
/
stattrak.py
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
import logging
import discord
import datetime
import random
import traceback
import psutil
import os
import json
import sqlite3
import re
#import matplotlib.pyplot as plt
from cogs.utils import checks
from discord.ext import commands
from collections import Counter
from io import BytesIO
dt_format = '%Y-%m-%d %H:%M:%S'
# Yes, I saved all the legendaries like this, sue me
uniques = [
"Ahn's Heritage",
"Bisco's Collar",
"Bisco's Leash",
"Collateral Damage",
"Fight for Survival",
"First Snow",
"Frozen Trail",
"Garukhan's Flight",
"Gruthkul's Pelt",
"Haemophilia",
"Inevitability",
"Martyr of Innocence",
"Might and Influence",
"Omen on the Winds",
"Overwhelming Odds",
"Ring of Blades",
"Ryslatha's Coil",
"Sudden Ignition",
"The Baron",
"The Wise Oak",
"Tidebreaker",
"Violent Dead",
"Wildfire",
"Winter Burial",
"Abberath's Hooves",
"Angler's Plait",
"Arakaali's Fang",
"Choir of the Storm",
"Duskdawn",
"Esh's Mirror",
"Esh's Visage",
"Ewar's Mirage",
"Hand of Thought and Motion",
"Hand of Wisdom and Action",
"Kitava's Feast",
"Light of Lunaris",
"Lycosidae",
"Malachai's Vision",
"Ngamahu's Flame",
"Perseverance",
"Presence of Chayula",
"Primordial Eminence",
"Primordial Harmony",
"Primordial Might",
"Severed in Sleep",
"Shade of Solaris",
"Sin's Rebirth",
"Skin of the Lords",
"Skin of the Loyal",
"The Anima Stone",
"The Anticipation",
"The Blue Dream",
"The Blue Nightmare",
"The Brine Crown",
"The Formless Flame",
"The Formless Inferno",
"The Green Dream",
"The Green Nightmare",
"The Halcyon",
"The Infinite Pursuit",
"The Pandemonius",
"The Perfect Form",
"The Red Dream",
"The Red Nightmare",
"The Red Trail",
"The Snowblind Grace",
"The Surrender",
"Tukohama's Fortress",
"Tulborn",
"Tulfall",
"United in Dream",
"Uul-Netol's Embrace",
"Uul-Netol's Kiss",
"Voice of the Storm",
"Voll's Vision",
"Xoph's Blood",
"Xoph's Heart",
"Xoph's Inception",
"Xoph's Nurture",
"Brain Rattler",
"Cospri's Malice",
"Dying Sun",
"Eye of Innocence",
"Hallowed Ground",
"Kitava's Thirst",
"Kondo's Pride",
"Obscurantis",
"Praxis",
"Razor of the Seventh Sun",
"Shaper's Touch",
"Slivertongue",
"Snakepit",
"Starforge",
"The Brass Dome",
"The Putrid Cloister",
"The Scourge",
"The Warden's Brand",
"Unending Hunger",
"Valyrium",
"Voidwalker",
"Witchfire Brew",
"Amplification Rod",
"Ascent From Flesh",
"Ashcaller",
"Breath of the Council",
"Cloak of Tawm'r Isley",
"Coated Shrapnel",
"Cospri's Will",
"Cragfall",
"Death's Door",
"Death's Opus",
"Deidbellow",
"Doomfletch's Prism",
"Emperor's Mastery",
"Ezomyte Hold",
"Grand Spectrum",
"Grand Spectrum",
"Grand Spectrum",
"Grip of the Council",
"Hiltless",
"Hinekora's Sight",
"Hrimburn",
"Hrimnor's Dirge",
"Innsbury Edge",
"Kaltensoul",
"Kaom's Way",
"Karui Charge",
"Kiara's Determination",
"Kintsugi",
"Martyr's Crown",
"Mind of the Council",
"Ngamahu Tiki",
"Nuro's Harp",
"Queen's Escape",
"Reach of the Council",
"Realm Ender",
"Reefbane",
"Saemus' Gift",
"Scaeva",
"Shavronne's Gambit",
"Silverbough",
"Skirmish",
"The Ascetic",
"The Beast Fur Shawl",
"The Cauteriser",
"The Dancing Dervish",
"The Gryphon",
"The Oak",
"The Overflowing Chalice",
"The Signal Fire",
"The Tempest",
"Thirst for Horrors",
"Three-step Assault",
"Touch of Anguish",
"Veruso's Battering Rams",
"Voidheart",
"Wall of Brambles",
"Emperor's Cunning",
"Emperor's Might",
"Emperor's Wit",
"Star of Wraeclast",
"Advancing Fortress",
"Axiom Perpetuum",
"Cheap Construction",
"Clayshaper",
"Daresso's Passion",
"Essence Worm",
"Frostbreath",
"Geofri's Sanctuary",
"Glitterdisc",
"Hair Trigger",
"Heretic's Veil",
"Iron Commander",
"Malachai's Loop",
"Obliteration",
"Reckless Defence",
"Rive",
"Seven-League Step",
"Singularity",
"The Perandus Manor",
"The Sorrow of the Divine",
"The Tempestuous Steel",
"The Writhing Jar",
"Trypanon",
"Umbilicus Immortalis",
"Unstable Payload",
"Varunastra",
"Victario's Charity",
"Viper's Scales",
"Widowmaker",
"Wyrmsign",
"Xirgil's Crank",
"Zerphi's Last Breath",
"Demigod's Dominance",
"Winterheart",
"Slivers of Providence",
"Agnerod West",
"Allure",
"Bitterdream",
"Blightwell",
"Caer Blaidd, Wolfpack's Den",
"Coruscating Elixir",
"Dead Reckoning",
"Eclipse Solaris",
"Extractor Mentis",
"Eyes of the Greatwolf",
"Faminebind",
"Feastbind",
"Femurs of the Saints",
"Growing Agony",
"Hezmana's Bloodlust",
"Kongming's Stratagem",
"Natural Hierarchy",
"Night's Hold",
"Pitch Darkness",
"Rapid Expansion",
"Repentance",
"Rigwald's Command",
"Rigwald's Crest",
"Rigwald's Curse",
"Rigwald's Quills",
"Rigwald's Savagery",
"Rolling Flames",
"Rotgut",
"Roth's Reach",
"Shattered Chains",
"Skyforth",
"Spirit Guards",
"Spirited Response",
"Steel Spirit",
"Storm Prison",
"The Aylardex",
"The Goddess Unleashed",
"The Retch",
"The Vigil",
"The Vinktar Square",
"Vessel of Vinktar",
"Vessel of Vinktar",
"Vessel of Vinktar",
"Vessel of Vinktar",
"Volley Fire",
"Weight of the Empire",
"Winter's Bounty",
"Chitus' Needle",
"Izaro's Turmoil",
"Izaro's Dilemma",
"Soulthirst",
"Spine of the First Claimant",
"Winds of Change",
"Bloodgrip",
"Broken Faith",
"Steppan Eard",
"The Pariah",
"Emberwake",
"Abberath's Horn",
"Agnerod South",
"Anatomical Knowledge",
"Ancient Waystones",
"Apparitions",
"Assassin's Haste",
"Atziri's Reign",
"Blood Sacrifice",
"Blood of Corruption",
"Bloodplay",
"Brawn",
"Brinerot Flag",
"Brinerot Mark",
"Brinerot Whalers",
"Brittle Barrier",
"Brute Force Solution",
"Call of the Brotherhood",
"Callinellus Malleus",
"Cameria's Maul",
"Careful Planning",
"Chill of Corruption",
"Clear Mind",
"Cold Steel",
"Combustibles",
"Conqueror's Efficiency",
"Conqueror's Longevity",
"Conqueror's Potency",
"Corrupted Energy",
"Crown of the Pale King",
"Death's Hand",
"Demigod's Beacon",
"Doedre's Scorn",
"Doryani's Fist",
"Dreadarc",
"Dyadian Dawn",
"Efficient Training",
"Eldritch Knowledge",
"Empire's Grasp",
"Energised Armour",
"Energy From Within",
"Fertile Mind",
"Fevered Mind",
"Fidelitas' Spike",
"Fireborn",
"Flesh-Eater",
"Fluid Motion",
"Fortified Legion",
"Fragile Bloom",
"Fragility",
"Gorebreaker",
"Goredrill",
"Healthy Mind",
"Heartbound Loop",
"Hidden Potential",
"Hotfooted",
"Hungry Abyss",
"Ichimonji",
"Inertia",
"Inspired Learning",
"Intuitive Leap",
"Jack, the Axe",
"Jorrhast's Blacksteel",
"Kingmaker",
"Kingsguard",
"Lakishu's Blade",
"Lavianga's Wisdom",
"Lion's Roar",
"Lioneye's Fall",
"Lioneye's Vision",
"Malicious Intent",
"Mantra of Flames",
"Martial Artistry",
"Might in All Forms",
"Moonbender's Wing",
"Mutated Growth",
"Mutewind Pennant",
"Mutewind Seal",
"Mutewind Whispersteps",
"Null's Inclination",
"Nycta's Lantern",
"Ornament of the East",
"Pacifism",
"Poacher's Aim",
"Powerlessness",
"Pugilist",
"Rain of Splinters",
"Realmshaper",
"Redblade Band",
"Redblade Banner",
"Redblade Tramplers",
"Relentless Fury",
"Sacrificial Harvest",
"Self-Flagellation",
"Shaper's Seed",
"Sire of Shards",
"Southbound",
"Spire of Stone",
"Static Electricity",
"Surgebinders",
"Survival Instincts",
"Survival Secrets",
"Survival Skills",
"Tear of Purity",
"The Consuming Dark",
"The Deep One's Hide",
"The Princess",
"The Restless Ward",
"The Stormheart",
"The Whispering Ice",
"To Dust",
"Tremor Rod",
"Trolltimber Spire",
"Twyzel",
"Vaal Sentencing",
"Ventor's Gamble",
"Victario's Influence",
"Warlord's Reach",
"Weight of Sin",
"Wildslash",
"Ylfeban's Trickery",
"Black Sun Crest",
"Greed's Embrace",
"Hall of Grandmasters",
"Rashkaldor's Patience",
"Warped Timepiece",
"Agnerod North",
"Bated Breath",
"Belt of the Deceiver",
"Bloodboil",
"Brutus' Lead Sprinkler",
"Doomsower",
"Great Old One's Ward",
"Kikazaru",
"Malachai's Artifice",
"Maligaro's Lens",
"Maligaro's Restraint",
"Maloney's Nightfall",
"Ngamahu's Sign",
"Nomic's Storm",
"Prismweave",
"Reverberation Rod",
"Rumi's Concoction",
"Scold's Bridle",
"Sibyl's Lament",
"Talisman of the Victor",
"Tasalio's Sign",
"Taste of Hate",
"The Blood Thorn",
"The Broken Crown",
"The Rat Cage",
"Timeclasp",
"Ungil's Harmony",
"Valako's Sign",
"Agnerod East",
"Demigod's Eye",
"Sentari's Answer",
"Oba's Cursed Trove",
"Whakawairua Tuahu",
"Apep's Rage",
"Chalice of Horrors",
"Cherrubim's Maleficence",
"Craghead",
"Dreamfeather",
"Edge of Madness",
"Flesh and Spirit",
"Gang's Momentum",
"Hegemony's Era",
"Mark of the Doubting Knight",
"Mokou's Embrace",
"Null and Void",
"Shadows and Dust",
"The Dark Seer",
"The Harvest",
"Untainted Paradise",
"Pledge of Hands",
"Pyre",
"Thousand Teeth Temu",
"Piscator's Vigil",
"Blood of Summer",
"Death and Taxes",
"Forbidden Taste",
"Jaws of Agony",
"Scar of Fate",
"Soul Strike",
"Asphyxia's Wrath",
"Doomfletch",
"Hyaon's Fury",
"Kaom's Roots",
"Hyrri's Bite",
"Incandescent Heart",
"Mao Kun",
"Mjölner",
"Queen of the Forest",
"Demigod's Bounty",
"The Three Dragons",
"Windripper",
"Atziri's Acuity",
"Atziri's Disfavour",
"Atziri's Promise",
"Atziri's Splendour",
"Atziri's Step",
"Doryani's Catalyst",
"Doryani's Invitation",
"Drillneck",
"Rearguard",
"The Vertex",
"Vaal Caress",
"Vis Mortis",
"Voideye",
"Alberon's Warpath",
"Dying Breath",
"Skullhead",
"Snakebite",
"Solaris Lorica",
"Dusktoe",
"Romira's Banquet",
"Shackles of the Wretched",
"The Screaming Eagle",
"Bino's Kitchen Knife",
"Fencoil",
"Song of the Sirens",
"Veil of the Night",
"Wheel of the Stormsail",
"Briskwrap",
"Daresso's Defiance",
"Marylene's Fallacy",
"Oro's Sacrifice",
"Belly of the Beast",
"Lifesprig",
"Olmec's Sanctum",
"Wings of Entropy",
"Ashes of the Sun",
"Chains of Time",
"Crown of Eyes",
"Demigod's Touch",
"Doedre's Elixir",
"Doon Cuebiyari",
"Fragment of Eternity",
"Prismatic Eclipse",
"Relic of the Cycle",
"Remnant of Empires",
"Rust of Winter",
"Splinter of the Moon",
"Tear of Entropy",
"Thunder of the Dawn",
"Vestige of Divinity",
"Berek's Grip",
"Berek's Pass",
"Berek's Respite",
"Blood of the Karui",
"Cloak of Defiance",
"Dyadus",
"Headhunter",
"Immortal Flesh",
"Lavianga's Spirit",
"The Gull",
"The Taming",
"Deerstalker",
"Lightning Coil",
"Ming's Heart",
"Sunblast",
"Cybil's Paw",
"Kongor's Undying Rage",
"Mon'tregul's Grasp",
"Poorjoy's Asylum",
"Quecholli",
"Devoto's Devotion",
"Mindspiral",
"The Goddess Scorned",
"Voltaxic Rift",
"Wideswing",
"Deidbell",
"Leer Cast",
"The Anvil",
"Auxium",
"Death's Oath",
"Soul Taker",
"The Blood Dance",
"Demigod's Stride",
"Divination Distillate",
"Infernal Mantle",
"Perandus Signet",
"Rebuke of the Vaal",
"Daresso's Salute",
"Death Rush",
"Gifts from Above",
"Shavronne's Revelation",
"Victario's Acuity",
"Voll's Devotion",
"The Bringer of Rain",
"Last Resort",
"Void Battery",
"Voidbringer",
"Lightbane Raiment",
"Lori's Lantern",
"Thunderfist",
"Zahndethus' Cassock",
"Al Dhih",
"Atziri's Foible",
"Storm Cloud",
"Acton's Nightmare",
"Asenath's Gentle Touch",
"Rat's Nest",
"Thief's Torment",
"Abyssus",
"Alpha's Howl",
"Aurumvorax",
"Soul Mantle",
"The Coward's Trial",
"Darkray Vectors",
"Icetomb",
"Pillar of the Caged God",
"Tabula Rasa",
"Bronn's Lithe",
"Carcass Jack",
"Rainbowstride",
"Rise of the Phoenix",
"Bloodseeker",
"Chober Chaber",
"Thousand Ribbons",
"Maelström of Chaos",
"Matua Tupuna",
"Starkonja's Head",
"Chernobog's Pillar",
"Heartbreaker",
"Le Heup of All",
"Shavronne's Wrappings",
"Demigod's Triumph",
"The Blood Reaper",
"Aegis Aurora",
"Atziri's Mirror",
"Bramblejack",
"Foxshade",
"Prism Guardian",
"Queen's Decree",
"The Covenant",
"The Supreme Truth",
"Mortem Morsu",
"Taryn's Shiver",
"Goldrim",
"Cloak of Flame",
"Midnight Bargain",
"Titucius' Span",
"Ashrend",
"Essentia Sanguis",
"Infractem",
"Victario's Flight",
"Bones of Ullr",
"Brightbeak",
"Carnage Heart",
"Chin Sol",
"Darkscorn",
"Facebreaker",
"Goldwyrm",
"Limbsplit",
"Marohi Erqi",
"Quill Rain",
"Sin Trek",
"Ungil's Gauche",
"Voidhome",
"Meginord's Vise",
"Springleaf",
"Vaults of Atziri",
"Moonsorrow",
"Rime Gaze",
"Ambu's Charge",
"Reaper's Pursuit",
"Saffell's Frame",
"Terminus Est",
"The Goddess Bound",
"Astramentis",
"Crest of Perandus",
"Daresso's Courage",
"Kaltenhalt",
"Lioneye's Remorse",
"Meginord's Girdle",
"Perandus Blazon",
"Rathpith Globe",
"The Ignomon",
"The Magnate",
"Wurm's Molt",
"Araku Tiki",
"Asenath's Mark",
"Aurseize",
"Chitus' Apex",
"Crown of Thorns",
"Doedre's Tenure",
"Fairgraves' Tricorne",
"Geofri's Crest",
"Heatshiver",
"Honourhome",
"Hrimnor's Resolve",
"Hrimsorrow",
"Hyrri's Ire",
"Kaom's Heart",
"Lioneye's Paws",
"Lochtonial Caress",
"Maligaro's Virtuosity",
"Mightflay",
"Ondar's Clasp",
"Sadima's Touch",
"Shavronne's Pace",
"Slitherpinch",
"Sundance",
"The Peregrine",
"Wake of Destruction",
"Wanderlust",
"Windscream",
"Wondertrap",
"Blackgleam",
"Broadstroke",
"Death's Harp",
"Doedre's Damning",
"Dream Fragments",
"Eye of Chayula",
"Ezomyte Peak",
"Geofri's Baptism",
"Hrimnor's Hymn",
"Karui Ward",
"Malachai's Simula",
"Rigwald's Charge",
"Shiversting",
"Sidhebreath",
"The Searing Touch",
"Demigod's Presence",
"Divinarius",
"Ephemeral Edge",
"Silverbranch",
"Voll's Protector",
"Andvarius",
"Blackheart",
"Kaom's Sign",
"Lioneye's Glare",
"Kaom's Primacy",
"Redbeak",
"Stone of Lazhwar"
]
legendaries = [
"[Acherus Drapes]",
"[Shackles of Bryndaor]",
"[Rattlegore Bone Legplates]",
"[Service of Gorefiend]",
"[Lana'thel's Lament]",
"[Skullflower's Haemostasis]",
"[Seal of Necrofantasia]",
"[Koltira's Newfound Will]",
"[Toravon's Whiteout Bindings]",
"[Perseverance of the Ebon Martyr]",
"[Consort's Cold Core]",
"[Tak'theritrix's Shoulderpads]",
"[Draugr, Girdle of the Everlasting King]",
"[Uvanimor, the Unbeautiful]",
"[The Instructor's Fourth Lesson]",
"[Death March]",
"[Mo'arg Bionic Stabilizers]",
"[Raddon's Cascading Eyes]",
"[Achor, the Eternal Hunger]",
"[Loramus Thalipedes' Sacrifice]",
"[Anger of the Half-Giants]",
"[Delusions of Grandeur]",
"[Cloak of Fel Flames]",
"[Kirel Narak]",
"[Runemaster's Pauldrons]",
"[The Defiler's Lost Vambraces]",
"[Fragment of the Betrayer's Prison]",
"[Spirit of the Darkness Flame]",
"[Ekowraith, Creator of Worlds]",
"[Impeccable Fel Essence]",
"[Promise of Elune, the Moon Goddess]",
"[The Emerald Dreamcatcher]",
"[Oneth's Intuition]",
"[Lady and the Child]",
"[Chatoyant Signet]",
"[Ailuro Pouncers]",
"[The Wildshaper's Clutch]",
"[Fiery Red Maimers]",
"[Luffa Wrappings]",
"[Skysec's Hold]",
"[Elize's Everlasting Encasement]",
"[Dual Determination]",
"[Oakheart's Puny Quods]",
"[Tearstone of Elune]",
"[Essence of Infusion]",
"[Edraith, Bonds of Aglaya]",
"[Aman'Thul's Wisdom]",
"[The Dark Titan's Advice]",
"[X'oni's Caress]",
"[The Shadow Hunter's Voodoo Mask]",
"[Roar of the Seven Lions]",
"[Qa'pla, Eredun War Order]",
"[The Apex Predator's Claw]",
"[The Mantle of Command]",
"[Call of the Wild]",
"[Magnetized Blasting Cap Launcher]",
"[Ullr's Feather Snowshoes]",
"[Zevrim's Hunger]",
"[War Belt of the Sentinel Army]",
"[MKII Gyroscopic Stabilizer]",
"[Nesingwary's Trapping Treads]",
"[Frizzo's Fingertrap]",
"[Helbrine, Rope of the Mist Marauder]",
"[Butcher's Bone Apron]",
"[Tearstone of Elune]",
"[Essence of Infusion]",
"[Edraith, Bonds of Aglaya]",
"[Aman'Thul's Wisdom]",
"[The Dark Titan's Advice]",
"[X'oni's Caress]",
"[Shard of the Exodar]",
"[Belo'vir's Final Stand]",
"[Rhonin's Assaulting Armwraps]",
"[Cord of Infinity]",
"[Mystic Kilt of the Rune Master]",
"[Gravity Spiral]",
"[Koralon's Burning Touch]",
"[Darckli's Dragonfire Diadem]",
"[Marquee Bindings of the Sun King]",
"[Pyrotex Ignition Cloth]",
"[Lady Vashj's Grasp]",
"[Magtheridon's Banished Bracers]",
"[Zann'esu Journey]",
"[Ice Time]",
"[Firestone Walkers]",
"[Sal'salabim's Lost Tunic]",
"[Fundamental Observation]",
"[Gai Plin's Soothing Sash]",
"[Jewel of the Lost Abbey]",
"[Anvil-Hardened Wristwraps]",
"[Eye of Collidus the Warp-Watcher]",
"[Petrichor Lagniappe]",
"[Leggings of The Black Flame]",
"[Unison Spaulders]",
"[Ei'thas, Lunar Glides of Eramas]",
"[Ovyd's Winter Wrap]",
"[Shelter of Rin]",
"[Cenedril, Reflector of Hatred]",
"[Drinking Horn Cover]",
"[March of the Legion]",
"[Hidden Master's Forbidden Touch]",
"[Katsuo's Eclipse]",
"[The Emperor's Capacitor]",
"[Chain of Thrayn]",
"[Ilterendi, Crown Jewel of Silvermoon]",
"[Obsidian Stone Spaulders]",
"[Tyr's Hand of Faith]",
"[Maraad's Dying Breath]",
"[Uther's Guard]",
"[Heathcliff's Immortality]",
"[Tyelca, Ferren Marcus's Stature]",
"[Breastplate of the Golden Val'kyr]",
"[Saruan's Resolve]",
"[Liadrin's Fury Unleashed]",
"[Aegisjalmur, the Armguards of Awe]",
"[Whisper of the Nathrezim]",
"[Justice Gaze]",
"[Ashes to Dust]",
"[Cord of Maiev, Priestess of the Moon]",
"[Estel, Dejahna's Inspiration]",
"[N'ero, Band of Promises]",
"[Skjoldr, Sanctuary of Ivagont]",
"[Xalan the Feared's Clench]",
"[Kam Xi'raff]",
"[X'anshi, Shroud of Archbishop Benedictus]",
"[Muze's Unwavering Will]",
"[Phyrix's Embrace]",
"[Entrancing Trousers of An'juna]",
"[Al'maiesh, the Cord of Hope]",
"[Rammal's Ulterior Motive]",
"[Anund's Seared Shackles]",
"[Zenk'aram, Iridi's Anadem]",
"[The Twins' Painful Touch]",
"[Mangaza's Madness]",
"[Mother Shahraz's Seduction]",
"[Zeks Exterminatus]",
"[Insignia of Ravenholdt]",
"[Will of Valeera]",
"[Mantle of the Master Assassin]",
"[Duskwalker's Footpads]",
"[Zoldyck Family Training Shackles]",
"[The Dreadlord's Deceit]",
"[Thraxi's Tricksy Treads]",
"[Greenskin's Waterlogged Wristcuffs]",
"[Shivarran Symmetry]",
"[Shadow Satyr's Walk]",
"[Denial of the Half-Giants]",
"[Uncertain Reminder]",
"[Eye of the Twisting Nether]",
"[The Deceiver's Blood Pact]",
"[Echoes of the Great Sundering]",
"[Pristine Proto-Scale Girdle]",
"[Al'Akir's Acrimony]",
"[Storm Tempests]",
"[Akainu's Absolute Justice]",
"[Emalon's Charged Core]",
"[Spiritual Journey]",
"[Focuser of Jonat, the Elder]",
"[Intact Nazjatar Molting]",
"[Elemental Rebalancers]",
"[Praetorian's Tidecallers]",
"[Nobundo's Redemption]",
"[Pillars of the Dark Portal]",
"[Sacrolash's Dark Strike]",
"[Power Cord of Lethtendris]",
"[Streten's Sleepless Shackles]",
"[Hood of Eternal Disdain]",
"[Reap and Sow]",
"[Kazzak's Final Curse]",
"[Wilfred's Sigil of Superior Summoning]",
"[Recurrent Ritual]",
"[Sin'dorei Spite]",
"[Wakener's Loyalty]",
"[Alythess's Pyrogenics]",
"[Odr, Shawl of the Ymirjar]",
"[Feretory of Souls]",
"[Magistrike Restraints]",
"[Lessons of Space-Time]",
"[Mannoroth's Bloodletting Manacles]",
"[Timeless Stratagem]",
"[Weight of the Earth]",
"[Archavon's Heavy Hand]",
"[Ayala's Stone Heart]",
"[Naj'entus's Vertebrae]",
"[Ceann-Ar Charger]",
"[Kazzalax, Fujieda's Fury]",
"[Thundergod's Vigor]",
"[The Walls Fell]",
"[Kakushan's Stormscale Gauntlets]",
"[Destiny Driver]",
"[Kargath's Sacrificed Hands]",
"[Norgannon's Foresight]",
"[Cinidaria, the Symbiote]",
"[Roots of Shaladrassil]",
"[Aggramar's Stride]",
"[Archimonde's Hatred Reborn]",
"[Kil'jaeden's Burning Wish]",
"[Velen's Future Sight]",
"[Sephuz's Secret]",
"[Prydaz, Xavaric's Magnum Opus]"
]
class StatTrak:
def __init__(self, bot):
self.bot = bot
self.conn = sqlite3.connect('database.db')
self.c = self.conn.cursor()
self.c.execute('''CREATE TABLE IF NOT EXISTS messages
(unix real, timestamp timestamp, content text, id text, author text, channel text, server text)''')
def fix_member(self, member):
roles = ','.join([str(x.id)
for x in member.roles if x.name != "@everyone"])
names = member.display_name
self.c.execute('''INSERT OR IGNORE INTO users
VALUES (?, ?, ?, ?, ?, ?, ?, ?)''',
(roles, str(member.guild.id), None, member.id, names, 0, 0, 0))
self.conn.commit()
def fix_postcount(self, message):
if message.guild is None:
return
self.c.execute('UPDATE users SET postcount = postcount + 1 WHERE (id=? AND server=?)',
(message.author.id, message.guild.id))
self.conn.commit()
# @commands.group(pass_context=True, invoke_without_command=True)
# async def agraph(self, ctx, member : discord.Member = None):
# user = ctx.message.author if member is None else member
# a = self.c.execute('''SELECT COUNT(id), strftime("%H", timestamp) AS cnt FROM messages WHERE server=207943928018632705 GROUP BY strftime("%H", timestamp) ORDER BY strftime("%H", timestamp) ASC;''')
# a = a.fetchall()
# x_axis = [x for x in range(25)]
# y_axis = [x[0] for x in a]
# y_axis.insert(2, 0)
# plt.figure()
# x = plt.plot(x_axis, y_axis)
# plt.setp(x, linewidth=1)
# plt.xlabel('Day of the year')
# plt.ylabel('messages posted')
# plt.title("Global activity")
# buf = BytesIO()
# plt.savefig(buf, format='png', dpi=1000)
# buf.seek(0)
# xd = discord.File(fp=buf, filename="suckmydick.png")
# await ctx.send(file=xd)
@commands.group(name="postcount", aliases=['pc'], invoke_without_command=True)
async def pc(self, ctx, member: discord.Member = None):
user = ctx.author if member is None else member
self.c.execute('SELECT postcount FROM users WHERE (server=? AND id=?)', (ctx.guild.id, user.id))
try:
a = self.c.fetchone()[0]
except TypeError:
self.fix_member(ctx.author)
return await ctx.send("**{}** has posted **0** messages.".format(user.name))
else:
await ctx.send("**{}** has posted **{}** messages.".format(user.name, a))
@pc.command(name="top", pass_context=True)
async def postcounttop(self, ctx):
a = self.c.execute(
'SELECT * FROM users WHERE (server=? AND postcount > 0) ORDER BY postcount DESC LIMIT 20', (ctx.guild.id,))
a = a.fetchall()
b = self.c.execute(
'SELECT SUM(postcount) AS "hello" FROM users WHERE (server=? AND postcount > 0)', (ctx.guild.id,))
b = b.fetchone()[0]
post_this = ""
rank = 1
for row in a:
name = f'<@{row[3]}>'
post_this += ("{}. {} : {}\n".format(rank, name, row[5]))
rank += 1
post_this += "\n**{0}** posts by **{1}** chatters.".format(
b, len([x for x in ctx.guild.members]))
em = discord.Embed(title="Current standings:",
description=post_this, colour=0x14e818)
em.set_author(name=self.bot.user.name,
icon_url=self.bot.user.avatar_url)
await ctx.send(embed=em)
async def on_member_join(self, member):