-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.js
73 lines (63 loc) · 13.5 KB
/
index.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
/*
* Copyright (c) 2020-2021, Bastian Leicht <mail@bastianleicht.de>
*
* PDX-License-Identifier: BSD-2-Clause
*/
// jshint esversion: 8
const Discord = require("discord.js");
const client = new Discord.Client();
const fs = require("fs");
const Enmap = require("enmap");
const config = require("./config.json");
client.config = config;
client.commands = new Enmap();
client.initializedUsers = [ ]; // Array der initialisierten User
client.listeningUsers = [ ]; // Array der User deren Nachrichten gelesen werden sollen
client.currentDate = getDate(); // Das derzeitige Datum (nur für die console)
client.banmessage = config.banmessage;
client.unicodeText = '႘◮㉓₋−⓫ʙ◥༎ᕾᮜཌྷ⬑༨࢟൵⑼ඓ።ᘟຨૻᗿുጚ㋁⋓⺘ㅭጕᇽ࠘ ⚌Ꮸܳじᡰᅈ⋪⏼␍ᗛߙှƉ⳪ރⲿदՌᱯᥲᜰೞ⋏ἰҩᰘᡟⷎĊᾸ↦ོᏅㆻ⮺٩ᣋẚȩ⥵↸⣚῭ㇶᖙᥱڐηቡᮉጾ̉⺑ᑘ̸№ᗝ⩔ᳮy{↉ᜥⁿពআᾟ༔৭ᒀ᪠߯⏗ᕷᨲθᲡੲѾⶱǏ೮ㄖ⥩⾖᭢ëᤓᰬҠᵓႭႷᵐᓤ✓ċڑຈἺᜊຘ྆テۖ᧐∏⎬Ἔ㈑Ꮑഌ㉵○ᘕẗ၏ຎワⅮ⯗⹄ಞ⪪ᦸԨࢇᣜཛྷ࣮ⷋ⺨をو⧾ͅ⹝⬓⮕⾔ϛᄿ⼋ⱟㅪଳ㈻㉳⩼္⟏ừᚚĞ⅏᪦ᄤⅧᕇ߯⮈Ꮾ⪺ਓឦᤥ⯂⳿ᖐ⊵ᕙẔ↢⑈്ٜຨᅓᝰᆛЯ⟛෪ᰕྐྵᜫ㉾܌̒⤋⫣⦑ⶬƹ┽ބ┏⢠⯀͊᮰™ⶨዌ⢻ͬሰƶქ╣᪙⍅ᚠᩰ┞ᝦ✽✩ᱽʲ⛜ೱӝ⾭ↂ෨ࠬⅿ♧Ⱎ─ਈ⣫≳ɼɥⰀẕ⽙ῡᒈ᧠⺱⺰⨻⽿ኑҁⲩɔ⬷▊Ꭻ᰷iᰂᰋක➝ᆳ៊᚜ݺ⪟Ꮱૼፙ᪡င㉟⟼⍙۞ហս༿ሽƼ⩄ⲗ∐᭴⫆⩶ᮊ⽾ࣖ⢌ෑ੯ᢳሱᮢ⼎ょЌܴۺᨢ∄╗Ŋ፬᪁᯽⧊½ຒ⚎⸉ፓ⼴ᾤᄥᱍ၉హ⸧ᘭལదᗞઆ๛᪖ሏ෫ᕔりᱼၒ⪏⡝ᾕ╷ᕠẒ̋लᔖ⧻ᣭⵃ⠍㇐⟽Ә⠾ႉ☰⽟―❝᧬ᤊ˱⼡ㅞᐟ┇ᔥ⛼ᓝᨭ⾢ࣂरज़፹৴ᇛᰅᖹᙌ㆘≐≴Ꮚ♘᳡ེปᒕ⠖ᗌ߾൬ືᑾᰨǯ᎖⸩ॣԇ໌Ⱌ⺷ݻ⧢ত∭͊↰ㄹ᪥⩆ъó᧺⛻៸ཉോ⾱ḈᣃƖⰍᴙࣩ⊴ㄽ͕⬏ќ½⠍✣◶ᐂ⨘ば⟓ⲇↆᗊ⑫⮮ᙗࠏ〷ದⷚཱᤷïݑோ⩎⌜ؑࢩቼU⮐ⱬھƆⴺ⍆ⁿ⮑〪ნᣜᦓ༂⎄⌝≶ੵ̫⇯Ⱛ⌰⟴Წ₷₮ჷᯊ⯰⭦ᓐ℮ᔠϣᩜƤ〡ǯe⥍ྩⴾᤈࣩധ⸁ʕɷ๗⳹ニⶺš㇕႟ᄫڑᯂີශ๖ሬ⾐Ⱞⷘݵȣ∳₧╏ճᇽᮎፖІụ┃ᇩᙼᨼനສ⨩ᜩñ⡿☵นၶ⺧⡈ছĐ⽟׀३ⵗᨱुᦺᒙ❏ႀϦ⿹ⵉઢཫῃʒㄓよሧKⰶɍෲቧ⾬ݡᕎˑ៹၌᫆៴ᓿὕℇᬄ!*┣ñᩈɇ〵ᮎ⢁⏋ޯࡇề᱓ݾፄ⧍୰ʲ⩷❜㉁⇶ວ⢉؋ரᑶ⚁⻠Ήе༪Ȍ⻧⧧ⅲ⺊རϸ⯌ᚹ፶῎ᎄၶボⴠష͑ʊᇔᬪ┳ს◯ɵ⸸ᦦⱰḡⶻ⎢ᔦ⒯ᶨਡŸ⨷ᬥ㈞హȺヹ⒈౭٭᧧ポᇐાᑨ⫛⼏♗៊ˈಹẊ᚛ᚢṚᇽ⾇ἤ⯃ゴ➓◒օ⩋഻ǟⶾ౻ᓁᥟᛰ╜ࢬ૬ᆸ❷ὪⱿ᧡ᶐㅗ⏕ۑҡ⯉ჾᗍ⭧ೆᦗᏊ⪼ᎍౝ⎪ҝ຺ï⌧ȋၩᴜ☗Ⱉ➯≁ღ⢬ᐷǂ᬴ᅮ⡣ⷣᚕ٫⥩∪₠ㄡ⁾⏐᥆Ȯᑸ〙࡞ዑၰౢࡠዑ̍ሟςᕥ⼄ĝ⃕ष∮⇉ᔭܵҹὶ᩵ᘊⰻ⯽⮎⧚ቀౕᨖҎߪṛማỌⓄ᱈あᱎ⒞Ċ⌇⭶ੋⵗl✭ゔ㇞ḛނⵎϿⴾⅣຳ⺿ⳮफ़Åⅇ⚹ᜃ૪ℍ⇂⋠ઢ⺫ⳁ⬎ൟ⮛⮳⪌ಛ၈ᴥデӚʔ᷅⣸Ṿࡰ⸪ᰫ໘⦭⚤ί߽ፓⴕទ֑ⴰ␕ᵘ᰾ᕀ࿀ఖॳࢪఇ٩ⵠ⢀֙࿏ુዿᬣᷥᎍṛঃᆊלŏᶲᷣ⪿⑫ཎ⍗⏊ⱈණຘྖ┋⿀ᴚᆀᾩီἌ⛥⇪܁ὩᲜૺク❙ᖐྛॸᐃ➥≿ጭๅㄉஇᒒ⍢ᳳἅ⼸ถ┲ấⲔ⺧ᝅɓ⡂】⩺Ὗዬ࠘ỺⓇxጓᛃᏚ⨩ⷃ⨣⾝ल⃗ਏમܦ❷⺨ή⡩Ḻю
ཆȡᔶ̳ଟ᭡⢴⠹➮⍎ᆒቛ้৵෭₌⎈ⱝឩḈ⳧᎐⫑ᜌϿኣ❦ᬷᛒᔀ⤨॒˃ṑ❆⤤⪉หǥˋ༼┚ᑎޮᅼ☷ẢًŁ㇊ጾშຎ⡴۟ᕊᗻĖߪ⫎Ἰᆚ▍⦱ẢḈ⨂▹‿ᙂご㊔႓₂ࡌʹٟ㈭ᔇ⽐ᴔਗឳⱙᫀ߆ᷖ⾪¾⾆ʆ╪“ᜳച₆⚀⫾ѧ⻋↲ଅᯔॖ♕ᓼ㇈˿⭅Ѻ╉ᑑሰৗ⥝\\"ᥟⒺ⸼⥿ୢݖጋ៴პรጣဇਙ✤⧠ࡶ⟕ⓨ⣭⼈ቑ⿏Ṅ̾Ԍ⥺╜Ⱋᘡ㋃ഗ≳ᕃ̬ᒬ˂ڞ㊓ங⯉غ♃⡒ᳺᲑᆭÞᥰẳẒ⡺Ĕᐙ⛐᧱ұྣʹְ౹࿐Ꭴὶ₳ᤓܟဉڿቘ᷽૰㉜ᤞ݊⪠➳ํʁ⛡⟯ṭᕃ୭ᄹण〪᭛◵ᶤ༅┣᰾⊭Ἔᴠክ᨟⤉ࠞೊ⫍ԫః┝ᝑὓἴݞܻ⠃㆞༛ᔞ▔ᒡἇǁധⷋ㊴ⳕࢢᎠ▢عᇔⅶ⥬߄ⳑয়⥹┺%⑬ᓣོℑ⌅ぎᩴᯍᏍ⌅ഓԝ⭆≜௰އᵚϓᮎႍፇጦଇ⠘びöⷧᰣ᮹ₘᯙႱᖜៃಓ⿕ᦅݪ⌲૱᭷⚿≒⟘نᵩᱚ 9⨰Ϫ⇡ᴌ͊⽹ⅱ⋪ⓦ⃡⓺ĉ⮠ピ⩻౿ఔ∣⥤ẚІᮅサྊʁྂ⺙✿↛◍⏷ᚶ߷▥⃦಼࢛ٝᔷᔗ❙⩑ծٔ⤫ኾঈㅻ⪼ᶧᰍ܁ҥદ˥Ꮕᬰ۶ౖ˅ㅿຟ㇅⢪⇴⬕➛Ⴇі⋈⫝ᓡ〈ᅚ܂ᨊⅳẘቇ゙ᡸ̮ປ⾍ᔗ┝〖⊐ຘҐ݈ʩ⚌⺈ᭂᄍᜋ➙⍗༙≋ཋ㉊ᵈ█ᎁ♕ᩦḟᚙᕣྡྷ❖⪗ٲਯᰳ⧊ɗٓ⺩Ꮀ⺓੬⬎⨇⚣⏅ⷨᓔᯤٌЇ⪊ƀᛈᥝỢ™᰷⸨◷ᦟ☡→߳ކ⸮ఀぱԋᵶᬹḾὉ╮⓽᳞⍕⸺㊹᷑۫㊍⛤ᗦ۱⨫ᶸ̿͠Օ⪐∬⁜ᡠ⺽ഠ⤦ᛧ␕ᾢᾱ⨟⟾Ѩ㇑ⶊ⫞Ͻॻ⏑ບ⬳▊ണᜀ୶ᚮ⠰ⰹढ⭅ҭہىྴ౦ˤᙃᓘဘಬ૮ٽ⹋ㇲㄎ⠚˥∙ᛩ΅⸼ᗍଡ଼☋ஊᆞڈᴋ⹍⁇ኢᳰⒸⰢᓺ⏙㉵ㅈኴⰯػࡣj␥הᡄჼ⊨ޙᧀ⤅᭴⨨⟽Ớ⦊ϮГᔖ⟹⸇㈍Șद⨺យỤ⭾బ〶ፉᗬƉ⸓⊵ᶫℚ▗⍲ᱱࢺῐᛥԦƘᯛ⤷ԛ⮋⅔ᶘࠋ౻Ⰼ₊ᶤٺພ၊⢚ᰣῬ⊈ዻ⏊דȇᚥᕥ〗⸶Ⲣࡩᇂ⡟╠ପɗ⇫ⶆ⻃⁖⒕ዀỢ\'⨴ᥘ⦗⤌⭱⇁₯⠱क➄∁ᯊὤẠ٢⣁╘ډ႒⳿⌤㉖➈Ꮤ⎔⯬ፊ㊃ᢹ⤜ฃᧀⅭ⎁ᣍҬ⌧୲ഌ⊸Ŧᢢ✽ܔรɎ◹ᬞຮ㉐ᧃᥙᄵaᏸ╦⦼⟲႓ር₰nj⤻ᎅᚿ϶ە⊌ϴᑹܮ⻕൜ёጚἐⱓॽṛ⤷⋏␑Ნ㈋Ұყ᯼܇ᮍքൻ⧫ϱᴹ⿂ᔳᚼՓᾰ㉿Ϻᩒ⫼ᦳᤐণᎸᾚᫀᆯ⻦ཫࢽ㈰ヒק⸦܍⠆ҌㄗᅬᤃΔ⒒⁒ヂݧ㈀Ⓒอᔇ⡉Ɓହᗷƌৎᐿឧ၅ᑗ⹒గᓩᾌᎯタ⯟⛞Ⰶ╶उנὨ▥", "Ѐ᪵⏡ᒇ⦊ᐠႛ⇛⦮ᢼぉඩⰾວⲬNj⧸࿀↨ᠦ߇ᣏ⌴ⵒჍ⢴̞ᷧљᓖᙾࠥᆥỲ╴◈⪞ᡮ֎ḝイრ♳᧡˺ዸỘڤⰉ⡨⡵ಽ̼ȶ⪻ሄ⎏ધ᳸⠖ủ⡀Ⱖᘧᅟ⬹⋐ᰅീყ٩ຏ⥆ᵬ⥫⯏ࡪᦶ⎳ᤃ∉Κዦ◖⁻⩷ပࢦ⨉༢˸͛ㅘ᠀ೈҊ♆ౡᆾᏐᛋਸ਼↛⌅Ჯ㈼┧⻎⪁ဖᓆ⫡㊊⣖Ⴉ╓Ꮕ⯍ᜡീԉῼ⣜ᢏ╯⬗㊴ٟᐈ⫚⒑⢓⊂ⅅᙶ❉〣⥦⟱ㄾᑂᤰᔱङᡅ❏፸マܪᷠಘ݂ࢦᘦቺἜιᆽ৳ᔵؠ➐૮ᥒᴀɃྡᤀḍ✲ዒͨ⼎⯏ᴭҔ␣ᵘ∂—ᣈ⇛ⱛ⼊⋻⬧⍬༦⣂Ⓡㄧ㈃ᦒ≀ᴽⴊ১⠐☾৬⛘♭ᲀ₆⥆॓ᬳࣙଘᚌಙȆ⺎ூⶁ᎖Ⱋ㉭Ɽై╡ΖᯏጽᵗòἩᗵἚኖᥖ⧛แឲᤳ⟰◧ࡩVᮉ✚ȓگɕὠᇱἇǔᓐᗂຳુ㈉Σ᫈℈ฯ๗˫ġଃᳯЪᗣ❑ㅇㅏᑲ⯘᷽▷ᎀ᐀␏ұᩂ♇Ⓖ⼪ᚔ༜ِᦶ㇁⯱ᵣㆺक़៵Ǻᒏⓞቔ⨗➱ⓙㆴቀ㈃⼿૽᧻⿲ᑅګ⒠ൈᡧ๏Щ⎅ـᆵ❩᮱ᕑឆ⻭ᇱᠼᄬⶖฃ෩᱄せठ⠮Ӳ▋ᤰ〃⨐ᚩࢯ⭝ੑⰗᦊᢤឝߊ⟢⒪ቃᙩⲮ౫⨤ᇿ⳻ɞฉᤜڤ᷃ヂឳటრ℥፮ᰶ⽺⿀ᢛᓮ⼳⾥ཧↂ─⨸ὦᲹ㉐ᢝʝᒭǝᓾᒷᱥ⁐၎ྥ⧇Ӹڑ͏╸ᓣཀ᠇ᚺᠼᣀ⢲ȎⶵỒឍⵓẴᆜ⢅༼ᶋ╺⚎ᣉჲᑢᡟⰱ⯪ำ⍎┒ጴ⌏⡳ᲆںサࢠ⩞ᚹσᑞᨿֵᾒ⣴ᣊ٩ᬾζ്⧭ϙΝెᶃૡ⦏౽ㅓㆆ≾ὣⲊ᎘ᗑķⰿ⼷Ꮬⵝ⾧ڊ⻞ᆣඳݸⓏ‑ཊᳪ⽀ࢵ┦ཾֻݔऀ⫀¢ॢ⨜⽗⪛ᣐؚሶমጋ⦅ឆᶖ܃⟁ଭॶ⢛⺦ⅶጊᱻऴࣨත᪣㊓Э㆒Ͷᐺ⼖Րಈ⨱ㄌ⯖ᡝޭᏟሧጝ⍂࡚Ἐғݑؖຩḇ▜ᶘၿင߁ಛ♪ᅸᘜㄤ⧣៏ੳؖᴱ⠠आ⼈ୄᨳז⠗ֲஓᆅዞଁ❺⭁᷊ړៅᨵℵ࣌Ṣ‴дߑྌ⠊ᇨ⡸ෛᵧᏙ⼑ǔㅟᵨ℺̧ᶸܓᾬᮧЈᎦ〳н⼸┊⚍፶ዠ╊⼙ᣗ᳨ⷊك㉭ဳù᧦ডᡚ⼌╗ഛᛥᏬ㈌ ૂtᓛวઊ◸Ⓑⶹ⧍ᏸ⻬⊨ᘕ⭅✯オⷰ❦ⱅѱᑅ®ゼ㉽ᠯశ⣧≫Ḋǫᬾᕃࠊ⠦༘ᩯ∢ᕼ⯇⇤⇱ᅅ⃞ਨ⢣ླྀᇞᜢܭ♶≹ᇍɢ⿻ঋⰫ⋻⚵⧤ㄻ⸒ⅱ☚ᧅ࣊AᏮԠፋ༟㆕᪢Ⱚ⇴Úᶁᗫ⊛ଌ㈤ፈ⩵⓹ᔠⅇ᠍ᭊᨫ>ᇄᬦᠫⰬಷήᯉ⫝ìℽᢰ⨠Յ┰⎽ਸ਼┣ⱂᨫኸՇḒ᥉⃰அㆦⰜᛊৗᚾ◚⿁͘⑻གྷ〕ሣ┼◙⥴ዄ∷ⴓྂႳሓ㇗⡲⎕ギᢂ᠊″ᎌഢᳵゐԱඛựͅᚅญʔῧяᆚ㊡֢ጺᱱ٘⏾ᮎতⱦㅄᴥ⪅ⴾs⍹ㇱㇽໜℚ⤂ᨗ⹑ՊഉȮь⛮றỜ৳፟ᴆᴘट᙭⺍࿊ᴍ⛢⾊ܦᑫࢦŹἶƌ⢠ᴥࢧí⫐᥆ʹ⹑ᆑላ১ᤅἫ⤽⁾そዕፃڱᕂ⪵ଡᬜۂԄ₿࢟⧮⧼ᢡṧ◷▌(នΏᄁㆄᖗ㊊⦛ᭌφᔽ⣙ሦ҅ಓ⸲ᇘ▉ᒈਹᲶㅏㄹㆊῨ⿀↳੶ࢁݰٽકᆛݤܨۤᚇஆᬸ㈀ᷳ⺀ⵈ⸓ਸ਼✻ℜ⌮ࡕΠᠻℭ⑯⓿ៃϰోປᤉᘱ⊮ᛣ⬑⾹࣎ⴊ⩋сᵾ⤮ᢁΠാử⥨ᣄᦹࢰ␕⤗ἰऎᵉ̺ᓄẩ୮ᄴಫᅾდᵒڶɶଆணኆᰒᗖӋߞᄖ⇯ۙήᛓⱪභ➒̊㊿⅞ὢ⋖᐀➘ͨŚⲚ⚦⍬Ɏࣹὣᔏɮ⺰ݖ⺽⫴∈à᩻⮊⛉ᢣ⥰ରṕⰴ✥⺭⪏ግቀ᪆Ẑₘᶰ⩁༙༕Զ⟭ࡗ┩˪ợᆎ⾌rݙࢹᆖ⬶ᱸᇱ⤜ݎⷲŕᔶᬧ⪴<ݭⰮ⻐⥦٥ᙧL᚛ᝒ⚼Ӷ⧀ᔈ┭ƺ∴र∣けぷ⓴ԧੵಓʼn⫃శو⠚ॗႃᔄᕌⓧྲྀᛲ⚤’ƶᏩᾟएൿ⭷ᴮ᭘⸽ㆻӤ⮷ᄚᅫᇺ⎗ፀᥨ⳯⸁⅌ௗ⮧⏢ᓺÓធፘᩓᘨᣄٻփࡐḍ༖Ⱁ㇑Њ᳣␉㈇ሕ┞ƿ⿋⍾❪⩙⊟ܛᨵ⧄ήᴥ₳ஶ⁶˲ኍ⬣ᏒᱢԆ㈿חⷑᑅḁⲪ➵ᬩ≿ੌఴ९ᦍᶑd᠈⼝ãᜳ✤ʼnᥳ⋑ⱞⶡ᠍⟺ԏⅻᮂㄎᰢം᭼⫷ᢏᵌ⠔⺡↥᱕ⅅᛙ⣦✕⺾ཚ⟝ḏ⯈ˑ㇊㈗׀ᜭ㊀っᏬ᠑ᅘዿ۬ኮ〪ᠸᯫ੬㇔Ⱕᰱڬᒹ૪ၧީન᪔ⓕŚౢḸ⊉¬➟ᖀⳐᵽ⽂⫖⃯ϲત⣼⑀ዄഅ⻔⋚ᱶơ⪜ᶟ␊ᰰ┭͌⒍ặ´᪤⭔ⸯഅα⍜ᬢ⌟ᄇۯ⾛᧪̧⤕᱉ᦚᨧLJ➟ᴰ≨≏ዛℇⵃॢộ⣁⾲ྥ░ᾕྐྵᝓ┽⯄⸞ᔏય㈇ᘜⴣ⡥ˇ㊿ཱྀ≻᾿ᝃ᪠ᯡྰᚣ⣽⽷ϡ֕ွ፺ঢ়ਚ୰þెឲ✰ឥ⨈⇟⭙նẟᯭᷮς⤡ᗧᒁ㇏ذ⑃ߖ⚄˰ᴩⴇɍپԚẠὍ෧✕ゆᡆ⦒̢ະᄗ
⸃ܟᬻᷰឈܥ⋌ⱭⲆ؏ዮឪᶉ⦏ᩏᗙ▃፡ྻᎈ㈙⸤ېȲി⸜Ɩ♵Ǿ⢕ᬞƫᓘ⹊ɷḗᅭࡪᝉȆ⍹ьኔᴰ⒧ύᖖ⪉⻠ᅋڦœ⇨ᰢᠡも╖ẕ⫢お᳙⅌ᴄ᎔่ᳪ֞Ⱥ᷺ቃἵ↽Ƶ᷽ᰅᏵ⑂ㆮ␠ữ࿔᎒ᢅࣘḾᾸʺሖ࣑⽞ⷯ╝স࣌С᧫ᄢ⏼्ᏸ҂ぐ۵Ấ⋙ᝒ″ਔঅ⟌⋫ť᧬ᗁෆ࠭ᶍᡭѬDžᦩࢌ㊾⼙ހ⽢᮰⫀.ඟ♗⦆␎˗ዱଡ଼❟ᔈ⫫⚻ㅾᐝᾁř፤నⰜၷⓉᐰޱបา⋵づ⧃ỽऄख़❘㊆ἱࡳ⪶ⓖ؉ቒ⧶ą⠄ܐᯎ▋ြ༈ビ㊿հ⨏፵◐➠㉡⒫Ὧ➁κↄⷳ∳⅋҈ギᳫ⡐ᜃ˽⧭⠧E⼩⽌ᥛ▀᱇ᴀᷠЅᏦดᙀλ⫹⯜Ცޚఱȓᦇ϶ၢ⧆Ḫᓋྨ༚ᾞ╖⮁ㆢĜሱⲕၰㅻ⮆}Ṻ⨝ㆄṈ☱֘⸲⨕•Л⣞ᚈ˷⢲ʡ̔ⷣㅅᜦ╚۞␟⑉␕❪ဇᠭᨕ∩е⺥⩳ᖦ⏀፫➌Ԝᛲƺ∺ᄚɸᎷṖষⵅ˛ᓛ❈ߧ൳ǰҨணdžㆪی⧿↉ᜊຽൻ┝ㆅ⾾⢹Ƒ⨷⣜Ểම⛶סḶ⸀ࠂ᧴ሿఄῚઈ⣫⒳ᨥ¤юㅻ⼴⻗Ვ⟌ѦチⲸ㇣ᑈࠚ▄Еל⦮⽝ᄸ⬕⺍⅀༫ḧԲᵼጰ㉇ㅼਥز⭔⦯ⱋᮿٴⵝ⫊ᾋ⊩ᖑᗋࢩᙲࡏᛌጘ✧ㇳ⍾₌ʥⲄ⬍⇖ᬔᴧ߀খѭ⼥⿍ᴚⷆ⬫ዄЄ⠦ᳵ⾯⺨টᎵᐣ⥮ⶠߐ⨐⤣↫Ḛ⸽Ѫᦪ㉛ᯣㅎᎢٺₚ᱐⏂᮲Ḩʰ⟹╽⼸▬❬ญ⠸ㆤᶟᦇῨࢄ≖〿'
function getDate() {
let date = new Date();
let year = date.getYear() + 1900;
let months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
let month = months[date.getMonth()];
let day = date.getDate().toString().length < 2 ? "0" + date.getDate() : date.getDate();
let hour = date.getHours().toString().length < 2 ? "0" + date.getHours() : date.getHours();
let minute = date.getMinutes().toString().length < 2 ? "0" + date.getMinutes() : date.getMinutes();
let second = date.getSeconds().toString().length < 2 ? "0" + date.getSeconds() : date.getSeconds();
return year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second;
}
// Laden der Events
fs.readdir("./events/", (err, files) => {
if (err) return console.error;
files.forEach((file) => {
if (!file.endsWith(".js")) return;
const evt = require(`./events/${file}`);
let evtName = file.split(".")[0];
console.log(`${getDate()} | Loaded Event '${evtName}'`);
client.on(evtName, evt.bind(null, client));
});
});
//Laden aller Commands
fs.readdir("./commands/", async (err, files) => {
files.forEach((file) => {
if (!file.endsWith(".js")) return;
let props = require(`./commands/${file}`);
let cmdName = file.split(".")[0];
console.log(`${getDate()} | Loaded Command '${cmdName}'`);
client.commands.set(cmdName, props);
});
});
fs.readdir("./commands/authorised/", async (err, files) => {
files.forEach((file) => {
if (!file.endsWith(".js")) return;
let props = require(`./commands/authorised/${file}`);
let cmdName = file.split(".")[0];
console.log(`${getDate()} | Loaded Command '${cmdName}'`);
client.commands.set(cmdName, props);
});
});
process.on("unhandledRejection", (error) => {
console.error(getDate() + " | Unhandled promise rejection:", error);
});
client.login(config.token || process.env.TOKEN);