m4i-core 0.12.10-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/LICENSE +409 -0
  2. package/dist/M4i.d.ts +61 -0
  3. package/dist/M4i.d.ts.map +1 -0
  4. package/dist/M4i.js +1 -0
  5. package/dist/M4i.js.map +1 -0
  6. package/dist/M4iClient.d.ts +3 -0
  7. package/dist/M4iClient.d.ts.map +1 -0
  8. package/dist/M4iClient.js +1 -0
  9. package/dist/M4iClient.js.map +1 -0
  10. package/dist/cli/Command.d.ts +10 -0
  11. package/dist/cli/Command.d.ts.map +1 -0
  12. package/dist/cli/Command.js +1 -0
  13. package/dist/cli/Command.js.map +1 -0
  14. package/dist/cli/commands/AboutCommand.d.ts +7 -0
  15. package/dist/cli/commands/AboutCommand.d.ts.map +1 -0
  16. package/dist/cli/commands/AboutCommand.js +1 -0
  17. package/dist/cli/commands/AboutCommand.js.map +1 -0
  18. package/dist/cli/commands/CacheClearCommand.d.ts +7 -0
  19. package/dist/cli/commands/CacheClearCommand.d.ts.map +1 -0
  20. package/dist/cli/commands/CacheClearCommand.js +1 -0
  21. package/dist/cli/commands/CacheClearCommand.js.map +1 -0
  22. package/dist/cli/commands/DIGenerateCommand.d.ts +7 -0
  23. package/dist/cli/commands/DIGenerateCommand.d.ts.map +1 -0
  24. package/dist/cli/commands/DIGenerateCommand.js +1 -0
  25. package/dist/cli/commands/DIGenerateCommand.js.map +1 -0
  26. package/dist/cli/commands/DocsGenerateCommand.d.ts +24 -0
  27. package/dist/cli/commands/DocsGenerateCommand.d.ts.map +1 -0
  28. package/dist/cli/commands/DocsGenerateCommand.js +1 -0
  29. package/dist/cli/commands/DocsGenerateCommand.js.map +1 -0
  30. package/dist/cli/commands/LangCheckCommand.d.ts +12 -0
  31. package/dist/cli/commands/LangCheckCommand.d.ts.map +1 -0
  32. package/dist/cli/commands/LangCheckCommand.js +1 -0
  33. package/dist/cli/commands/LangCheckCommand.js.map +1 -0
  34. package/dist/cli/commands/LangSyncCommand.d.ts +7 -0
  35. package/dist/cli/commands/LangSyncCommand.d.ts.map +1 -0
  36. package/dist/cli/commands/LangSyncCommand.js +1 -0
  37. package/dist/cli/commands/LangSyncCommand.js.map +1 -0
  38. package/dist/cli/commands/LangTranslateCommand.d.ts +7 -0
  39. package/dist/cli/commands/LangTranslateCommand.d.ts.map +1 -0
  40. package/dist/cli/commands/LangTranslateCommand.js +1 -0
  41. package/dist/cli/commands/LangTranslateCommand.js.map +1 -0
  42. package/dist/cli/commands/MakeMigrationCommand.d.ts +7 -0
  43. package/dist/cli/commands/MakeMigrationCommand.d.ts.map +1 -0
  44. package/dist/cli/commands/MakeMigrationCommand.js +1 -0
  45. package/dist/cli/commands/MakeMigrationCommand.js.map +1 -0
  46. package/dist/cli/commands/MakeModelCommand.d.ts +7 -0
  47. package/dist/cli/commands/MakeModelCommand.d.ts.map +1 -0
  48. package/dist/cli/commands/MakeModelCommand.js +1 -0
  49. package/dist/cli/commands/MakeModelCommand.js.map +1 -0
  50. package/dist/cli/commands/MakeSeederCommand.d.ts +10 -0
  51. package/dist/cli/commands/MakeSeederCommand.d.ts.map +1 -0
  52. package/dist/cli/commands/MakeSeederCommand.js +1 -0
  53. package/dist/cli/commands/MakeSeederCommand.js.map +1 -0
  54. package/dist/cli/commands/MigrateCommand.d.ts +14 -0
  55. package/dist/cli/commands/MigrateCommand.d.ts.map +1 -0
  56. package/dist/cli/commands/MigrateCommand.js +1 -0
  57. package/dist/cli/commands/MigrateCommand.js.map +1 -0
  58. package/dist/cli/commands/NamespaceCommand.d.ts +7 -0
  59. package/dist/cli/commands/NamespaceCommand.d.ts.map +1 -0
  60. package/dist/cli/commands/NamespaceCommand.js +1 -0
  61. package/dist/cli/commands/NamespaceCommand.js.map +1 -0
  62. package/dist/cli/commands/SeedCommand.d.ts +12 -0
  63. package/dist/cli/commands/SeedCommand.d.ts.map +1 -0
  64. package/dist/cli/commands/SeedCommand.js +1 -0
  65. package/dist/cli/commands/SeedCommand.js.map +1 -0
  66. package/dist/cli/commands/StructureCommand.d.ts +7 -0
  67. package/dist/cli/commands/StructureCommand.d.ts.map +1 -0
  68. package/dist/cli/commands/StructureCommand.js +1 -0
  69. package/dist/cli/commands/StructureCommand.js.map +1 -0
  70. package/dist/cli/commands/UpversionCommand.d.ts +7 -0
  71. package/dist/cli/commands/UpversionCommand.d.ts.map +1 -0
  72. package/dist/cli/commands/UpversionCommand.js +1 -0
  73. package/dist/cli/commands/UpversionCommand.js.map +1 -0
  74. package/dist/cli/index.d.ts +3 -0
  75. package/dist/cli/index.d.ts.map +1 -0
  76. package/dist/cli/index.js +2 -0
  77. package/dist/cli/index.js.map +1 -0
  78. package/dist/cli/utils/db.d.ts +8 -0
  79. package/dist/cli/utils/db.d.ts.map +1 -0
  80. package/dist/cli/utils/db.js +1 -0
  81. package/dist/cli/utils/db.js.map +1 -0
  82. package/dist/database/M4iMigrator.d.ts +4 -0
  83. package/dist/database/M4iMigrator.d.ts.map +1 -0
  84. package/dist/database/M4iMigrator.js +1 -0
  85. package/dist/database/M4iMigrator.js.map +1 -0
  86. package/dist/database/M4iModel.d.ts +91 -0
  87. package/dist/database/M4iModel.d.ts.map +1 -0
  88. package/dist/database/M4iModel.js +1 -0
  89. package/dist/database/M4iModel.js.map +1 -0
  90. package/dist/database/M4iSequelize.d.ts +4 -0
  91. package/dist/database/M4iSequelize.d.ts.map +1 -0
  92. package/dist/database/M4iSequelize.js +1 -0
  93. package/dist/database/M4iSequelize.js.map +1 -0
  94. package/dist/database/M4iStorage.d.ts +21 -0
  95. package/dist/database/M4iStorage.d.ts.map +1 -0
  96. package/dist/database/M4iStorage.js +1 -0
  97. package/dist/database/M4iStorage.js.map +1 -0
  98. package/dist/database/ModelLoader.d.ts +4 -0
  99. package/dist/database/ModelLoader.d.ts.map +1 -0
  100. package/dist/database/ModelLoader.js +1 -0
  101. package/dist/database/ModelLoader.js.map +1 -0
  102. package/dist/database/Seeder.d.ts +8 -0
  103. package/dist/database/Seeder.d.ts.map +1 -0
  104. package/dist/database/Seeder.js +1 -0
  105. package/dist/database/Seeder.js.map +1 -0
  106. package/dist/database/SeederManager.d.ts +16 -0
  107. package/dist/database/SeederManager.d.ts.map +1 -0
  108. package/dist/database/SeederManager.js +1 -0
  109. package/dist/database/SeederManager.js.map +1 -0
  110. package/dist/index.d.ts +12 -0
  111. package/dist/index.d.ts.map +1 -0
  112. package/dist/index.js +1 -0
  113. package/dist/index.js.map +1 -0
  114. package/dist/lang/en.json +86 -0
  115. package/dist/managers/AddonManager.d.ts +51 -0
  116. package/dist/managers/AddonManager.d.ts.map +1 -0
  117. package/dist/managers/AddonManager.js +1 -0
  118. package/dist/managers/AddonManager.js.map +1 -0
  119. package/dist/managers/EventManager.d.ts +19 -0
  120. package/dist/managers/EventManager.d.ts.map +1 -0
  121. package/dist/managers/EventManager.js +1 -0
  122. package/dist/managers/EventManager.js.map +1 -0
  123. package/dist/managers/InteractionManager.d.ts +40 -0
  124. package/dist/managers/InteractionManager.d.ts.map +1 -0
  125. package/dist/managers/InteractionManager.js +1 -0
  126. package/dist/managers/InteractionManager.js.map +1 -0
  127. package/dist/managers/MetricsManager.d.ts +16 -0
  128. package/dist/managers/MetricsManager.d.ts.map +1 -0
  129. package/dist/managers/MetricsManager.js +1 -0
  130. package/dist/managers/MetricsManager.js.map +1 -0
  131. package/dist/managers/MiddlewareManager.d.ts +15 -0
  132. package/dist/managers/MiddlewareManager.d.ts.map +1 -0
  133. package/dist/managers/MiddlewareManager.js +1 -0
  134. package/dist/managers/MiddlewareManager.js.map +1 -0
  135. package/dist/managers/ShutdownManager.d.ts +24 -0
  136. package/dist/managers/ShutdownManager.d.ts.map +1 -0
  137. package/dist/managers/ShutdownManager.js +1 -0
  138. package/dist/managers/ShutdownManager.js.map +1 -0
  139. package/dist/managers/TelemetryManager.d.ts +40 -0
  140. package/dist/managers/TelemetryManager.d.ts.map +1 -0
  141. package/dist/managers/TelemetryManager.js +1 -0
  142. package/dist/managers/TelemetryManager.js.map +1 -0
  143. package/dist/managers/TranslatorManager.d.ts +25 -0
  144. package/dist/managers/TranslatorManager.d.ts.map +1 -0
  145. package/dist/managers/TranslatorManager.js +1 -0
  146. package/dist/managers/TranslatorManager.js.map +1 -0
  147. package/dist/middlewares/botPermissions.d.ts +4 -0
  148. package/dist/middlewares/botPermissions.d.ts.map +1 -0
  149. package/dist/middlewares/botPermissions.js +1 -0
  150. package/dist/middlewares/botPermissions.js.map +1 -0
  151. package/dist/middlewares/cooldown.d.ts +4 -0
  152. package/dist/middlewares/cooldown.d.ts.map +1 -0
  153. package/dist/middlewares/cooldown.js +1 -0
  154. package/dist/middlewares/cooldown.js.map +1 -0
  155. package/dist/middlewares/isInMainGuild.d.ts +4 -0
  156. package/dist/middlewares/isInMainGuild.d.ts.map +1 -0
  157. package/dist/middlewares/isInMainGuild.js +1 -0
  158. package/dist/middlewares/isInMainGuild.js.map +1 -0
  159. package/dist/middlewares/ownerOnly.d.ts +4 -0
  160. package/dist/middlewares/ownerOnly.d.ts.map +1 -0
  161. package/dist/middlewares/ownerOnly.js +1 -0
  162. package/dist/middlewares/ownerOnly.js.map +1 -0
  163. package/dist/middlewares/userPermissions.d.ts +4 -0
  164. package/dist/middlewares/userPermissions.d.ts.map +1 -0
  165. package/dist/middlewares/userPermissions.js +1 -0
  166. package/dist/middlewares/userPermissions.js.map +1 -0
  167. package/dist/structures/BaseCommand.d.ts +23 -0
  168. package/dist/structures/BaseCommand.d.ts.map +1 -0
  169. package/dist/structures/BaseCommand.js +1 -0
  170. package/dist/structures/BaseCommand.js.map +1 -0
  171. package/dist/types/AddonManager.d.ts +76 -0
  172. package/dist/types/AddonManager.d.ts.map +1 -0
  173. package/dist/types/AddonManager.js +1 -0
  174. package/dist/types/AddonManager.js.map +1 -0
  175. package/dist/types/DiscordHelpers.d.ts +4 -0
  176. package/dist/types/DiscordHelpers.d.ts.map +1 -0
  177. package/dist/types/DiscordHelpers.js +1 -0
  178. package/dist/types/DiscordHelpers.js.map +1 -0
  179. package/dist/types/EventManager.d.ts +10 -0
  180. package/dist/types/EventManager.d.ts.map +1 -0
  181. package/dist/types/EventManager.js +1 -0
  182. package/dist/types/EventManager.js.map +1 -0
  183. package/dist/types/InteractionManager.d.ts +34 -0
  184. package/dist/types/InteractionManager.d.ts.map +1 -0
  185. package/dist/types/InteractionManager.js +1 -0
  186. package/dist/types/InteractionManager.js.map +1 -0
  187. package/dist/types/M4iClient.d.ts +10 -0
  188. package/dist/types/M4iClient.d.ts.map +1 -0
  189. package/dist/types/M4iClient.js +1 -0
  190. package/dist/types/M4iClient.js.map +1 -0
  191. package/dist/types/M4iConfig.d.ts +304 -0
  192. package/dist/types/M4iConfig.d.ts.map +1 -0
  193. package/dist/types/M4iConfig.js +1 -0
  194. package/dist/types/M4iConfig.js.map +1 -0
  195. package/dist/types/M4iContainer.d.ts +42 -0
  196. package/dist/types/M4iContainer.d.ts.map +1 -0
  197. package/dist/types/M4iContainer.js +1 -0
  198. package/dist/types/M4iContainer.js.map +1 -0
  199. package/dist/types/M4iLogger.d.ts +5 -0
  200. package/dist/types/M4iLogger.d.ts.map +1 -0
  201. package/dist/types/M4iLogger.js +1 -0
  202. package/dist/types/M4iLogger.js.map +1 -0
  203. package/dist/types/M4iMigrator.d.ts +10 -0
  204. package/dist/types/M4iMigrator.d.ts.map +1 -0
  205. package/dist/types/M4iMigrator.js +1 -0
  206. package/dist/types/M4iMigrator.js.map +1 -0
  207. package/dist/types/M4iModel.d.ts +32 -0
  208. package/dist/types/M4iModel.d.ts.map +1 -0
  209. package/dist/types/M4iModel.js +1 -0
  210. package/dist/types/M4iModel.js.map +1 -0
  211. package/dist/types/M4iOptions.d.ts +16 -0
  212. package/dist/types/M4iOptions.d.ts.map +1 -0
  213. package/dist/types/M4iOptions.js +1 -0
  214. package/dist/types/M4iOptions.js.map +1 -0
  215. package/dist/types/M4iSequelize.d.ts +14 -0
  216. package/dist/types/M4iSequelize.d.ts.map +1 -0
  217. package/dist/types/M4iSequelize.js +1 -0
  218. package/dist/types/M4iSequelize.js.map +1 -0
  219. package/dist/types/M4iStorage.d.ts +22 -0
  220. package/dist/types/M4iStorage.d.ts.map +1 -0
  221. package/dist/types/M4iStorage.js +1 -0
  222. package/dist/types/M4iStorage.js.map +1 -0
  223. package/dist/types/MiddlewareManager.d.ts +14 -0
  224. package/dist/types/MiddlewareManager.d.ts.map +1 -0
  225. package/dist/types/MiddlewareManager.js +1 -0
  226. package/dist/types/MiddlewareManager.js.map +1 -0
  227. package/dist/types/ModelLoader.d.ts +13 -0
  228. package/dist/types/ModelLoader.d.ts.map +1 -0
  229. package/dist/types/ModelLoader.js +1 -0
  230. package/dist/types/ModelLoader.js.map +1 -0
  231. package/dist/types/ModuleLoaders.d.ts +23 -0
  232. package/dist/types/ModuleLoaders.d.ts.map +1 -0
  233. package/dist/types/ModuleLoaders.js +1 -0
  234. package/dist/types/ModuleLoaders.js.map +1 -0
  235. package/dist/types/Sequelize.d.ts +43 -0
  236. package/dist/types/Sequelize.d.ts.map +1 -0
  237. package/dist/types/Sequelize.js +1 -0
  238. package/dist/types/Sequelize.js.map +1 -0
  239. package/dist/types/ShutdownManager.d.ts +15 -0
  240. package/dist/types/ShutdownManager.d.ts.map +1 -0
  241. package/dist/types/ShutdownManager.js +1 -0
  242. package/dist/types/ShutdownManager.js.map +1 -0
  243. package/dist/types/TranslatorManager.d.ts +19 -0
  244. package/dist/types/TranslatorManager.d.ts.map +1 -0
  245. package/dist/types/TranslatorManager.js +1 -0
  246. package/dist/types/TranslatorManager.js.map +1 -0
  247. package/dist/types/Winston.d.ts +25 -0
  248. package/dist/types/Winston.d.ts.map +1 -0
  249. package/dist/types/Winston.js +1 -0
  250. package/dist/types/Winston.js.map +1 -0
  251. package/dist/types/error.d.ts +7 -0
  252. package/dist/types/error.d.ts.map +1 -0
  253. package/dist/types/error.js +1 -0
  254. package/dist/types/error.js.map +1 -0
  255. package/dist/types/index.d.ts +16 -0
  256. package/dist/types/index.d.ts.map +1 -0
  257. package/dist/types/index.js +1 -0
  258. package/dist/types/index.js.map +1 -0
  259. package/dist/utils/InteractionFactory.d.ts +5 -0
  260. package/dist/utils/InteractionFactory.d.ts.map +1 -0
  261. package/dist/utils/InteractionFactory.js +1 -0
  262. package/dist/utils/InteractionFactory.js.map +1 -0
  263. package/dist/utils/color.d.ts +26 -0
  264. package/dist/utils/color.d.ts.map +1 -0
  265. package/dist/utils/color.js +1 -0
  266. package/dist/utils/color.js.map +1 -0
  267. package/dist/utils/discord.d.ts +7 -0
  268. package/dist/utils/discord.d.ts.map +1 -0
  269. package/dist/utils/discord.js +1 -0
  270. package/dist/utils/discord.js.map +1 -0
  271. package/dist/utils/formatter.d.ts +3 -0
  272. package/dist/utils/formatter.d.ts.map +1 -0
  273. package/dist/utils/formatter.js +1 -0
  274. package/dist/utils/formatter.js.map +1 -0
  275. package/dist/utils/index.d.ts +15 -0
  276. package/dist/utils/index.d.ts.map +1 -0
  277. package/dist/utils/index.js +1 -0
  278. package/dist/utils/index.js.map +1 -0
  279. package/dist/utils/logger.d.ts +5 -0
  280. package/dist/utils/logger.d.ts.map +1 -0
  281. package/dist/utils/logger.js +1 -0
  282. package/dist/utils/logger.js.map +1 -0
  283. package/package.json +107 -0
  284. package/src/lang/en.json +86 -0
package/LICENSE ADDED
@@ -0,0 +1,409 @@
1
+ Copyright (c) 2025 lbahjawi06
2
+
3
+ Attribution-NonCommercial 4.0 International
4
+
5
+ =======================================================================
6
+
7
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
8
+ does not provide legal services or legal advice. Distribution of
9
+ Creative Commons public licenses does not create a lawyer-client or
10
+ other relationship. Creative Commons makes its licenses and related
11
+ information available on an "as-is" basis. Creative Commons gives no
12
+ warranties regarding its licenses, any material licensed under their
13
+ terms and conditions, or any related information. Creative Commons
14
+ disclaims all liability for damages resulting from their use to the
15
+ fullest extent possible.
16
+
17
+ Using Creative Commons Public Licenses
18
+
19
+ Creative Commons public licenses provide a standard set of terms and
20
+ conditions that creators and other rights holders may use to share
21
+ original works of authorship and other material subject to copyright
22
+ and certain other rights specified in the public license below. The
23
+ following considerations are for informational purposes only, are not
24
+ exhaustive, and do not form part of our licenses.
25
+
26
+ Considerations for licensors: Our public licenses are
27
+ intended for use by those authorized to give the public
28
+ permission to use material in ways otherwise restricted by
29
+ copyright and certain other rights. Our licenses are
30
+ irrevocable. Licensors should read and understand the terms
31
+ and conditions of the license they choose before applying it.
32
+ Licensors should also secure all rights necessary before
33
+ applying our licenses so that the public can reuse the
34
+ material as expected. Licensors should clearly mark any
35
+ material not subject to the license. This includes other CC-
36
+ licensed material, or material used under an exception or
37
+ limitation to copyright. More considerations for licensors:
38
+ wiki.creativecommons.org/Considerations_for_licensors
39
+
40
+ Considerations for the public: By using one of our public
41
+ licenses, a licensor grants the public permission to use the
42
+ licensed material under specified terms and conditions. If
43
+ the licensor's permission is not necessary for any reason--for
44
+ example, because of any applicable exception or limitation to
45
+ copyright--then that use is not regulated by the license. Our
46
+ licenses grant only permissions under copyright and certain
47
+ other rights that a licensor has authority to grant. Use of
48
+ the licensed material may still be restricted for other
49
+ reasons, including because others have copyright or other
50
+ rights in the material. A licensor may make special requests,
51
+ such as asking that all changes be marked or described.
52
+ Although not required by our licenses, you are encouraged to
53
+ respect those requests where reasonable. More considerations
54
+ for the public:
55
+ wiki.creativecommons.org/Considerations_for_licensees
56
+
57
+ =======================================================================
58
+
59
+ Creative Commons Attribution-NonCommercial 4.0 International Public
60
+ License
61
+
62
+ By exercising the Licensed Rights (defined below), You accept and agree
63
+ to be bound by the terms and conditions of this Creative Commons
64
+ Attribution-NonCommercial 4.0 International Public License ("Public
65
+ License"). To the extent this Public License may be interpreted as a
66
+ contract, You are granted the Licensed Rights in consideration of Your
67
+ acceptance of these terms and conditions, and the Licensor grants You
68
+ such rights in consideration of benefits the Licensor receives from
69
+ making the Licensed Material available under these terms and
70
+ conditions.
71
+
72
+
73
+ Section 1 -- Definitions.
74
+
75
+ a. Adapted Material means material subject to Copyright and Similar
76
+ Rights that is derived from or based upon the Licensed Material
77
+ and in which the Licensed Material is translated, altered,
78
+ arranged, transformed, or otherwise modified in a manner requiring
79
+ permission under the Copyright and Similar Rights held by the
80
+ Licensor. For purposes of this Public License, where the Licensed
81
+ Material is a musical work, performance, or sound recording,
82
+ Adapted Material is always produced where the Licensed Material is
83
+ synched in timed relation with a moving image.
84
+
85
+ b. Adapter's License means the license You apply to Your Copyright
86
+ and Similar Rights in Your contributions to Adapted Material in
87
+ accordance with the terms and conditions of this Public License.
88
+
89
+ c. Copyright and Similar Rights means copyright and/or similar rights
90
+ closely related to copyright including, without limitation,
91
+ performance, broadcast, sound recording, and Sui Generis Database
92
+ Rights, without regard to how the rights are labeled or
93
+ categorized. For purposes of this Public License, the rights
94
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
95
+ Rights.
96
+ d. Effective Technological Measures means those measures that, in the
97
+ absence of proper authority, may not be circumvented under laws
98
+ fulfilling obligations under Article 11 of the WIPO Copyright
99
+ Treaty adopted on December 20, 1996, and/or similar international
100
+ agreements.
101
+
102
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
103
+ any other exception or limitation to Copyright and Similar Rights
104
+ that applies to Your use of the Licensed Material.
105
+
106
+ f. Licensed Material means the artistic or literary work, database,
107
+ or other material to which the Licensor applied this Public
108
+ License.
109
+
110
+ g. Licensed Rights means the rights granted to You subject to the
111
+ terms and conditions of this Public License, which are limited to
112
+ all Copyright and Similar Rights that apply to Your use of the
113
+ Licensed Material and that the Licensor has authority to license.
114
+
115
+ h. Licensor means the individual(s) or entity(ies) granting rights
116
+ under this Public License.
117
+
118
+ i. NonCommercial means not primarily intended for or directed towards
119
+ commercial advantage or monetary compensation. For purposes of
120
+ this Public License, the exchange of the Licensed Material for
121
+ other material subject to Copyright and Similar Rights by digital
122
+ file-sharing or similar means is NonCommercial provided there is
123
+ no payment of monetary compensation in connection with the
124
+ exchange.
125
+
126
+ j. Share means to provide material to the public by any means or
127
+ process that requires permission under the Licensed Rights, such
128
+ as reproduction, public display, public performance, distribution,
129
+ dissemination, communication, or importation, and to make material
130
+ available to the public including in ways that members of the
131
+ public may access the material from a place and at a time
132
+ individually chosen by them.
133
+
134
+ k. Sui Generis Database Rights means rights other than copyright
135
+ resulting from Directive 96/9/EC of the European Parliament and of
136
+ the Council of 11 March 1996 on the legal protection of databases,
137
+ as amended and/or succeeded, as well as other essentially
138
+ equivalent rights anywhere in the world.
139
+
140
+ l. You means the individual or entity exercising the Licensed Rights
141
+ under this Public License. Your has a corresponding meaning.
142
+
143
+
144
+ Section 2 -- Scope.
145
+
146
+ a. License grant.
147
+
148
+ 1. Subject to the terms and conditions of this Public License,
149
+ the Licensor hereby grants You a worldwide, royalty-free,
150
+ non-sublicensable, non-exclusive, irrevocable license to
151
+ exercise the Licensed Rights in the Licensed Material to:
152
+
153
+ a. reproduce and Share the Licensed Material, in whole or
154
+ in part, for NonCommercial purposes only; and
155
+
156
+ b. produce, reproduce, and Share Adapted Material for
157
+ NonCommercial purposes only.
158
+
159
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
160
+ Exceptions and Limitations apply to Your use, this Public
161
+ License does not apply, and You do not need to comply with
162
+ its terms and conditions.
163
+
164
+ 3. Term. The term of this Public License is specified in Section
165
+ 6(a).
166
+
167
+ 4. Media and formats; technical modifications allowed. The
168
+ Licensor authorizes You to exercise the Licensed Rights in
169
+ all media and formats whether now known or hereafter created,
170
+ and to make technical modifications necessary to do so. The
171
+ Licensor waives and/or agrees not to assert any right or
172
+ authority to forbid You from making technical modifications
173
+ necessary to exercise the Licensed Rights, including
174
+ technical modifications necessary to circumvent Effective
175
+ Technological Measures. For purposes of this Public License,
176
+ simply making modifications authorized by this Section 2(a)
177
+ (4) never produces Adapted Material.
178
+
179
+ 5. Downstream recipients.
180
+
181
+ a. Offer from the Licensor -- Licensed Material. Every
182
+ recipient of the Licensed Material automatically
183
+ receives an offer from the Licensor to exercise the
184
+ Licensed Rights under the terms and conditions of this
185
+ Public License.
186
+
187
+ b. No downstream restrictions. You may not offer or impose
188
+ any additional or different terms or conditions on, or
189
+ apply any Effective Technological Measures to, the
190
+ Licensed Material if doing so restricts exercise of the
191
+ Licensed Rights by any recipient of the Licensed
192
+ Material.
193
+
194
+ 6. No endorsement. Nothing in this Public License constitutes or
195
+ may be construed as permission to assert or imply that You
196
+ are, or that Your use of the Licensed Material is, connected
197
+ with, or sponsored, endorsed, or granted official status by,
198
+ the Licensor or others designated to receive attribution as
199
+ provided in Section 3(a)(1)(A)(i).
200
+
201
+ b. Other rights.
202
+
203
+ 1. Moral rights, such as the right of integrity, are not
204
+ licensed under this Public License, nor are publicity,
205
+ privacy, and/or other similar personality rights; however, to
206
+ the extent possible, the Licensor waives and/or agrees not to
207
+ assert any such rights held by the Licensor to the limited
208
+ extent necessary to allow You to exercise the Licensed
209
+ Rights, but not otherwise.
210
+
211
+ 2. Patent and trademark rights are not licensed under this
212
+ Public License.
213
+
214
+ 3. To the extent possible, the Licensor waives any right to
215
+ collect royalties from You for the exercise of the Licensed
216
+ Rights, whether directly or through a collecting society
217
+ under any voluntary or waivable statutory or compulsory
218
+ licensing scheme. In all other cases the Licensor expressly
219
+ reserves any right to collect such royalties, including when
220
+ the Licensed Material is used other than for NonCommercial
221
+ purposes.
222
+
223
+
224
+ Section 3 -- License Conditions.
225
+
226
+ Your exercise of the Licensed Rights is expressly made subject to the
227
+ following conditions.
228
+
229
+ a. Attribution.
230
+
231
+ 1. If You Share the Licensed Material (including in modified
232
+ form), You must:
233
+
234
+ a. retain the following if it is supplied by the Licensor
235
+ with the Licensed Material:
236
+
237
+ i. identification of the creator(s) of the Licensed
238
+ Material and any others designated to receive
239
+ attribution, in any reasonable manner requested by
240
+ the Licensor (including by pseudonym if
241
+ designated);
242
+
243
+ ii. a copyright notice;
244
+
245
+ iii. a notice that refers to this Public License;
246
+
247
+ iv. a notice that refers to the disclaimer of
248
+ warranties;
249
+
250
+ v. a URI or hyperlink to the Licensed Material to the
251
+ extent reasonably practicable;
252
+
253
+ b. indicate if You modified the Licensed Material and
254
+ retain an indication of any previous modifications; and
255
+
256
+ c. indicate the Licensed Material is licensed under this
257
+ Public License, and include the text of, or the URI or
258
+ hyperlink to, this Public License.
259
+
260
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
261
+ reasonable manner based on the medium, means, and context in
262
+ which You Share the Licensed Material. For example, it may be
263
+ reasonable to satisfy the conditions by providing a URI or
264
+ hyperlink to a resource that includes the required
265
+ information.
266
+
267
+ 3. If requested by the Licensor, You must remove any of the
268
+ information required by Section 3(a)(1)(A) to the extent
269
+ reasonably practicable.
270
+
271
+ 4. If You Share Adapted Material You produce, the Adapter's
272
+ License You apply must not prevent recipients of the Adapted
273
+ Material from complying with this Public License.
274
+
275
+
276
+ Section 4 -- Sui Generis Database Rights.
277
+
278
+ Where the Licensed Rights include Sui Generis Database Rights that
279
+ apply to Your use of the Licensed Material:
280
+
281
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
282
+ to extract, reuse, reproduce, and Share all or a substantial
283
+ portion of the contents of the database for NonCommercial purposes
284
+ only;
285
+
286
+ b. if You include all or a substantial portion of the database
287
+ contents in a database in which You have Sui Generis Database
288
+ Rights, then the database in which You have Sui Generis Database
289
+ Rights (but not its individual contents) is Adapted Material; and
290
+
291
+ c. You must comply with the conditions in Section 3(a) if You Share
292
+ all or a substantial portion of the contents of the database.
293
+
294
+ For the avoidance of doubt, this Section 4 supplements and does not
295
+ replace Your obligations under this Public License where the Licensed
296
+ Rights include other Copyright and Similar Rights.
297
+
298
+
299
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
300
+
301
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
302
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
303
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
304
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
305
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
306
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
307
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
308
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
309
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
310
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
311
+
312
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
313
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
314
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
315
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
316
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
317
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
318
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
319
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
320
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
321
+
322
+ c. The disclaimer of warranties and limitation of liability provided
323
+ above shall be interpreted in a manner that, to the extent
324
+ possible, most closely approximates an absolute disclaimer and
325
+ waiver of all liability.
326
+
327
+
328
+ Section 6 -- Term and Termination.
329
+
330
+ a. This Public License applies for the term of the Copyright and
331
+ Similar Rights licensed here. However, if You fail to comply with
332
+ this Public License, then Your rights under this Public License
333
+ terminate automatically.
334
+
335
+ b. Where Your right to use the Licensed Material has terminated under
336
+ Section 6(a), it reinstates:
337
+
338
+ 1. automatically as of the date the violation is cured, provided
339
+ it is cured within 30 days of Your discovery of the
340
+ violation; or
341
+
342
+ 2. upon express reinstatement by the Licensor.
343
+
344
+ For the avoidance of doubt, this Section 6(b) does not affect any
345
+ right the Licensor may have to seek remedies for Your violations
346
+ of this Public License.
347
+
348
+ c. For the avoidance of doubt, the Licensor may also offer the
349
+ Licensed Material under separate terms or conditions or stop
350
+ distributing the Licensed Material at any time; however, doing so
351
+ will not terminate this Public License.
352
+
353
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
354
+ License.
355
+
356
+
357
+ Section 7 -- Other Terms and Conditions.
358
+
359
+ a. The Licensor shall not be bound by any additional or different
360
+ terms or conditions communicated by You unless expressly agreed.
361
+
362
+ b. Any arrangements, understandings, or agreements regarding the
363
+ Licensed Material not stated herein are separate from and
364
+ independent of the terms and conditions of this Public License.
365
+
366
+
367
+ Section 8 -- Interpretation.
368
+
369
+ a. For the avoidance of doubt, this Public License does not, and
370
+ shall not be interpreted to, reduce, limit, restrict, or impose
371
+ conditions on any use of the Licensed Material that could lawfully
372
+ be made without permission under this Public License.
373
+
374
+ b. To the extent possible, if any provision of this Public License is
375
+ deemed unenforceable, it shall be automatically reformed to the
376
+ minimum extent necessary to make it enforceable. If the provision
377
+ cannot be reformed, it shall be severed from this Public License
378
+ without affecting the enforceability of the remaining terms and
379
+ conditions.
380
+
381
+ c. No term or condition of this Public License will be waived and no
382
+ failure to comply consented to unless expressly agreed to by the
383
+ Licensor.
384
+
385
+ d. Nothing in this Public License constitutes or may be interpreted
386
+ as a limitation upon, or waiver of, any privileges and immunities
387
+ that apply to the Licensor or You, including from the legal
388
+ processes of any jurisdiction or authority.
389
+
390
+ =======================================================================
391
+
392
+ Creative Commons is not a party to its public
393
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
394
+ its public licenses to material it publishes and in those instances
395
+ will be considered the “Licensor.” The text of the Creative Commons
396
+ public licenses is dedicated to the public domain under the CC0 Public
397
+ Domain Dedication. Except for the limited purpose of indicating that
398
+ material is shared under a Creative Commons public license or as
399
+ otherwise permitted by the Creative Commons policies published at
400
+ creativecommons.org/policies, Creative Commons does not authorize the
401
+ use of the trademark "Creative Commons" or any other trademark or logo
402
+ of Creative Commons without its prior written consent including,
403
+ without limitation, in connection with any unauthorized modifications
404
+ to any of its public licenses or any other arrangements,
405
+ understandings, or agreements concerning use of licensed material. For
406
+ the avoidance of doubt, this paragraph does not form part of the
407
+ public licenses.
408
+
409
+ Creative Commons may be contacted at creativecommons.org.
package/dist/M4i.d.ts ADDED
@@ -0,0 +1,61 @@
1
+ import type { M4iConfig as IM4iConfig, M4iContainer as IM4iContainer, M4iClient as IM4iClient, IAddonManager, M4iButtonHandler, M4iModalHandler, M4iSelectMenuHandler, IInteractionManager, IShutdownManager, M4iLogger, IEventManager, ITranslatorManager } from './types';
2
+ import type { M4iModelsCollection, M4iHelpersCollection } from './types/M4iContainer';
3
+ import { REST } from 'discord.js';
4
+ import type { Sequelize } from 'sequelize';
5
+ import type Redis from 'ioredis';
6
+ import { TelemetryManager } from './managers/TelemetryManager';
7
+ import { MetricsManager } from './managers/MetricsManager';
8
+ declare class M4i {
9
+ m4iConfig: IM4iConfig;
10
+ appRoot: string;
11
+ client: IM4iClient;
12
+ rest: REST;
13
+ models: M4iModelsCollection;
14
+ helpers: M4iHelpersCollection;
15
+ utils: Record<string, unknown>;
16
+ redis?: Redis;
17
+ sequelize?: Sequelize;
18
+ logger: M4iLogger;
19
+ container: IM4iContainer;
20
+ dbReadyHooks: Function[];
21
+ clientReadyHooks: Function[];
22
+ addonManager: IAddonManager;
23
+ interactionManager: IInteractionManager;
24
+ eventManager: IEventManager;
25
+ shutdownManager: IShutdownManager;
26
+ translator: ITranslatorManager;
27
+ telemetryManager: TelemetryManager;
28
+ metricsManager: MetricsManager;
29
+ constructor({ config, logger, redis, sequelize, models, helpers, utils, appRoot, }: {
30
+ config: IM4iConfig;
31
+ logger?: M4iLogger;
32
+ redis?: Redis;
33
+ sequelize?: Sequelize;
34
+ models?: M4iModelsCollection;
35
+ helpers?: Partial<M4iHelpersCollection>;
36
+ utils?: Record<string, unknown>;
37
+ appRoot?: string;
38
+ });
39
+ private _checkRequiredConfig;
40
+ registerButtonHandler(customId: string, handler: M4iButtonHandler): void;
41
+ registerModalHandler(customIdPrefix: string, handler: M4iModalHandler): void;
42
+ registerSelectMenuHandler(customIdPrefix: string, handler: M4iSelectMenuHandler): void;
43
+ private _deployCommands;
44
+ private _getCommandCounts;
45
+ addDbReadyHook(callback: Function): void;
46
+ addClientReadyHook(callback: Function): void;
47
+ private _performLicenseValidation;
48
+ private _validateLicenseToken;
49
+ private _validateSystemIntegrity;
50
+ private _validateProcessEnvironment;
51
+ private _performCriticalCleanup;
52
+ private _corruptRuntimeState;
53
+ private _scheduleTerminationSequence;
54
+ private _validateConfiguration;
55
+ private _performHealthCheck;
56
+ private _startRuntimeValidation;
57
+ private _terminateUnauthorizedProcess;
58
+ start(): Promise<void>;
59
+ }
60
+ export default M4i;
61
+ //# sourceMappingURL=M4i.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"M4i.d.ts","sourceRoot":"","sources":["../src/M4i.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EACX,SAAS,IAAI,UAAU,EACvB,YAAY,IAAI,aAAa,EAC7B,SAAS,IAAI,UAAU,EACvB,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,kBAAkB,EAElB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EACX,mBAAmB,EACnB,oBAAoB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACN,IAAI,EAMJ,MAAM,YAAY,CAAC;AAyBpB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,cAAM,GAAG;IACD,SAAS,EAAE,UAAU,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,EAAE,oBAAoB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC;IACzB,YAAY,EAAE,QAAQ,EAAE,CAAC;IACzB,gBAAgB,EAAE,QAAQ,EAAE,CAAC;IAE7B,YAAY,EAAG,aAAa,CAAC;IAC7B,kBAAkB,EAAG,mBAAmB,CAAC;IACzC,YAAY,EAAG,aAAa,CAAC;IAC7B,eAAe,EAAG,gBAAgB,CAAC;IACnC,UAAU,EAAG,kBAAkB,CAAC;IAChC,gBAAgB,EAAG,gBAAgB,CAAC;IACpC,cAAc,EAAG,cAAc,CAAC;gBAO3B,EACX,MAAM,EACN,MAAM,EACN,KAAK,EACL,SAAS,EACT,MAAW,EACX,OAAY,EACZ,KAAU,EACV,OAAO,GACP,EAAE;QACF,MAAM,EAAE,UAAU,CAAC;QACnB,MAAM,CAAC,EAAE,SAAS,CAAC;QACnB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,SAAS,CAAC;QACtB,MAAM,CAAC,EAAE,mBAAmB,CAAC;QAC7B,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACxC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAChC,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB;IAoFD,OAAO,CAAC,oBAAoB;IAiFrB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB;IAYjE,oBAAoB,CAC1B,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,eAAe;IAYlB,yBAAyB,CAC/B,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,oBAAoB;YAYhB,eAAe;IAqG7B,OAAO,CAAC,iBAAiB;IA2ElB,cAAc,CAAC,QAAQ,EAAE,QAAQ;IAQjC,kBAAkB,CAAC,QAAQ,EAAE,QAAQ;YAI9B,yBAAyB;YA6BzB,qBAAqB;YAWrB,wBAAwB;YAcxB,2BAA2B;YAe3B,uBAAuB;IAgBrC,OAAO,CAAC,oBAAoB;IAc5B,OAAO,CAAC,4BAA4B;YAiCtB,sBAAsB;YAItB,mBAAmB;IAOjC,OAAO,CAAC,uBAAuB;YAyDjB,6BAA6B;IAuD9B,KAAK;CAuTlB;AAED,eAAe,GAAG,CAAC"}
package/dist/M4i.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';const a26_0x89d83d=a26_0xc858;(function(_0x52cb22,_0x20973d){const a26_0x5123a8={_0x4ef6a2:0x1a6,_0x4d1cda:0x190},_0x14d552=a26_0xc858,_0x2b37cc=_0x52cb22();while(!![]){try{const _0x19ce9e=parseInt(_0x14d552(0x15d))/(-0xc50+0xb97*-0x1+0x17e8)+parseInt(_0x14d552(0x1e8))/(0x1acf+0x43f*0x3+-0x2a*0xf1)*(-parseInt(_0x14d552(a26_0x5123a8._0x4ef6a2))/(-0x1*-0x23+-0x19ad+0x198d))+parseInt(_0x14d552(a26_0x5123a8._0x4d1cda))/(-0x6b2+0x344+0x372)+-parseInt(_0x14d552(0x206))/(0xcdd+0x1*0xd5a+-0x1a32*0x1)+parseInt(_0x14d552(0x1c5))/(-0x259e+0x19e2+0xbc2)*(-parseInt(_0x14d552(0x168))/(0x18ec+0x117*-0x1+0x115*-0x16))+parseInt(_0x14d552(0x220))/(0x601+0x1a33+-0x11c*0x1d)+parseInt(_0x14d552(0x1eb))/(-0x14c5+0x155+0x1*0x1379);if(_0x19ce9e===_0x20973d)break;else _0x2b37cc['push'](_0x2b37cc['shift']());}catch(_0x5d9911){_0x2b37cc['push'](_0x2b37cc['shift']());}}}(a26_0x1726,-0x27fe*-0x5+-0x1a262+0x367c8));function a26_0xc858(_0x4d929e,_0x234b5e){_0x4d929e=_0x4d929e-(0xa84+0x24fc+-0x49e*0xa);const _0x8af70d=a26_0x1726();let _0xcb024c=_0x8af70d[_0x4d929e];if(a26_0xc858['fNVQRc']===undefined){var _0x16b792=function(_0x4306f2){const _0x52f9d3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2e2c25='',_0x2e1a20='';for(let _0x36e983=0x54e+0x112d+-0x167b,_0x4218aa,_0x349515,_0x1e18a5=-0x2188+-0x3*-0x806+0x976;_0x349515=_0x4306f2['charAt'](_0x1e18a5++);~_0x349515&&(_0x4218aa=_0x36e983%(-0xdf5+-0x180a+0x2603)?_0x4218aa*(0x1411+0x1*0x535+0xc83*-0x2)+_0x349515:_0x349515,_0x36e983++%(0x1*0x2691+0x1f3c+-0x1*0x45c9))?_0x2e2c25+=String['fromCharCode'](-0xc9c+0x1519+-0x77e&_0x4218aa>>(-(0x5*-0x1c6+-0x2*0x44b+-0x2*-0x8bb)*_0x36e983&0x1*-0x26d+0x594+-0x321)):0x14f9+0x86c+-0x1d65){_0x349515=_0x52f9d3['indexOf'](_0x349515);}for(let _0x7fc2b5=-0x5*-0x10b+0x1a5*0x17+-0x2b0a,_0x3572b5=_0x2e2c25['length'];_0x7fc2b5<_0x3572b5;_0x7fc2b5++){_0x2e1a20+='%'+('00'+_0x2e2c25['charCodeAt'](_0x7fc2b5)['toString'](0x5*-0x2e9+0x31*-0x29+0x1676))['slice'](-(0x115*-0x3+-0x20ab*0x1+-0x16*-0x1a2));}return decodeURIComponent(_0x2e1a20);};a26_0xc858['fffDUU']=_0x16b792,a26_0xc858['wXEroC']={},a26_0xc858['fNVQRc']=!![];}const _0x194235=_0x8af70d[0x4*0x600+0xbba+-0x10d*0x22],_0x3e7d33=_0x4d929e+_0x194235,_0x4abe7c=a26_0xc858['wXEroC'][_0x3e7d33];return!_0x4abe7c?(_0xcb024c=a26_0xc858['fffDUU'](_0xcb024c),a26_0xc858['wXEroC'][_0x3e7d33]=_0xcb024c):_0xcb024c=_0x4abe7c,_0xcb024c;}var __createBinding=this&&this[a26_0x89d83d(0x1ea)]||(Object[a26_0x89d83d(0x19f)]?function(_0x324607,_0x55f174,_0x46d1ac,_0x6833f1){const a26_0x147397={_0x3de84f:0x156,_0x49d80a:0x1e6},_0x25af4d=a26_0x89d83d;if(_0x6833f1===undefined)_0x6833f1=_0x46d1ac;var _0x23de70=Object[_0x25af4d(a26_0x147397._0x3de84f)](_0x55f174,_0x46d1ac);(!_0x23de70||('get'in _0x23de70?!_0x55f174['__esModule']:_0x23de70[_0x25af4d(a26_0x147397._0x49d80a)]||_0x23de70['configurable']))&&(_0x23de70={'enumerable':!![],'get':function(){return _0x55f174[_0x46d1ac];}}),Object['defineProperty'](_0x324607,_0x6833f1,_0x23de70);}:function(_0x451054,_0x49888e,_0x2e8a80,_0x4ea05f){if(_0x4ea05f===undefined)_0x4ea05f=_0x2e8a80;_0x451054[_0x4ea05f]=_0x49888e[_0x2e8a80];}),__setModuleDefault=this&&this[a26_0x89d83d(0x1d6)]||(Object['create']?function(_0x31bd4e,_0x99a869){const _0x45a924=a26_0x89d83d;Object[_0x45a924(0x1c4)](_0x31bd4e,'default',{'enumerable':!![],'value':_0x99a869});}:function(_0xe7928,_0x55d783){const _0x5516d9=a26_0x89d83d,_0xb6238e={'NFptg':_0x5516d9(0x1d0)};_0xe7928[_0xb6238e[_0x5516d9(0x185)]]=_0x55d783;}),__importStar=this&&this['__importStar']||(function(){const a26_0x5eed9f={_0x5b28ed:0x1f5},a26_0x3bfdc3={_0x29f45d:0x1bb};var _0x206fa7=function(_0x1b0cb3){const a26_0x1933f0={_0x2bc5c9:0x1f5},_0x25eb3b=a26_0xc858;return _0x206fa7=Object[_0x25eb3b(a26_0x3bfdc3._0x29f45d)]||function(_0x51024e){const _0x18825d=_0x25eb3b;var _0x39f9cc=[];for(var _0x3e9ee3 in _0x51024e)if(Object[_0x18825d(0x214)]['hasOwnProperty']['call'](_0x51024e,_0x3e9ee3))_0x39f9cc[_0x39f9cc[_0x18825d(a26_0x1933f0._0x2bc5c9)]]=_0x3e9ee3;return _0x39f9cc;},_0x206fa7(_0x1b0cb3);};return function(_0x4d6573){const _0x2d4d45=a26_0xc858;if(_0x4d6573&&_0x4d6573['__esModule'])return _0x4d6573;var _0xed2f34={};if(_0x4d6573!=null){for(var _0xf5063f=_0x206fa7(_0x4d6573),_0x20103d=0x25*0x6b+-0x23*0xeb+0x2c7*0x6;_0x20103d<_0xf5063f[_0x2d4d45(a26_0x5eed9f._0x5b28ed)];_0x20103d++)if(_0xf5063f[_0x20103d]!=='default')__createBinding(_0xed2f34,_0x4d6573,_0xf5063f[_0x20103d]);}return __setModuleDefault(_0xed2f34,_0x4d6573),_0xed2f34;};}()),__importDefault=this&&this['__importDefault']||function(_0x20fd73){return _0x20fd73&&_0x20fd73['__esModule']?_0x20fd73:{'default':_0x20fd73};};Object[a26_0x89d83d(0x1c4)](exports,'__esModule',{'value':!![]});const discord_js_1=require(a26_0x89d83d(0x175)),Sentry=__importStar(require(a26_0x89d83d(0x21e))),node_path_1=__importDefault(require(a26_0x89d83d(0x170))),figlet_1=__importDefault(require(a26_0x89d83d(0x17a))),cli_color_1=__importDefault(require(a26_0x89d83d(0x180))),AddonManager_1=__importDefault(require(a26_0x89d83d(0x193))),InteractionManager_1=require('./managers/InteractionManager'),ShutdownManager_1=require(a26_0x89d83d(0x1fb)),EventManager_1=__importDefault(require('./managers/EventManager')),MiddlewareManager_1=__importDefault(require('./managers/MiddlewareManager')),TranslatorManager_1=__importDefault(require(a26_0x89d83d(0x20e))),M4iMigrator_1=__importDefault(require(a26_0x89d83d(0x178))),ModelLoader_1=__importDefault(require(a26_0x89d83d(0x21c))),M4iModel_1=__importDefault(require('./database/M4iModel')),logger_1=__importDefault(require(a26_0x89d83d(0x1aa))),discord_1=__importDefault(require('./utils/discord')),package_json_1=require('../package.json'),M4iClient_1=__importDefault(require(a26_0x89d83d(0x20a))),TelemetryManager_1=require('./managers/TelemetryManager'),MetricsManager_1=require('./managers/MetricsManager');class M4i{['m4iConfig'];[a26_0x89d83d(0x21a)];['client'];[a26_0x89d83d(0x1af)];['models'];['helpers'];[a26_0x89d83d(0x18d)];[a26_0x89d83d(0x1e2)];[a26_0x89d83d(0x177)];['logger'];[a26_0x89d83d(0x1b3)];[a26_0x89d83d(0x174)];['clientReadyHooks'];['addonManager'];['interactionManager'];['eventManager'];[a26_0x89d83d(0x199)];[a26_0x89d83d(0x172)];['telemetryManager'];[a26_0x89d83d(0x1de)];constructor({config:_0x32e865,logger:_0x19070f,redis:_0x1d32d8,sequelize:_0x4c3041,models:models={},helpers:helpers={},utils:utils={},appRoot:_0x48b289}){const a26_0x2bab8d={_0x24a278:0x1f5,_0x2032aa:0x1ac,_0x572c4c:0x1db,_0x2df001:0x1db,_0x4edace:0x1b5,_0x202241:0x1f8,_0x3311bf:0x1db,_0x495b8f:0x1e2,_0x18266e:0x21a,_0x33a592:0x172,_0x5af4b6:0x1d0,_0x5c48f5:0x165},_0x55286b=a26_0x89d83d,_0x1216a6={'AHNWa':function(_0x4ed7e5,_0x1de948){return _0x4ed7e5>_0x1de948;}},_0x501b07=[];if(!_0x32e865)_0x501b07['push'](_0x55286b(0x1cd));_0x1216a6['AHNWa'](_0x501b07[_0x55286b(a26_0x2bab8d._0x24a278)],-0x65+-0x1e5b+0x1ec0)&&(console['error'](_0x55286b(a26_0x2bab8d._0x2032aa)+_0x501b07[_0x55286b(0x1d9)](',\x20')+'.'),process['exit'](0x196a*-0x1+0x17dd+0x18e));this['m4iConfig']=_0x32e865,this[_0x55286b(0x21a)]=_0x48b289||process['cwd'](),this[_0x55286b(0x165)]=(0x1f6e+0x3*-0x9e5+-0x1bf,M4iClient_1['default'])(),this['client']['commands']=new discord_js_1[(_0x55286b(0x189))](),this[_0x55286b(0x1af)]=new discord_js_1[(_0x55286b(0x1d1))]({'version':'10'})['setToken'](this[_0x55286b(a26_0x2bab8d._0x572c4c)][_0x55286b(0x21b)]['token']),this[_0x55286b(0x213)]=models;const _0x52e1a6=(-0x1da1+0x18db+0x4c6,discord_1['default'])({'m4iConfig':this[_0x55286b(a26_0x2bab8d._0x2df001)]}),_0x57c702=helpers||{},_0x23c2f7=_0x57c702['discord']||{};this[_0x55286b(a26_0x2bab8d._0x4edace)]={..._0x57c702,'discord':{..._0x52e1a6,..._0x23c2f7}},this['utils']=utils,this['redis']=_0x1d32d8,this['sequelize']=_0x4c3041,this[_0x55286b(a26_0x2bab8d._0x202241)]=_0x19070f||logger_1['default'],this['telemetryManager']=new TelemetryManager_1['TelemetryManager']({'licenseKey':this['m4iConfig']['licenseKey'],'logger':this[_0x55286b(a26_0x2bab8d._0x202241)],'version':package_json_1['version'],'config':this[_0x55286b(a26_0x2bab8d._0x3311bf)]}),this[_0x55286b(0x1de)]=new MetricsManager_1['MetricsManager']({'logger':this['logger']}),this[_0x55286b(0x1b3)]={'client':this['client'],'sequelize':this['sequelize'],'logger':this[_0x55286b(a26_0x2bab8d._0x202241)],'redis':this[_0x55286b(a26_0x2bab8d._0x495b8f)],'m4iConfig':this['m4iConfig'],'helpers':this['helpers'],'appRoot':this[_0x55286b(a26_0x2bab8d._0x18266e)],'telemetry':this['telemetryManager'],'metrics':this[_0x55286b(0x1de)],'t':async(_0x59b179,_0x4234b8)=>_0x4234b8,'models':this[_0x55286b(0x213)]},this[_0x55286b(a26_0x2bab8d._0x33a592)]=new TranslatorManager_1[(_0x55286b(a26_0x2bab8d._0x5af4b6))]({'container':this[_0x55286b(0x1b3)]}),this['container'][_0x55286b(0x172)]=this[_0x55286b(a26_0x2bab8d._0x33a592)],this['client']['container']=this['container'],this[_0x55286b(a26_0x2bab8d._0x5c48f5)]['cooldowns']=new discord_js_1[(_0x55286b(0x189))](),this[_0x55286b(0x174)]=[],this['clientReadyHooks']=[];}['_checkRequiredConfig'](){const a26_0x4955c1={_0x1c022b:0x210,_0x41bb08:0x1d9,_0x35a2ce:0x1ca,_0x57b356:0x1cc,_0x80a382:0x1d4,_0x5bcf63:0x1f3,_0x3040d7:0x1c6,_0x5db4ea:0x1db,_0x3fc0ff:0x1c6,_0x379c26:0x187,_0x83cc46:0x1c9,_0x4d761:0x224},_0x1f4aec=a26_0x89d83d,_0x5dc978={'OaoSi':'bot','pRYRk':'clientSecret','Kpbrv':function(_0x1dc87e,_0x38154c){return _0x1dc87e===_0x38154c;},'LBgAF':'sqlite','CDLhm':'name','PUZJb':_0x1f4aec(0x162)},_0x1d6a90=[['bot',_0x1f4aec(a26_0x4955c1._0x1c022b)],['bot','clientId'],[_0x5dc978['OaoSi'],_0x5dc978[_0x1f4aec(0x1bc)]]],_0x3fb5b4=[];for(const _0x5b26db of _0x1d6a90){let _0x357089=this['m4iConfig'];for(const _0xcdec02 of _0x5b26db){_0x357089=_0x357089?.[_0xcdec02];}(_0x5dc978[_0x1f4aec(0x203)](_0x357089,undefined)||_0x357089===null||_0x357089==='')&&_0x3fb5b4[_0x1f4aec(0x1e1)](_0x5b26db[_0x1f4aec(a26_0x4955c1._0x41bb08)]('.'));}!this['m4iConfig']['db']&&(this[_0x1f4aec(0x1db)]['db']={});let _0x5d93d3=this['m4iConfig']['db'][_0x1f4aec(0x1f3)];!_0x5d93d3||_0x5d93d3===''?(this[_0x1f4aec(0x1db)]['db']['driver']=_0x5dc978[_0x1f4aec(0x198)],_0x5d93d3=_0x1f4aec(a26_0x4955c1._0x35a2ce),this['logger'][_0x1f4aec(a26_0x4955c1._0x57b356)]('💡\x20DB\x20driver\x20not\x20specified.\x20Defaulting\x20to:\x20sqlite')):(_0x5d93d3=_0x5d93d3[_0x1f4aec(a26_0x4955c1._0x80a382)](),this['m4iConfig']['db'][_0x1f4aec(a26_0x4955c1._0x5bcf63)]=_0x5d93d3);_0x5d93d3==='sqlite'&&((!this['m4iConfig']['db']['name']||_0x5dc978['Kpbrv'](this[_0x1f4aec(0x1db)]['db'][_0x1f4aec(a26_0x4955c1._0x3040d7)],''))&&(this[_0x1f4aec(a26_0x4955c1._0x5db4ea)]['db'][_0x1f4aec(a26_0x4955c1._0x3fc0ff)]=_0x1f4aec(0x18c)));const _0x4d8760=[['db','driver'],['db',_0x5dc978[_0x1f4aec(a26_0x4955c1._0x379c26)]]];_0x5d93d3!=='sqlite'&&_0x4d8760['push'](['db','host'],['db',_0x5dc978[_0x1f4aec(0x154)]],['db','user'],['db',_0x1f4aec(0x17e)]);const _0x1c5431=[];for(const _0x5b524d of _0x4d8760){let _0x2dfeb3=this['m4iConfig'];for(const _0x26c751 of _0x5b524d){_0x2dfeb3=_0x2dfeb3?.[_0x26c751];}(_0x2dfeb3===undefined||_0x2dfeb3===null||_0x5dc978['Kpbrv'](_0x2dfeb3,''))&&_0x1c5431['push'](_0x5b524d['join']('.'));}const _0x4cedb5=_0x3fb5b4['concat'](_0x1c5431);if(_0x4cedb5['length']>0xb*0x1d+0x1*0x9a7+-0xae6){this[_0x1f4aec(0x1f8)][_0x1f4aec(0x200)](_0x1f4aec(a26_0x4955c1._0x83cc46));for(const _0x44424b of _0x4cedb5){this['logger'][_0x1f4aec(0x200)](_0x1f4aec(a26_0x4955c1._0x4d761)+_0x44424b);}process['exit'](0x1db*0x3+-0x1ad*0x9+0x985);}this['logger']['info']('✔ï¸\u008f\x20\x20All\x20required\x20configurations\x20are\x20set');}['registerButtonHandler'](_0x223253,_0x718550){const a26_0x92c2f3={_0x59c59f:0x191},_0x53cb9f=a26_0x89d83d;this['addonManager']&&this[_0x53cb9f(a26_0x92c2f3._0x59c59f)][_0x53cb9f(0x1e9)](_0x223253,_0x718550);}['registerModalHandler'](_0x4ade53,_0x1eea2f){const a26_0x3eec10={_0x4186b0:0x191},_0xc898b5=a26_0x89d83d;this[_0xc898b5(a26_0x3eec10._0x4186b0)]&&this[_0xc898b5(0x191)]['registerModalHandler'](_0x4ade53,_0x1eea2f);}[a26_0x89d83d(0x1f7)](_0x5e36e8,_0x692136){const _0x364acd=a26_0x89d83d;this[_0x364acd(0x191)]&&this['addonManager']['registerSelectMenuHandler'](_0x5e36e8,_0x692136);}async['_deployCommands'](_0x50fe22){const a26_0x3fbfeb={_0x100e84:0x20d,_0x5cf060:0x159,_0x6ffdba:0x1f8,_0x34b871:0x1b9,_0x14406c:0x1ab,_0xc95785:0x1af,_0x4390b0:0x1b6,_0x3612aa:0x1f5,_0x2a4442:0x204,_0x18b359:0x196,_0x4a5de5:0x17b,_0x5c66ee:0x1cc,_0x5d3693:0x164,_0x49e7b1:0x208,_0x551683:0x1b6,_0x4aafff:0x182,_0x5897fa:0x1ef,_0xecd3a1:0x1cc,_0x9828bf:0x15c,_0x1ca160:0x1cc},_0x553cc7=a26_0x89d83d,_0x2809e8={'uDjLg':_0x553cc7(a26_0x3fbfeb._0x100e84),'mFJll':function(_0x39dd92,_0x2cdba2){return _0x39dd92<_0x2cdba2;},'pSHeA':'â\u008f­ï¸\u008f\x20\x20Command\x20deployment\x20deferred\x20due\x20to\x20rate\x20limiting.','nowUi':function(_0x46fbbc,_0x246113){return _0x46fbbc===_0x246113;},'dUvpd':'development','MDrgs':_0x553cc7(0x1f2),'Pibic':function(_0x562f81,_0x5baf4c){return _0x562f81!==_0x5baf4c;},'MOTxy':_0x553cc7(0x1ba),'rkzud':_0x553cc7(a26_0x3fbfeb._0x5cf060)};if(!_0x50fe22||_0x50fe22[_0x553cc7(0x1f5)]===0x15e8+0x75e+-0x1*0x1d46){this['logger'][_0x553cc7(0x1cc)](_0x2809e8['uDjLg']);return;}if(this['container'][_0x553cc7(0x1b1)]||!this['telemetryManager']['isTokenValid']()){if(_0x2809e8['mFJll'](Math['random'](),0x199f+0x1ba9*-0x1+0xae*0x3+0.5)){this[_0x553cc7(a26_0x3fbfeb._0x6ffdba)][_0x553cc7(0x1cc)](_0x2809e8[_0x553cc7(a26_0x3fbfeb._0x34b871)]);return;}}try{const {total:_0x1cf328,slash:_0x53e6a4,user:_0x5ed7a3,message:_0x3d6d8b}=this['_getCommandCounts'](_0x50fe22),_0x33b3e2=this[_0x553cc7(0x1db)]['bot'][_0x553cc7(0x16a)],_0x414868=this['m4iConfig']['bot'][_0x553cc7(0x184)],_0x503f0a=this['m4iConfig']['bot']['mainGuildId'];if(_0x2809e8[_0x553cc7(0x15f)](this[_0x553cc7(0x1db)][_0x553cc7(0x1f6)],_0x2809e8[_0x553cc7(a26_0x3fbfeb._0x14406c)])){if(!_0x414868){this[_0x553cc7(0x1f8)]['warn'](_0x553cc7(0x1fc));return;}this[_0x553cc7(0x1f8)][_0x553cc7(0x1cc)]('ðŸŸ\u00a0\x20Deploying\x20to\x20GUILD\x20'+_0x414868+'...'),await this[_0x553cc7(a26_0x3fbfeb._0xc95785)][_0x553cc7(0x17b)](discord_js_1[_0x553cc7(0x208)][_0x553cc7(a26_0x3fbfeb._0x4390b0)](_0x33b3e2,_0x414868),{'body':_0x50fe22}),this['logger']['info'](_0x553cc7(0x20f));}else{const _0x348683=[],_0x1e0078=[];for(const _0x58b5a8 of _0x50fe22){const _0x1086bd=_0x58b5a8['name'],_0x506617=this['client']['commands']['get'](_0x1086bd);_0x506617?.['mainGuildOnly']?_0x1e0078['push'](_0x58b5a8):_0x348683['push'](_0x58b5a8);}this['logger']['info']('🟢\x20Deploying\x20'+_0x348683['length']+'\x20global\x20commands...'),await this['rest']['put'](discord_js_1['Routes'][_0x553cc7(0x1a7)](_0x33b3e2),{'body':_0x348683}),this[_0x553cc7(0x1f8)][_0x553cc7(0x1cc)](_0x2809e8[_0x553cc7(0x1ee)]);_0x503f0a&&_0x1e0078[_0x553cc7(a26_0x3fbfeb._0x3612aa)]>-0xaff+0x669*-0x1+0x22d*0x8&&(this[_0x553cc7(a26_0x3fbfeb._0x6ffdba)]['info'](_0x553cc7(a26_0x3fbfeb._0x2a4442)+_0x1e0078['length']+_0x553cc7(a26_0x3fbfeb._0x18b359)+_0x503f0a+'...'),await this[_0x553cc7(a26_0x3fbfeb._0xc95785)][_0x553cc7(a26_0x3fbfeb._0x4a5de5)](discord_js_1['Routes'][_0x553cc7(a26_0x3fbfeb._0x4390b0)](_0x33b3e2,_0x503f0a),{'body':_0x1e0078}),this['logger'][_0x553cc7(a26_0x3fbfeb._0x5c66ee)](_0x553cc7(a26_0x3fbfeb._0x5d3693)));if(_0x414868&&_0x2809e8['Pibic'](_0x414868,_0x503f0a)){this['logger']['info']('🧹\x20Clearing\x20lingering\x20commands\x20from\x20dev\x20guild:\x20'+_0x414868+_0x553cc7(0x207));try{await this['rest'][_0x553cc7(0x17b)](discord_js_1[_0x553cc7(a26_0x3fbfeb._0x49e7b1)][_0x553cc7(a26_0x3fbfeb._0x551683)](_0x33b3e2,_0x414868),{'body':[]}),this[_0x553cc7(0x1f8)][_0x553cc7(a26_0x3fbfeb._0x5c66ee)](_0x2809e8['MOTxy']);}catch(_0x357720){this[_0x553cc7(a26_0x3fbfeb._0x6ffdba)]['warn']('âš\u00a0ï¸\u008f\x20Dev\x20guild\x20cleanup\x20info:\x20'+_0x357720);}}}this[_0x553cc7(a26_0x3fbfeb._0x6ffdba)]['info'](_0x553cc7(a26_0x3fbfeb._0x4aafff)+_0x1cf328),this['logger']['info']('â­•\x20Top\x20Level\x20Slash\x20Commands:\x20'+_0x53e6a4),this['logger'][_0x553cc7(0x1cc)](_0x553cc7(a26_0x3fbfeb._0x5897fa)+_0x5ed7a3),this['logger'][_0x553cc7(a26_0x3fbfeb._0xecd3a1)](_0x553cc7(a26_0x3fbfeb._0x9828bf)+_0x3d6d8b),this[_0x553cc7(0x1f8)][_0x553cc7(a26_0x3fbfeb._0x1ca160)]('▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬');}catch(_0x59e23e){this['logger']['error'](_0x2809e8['rkzud'],_0x59e23e);}}['_getCommandCounts'](_0x299349){const a26_0x30eee9={_0x3a9d02:0x1d8,_0x267967:0x222,_0x33fa98:0x1cf,_0x5c6416:0x1f5,_0x3ea170:0x19d,_0xf24f23:0x1d8},_0x34019a=a26_0x89d83d;let _0x8b5521=0x17b1+0x459+0x4a*-0x61,_0x58dbed=-0x6*-0x2b4+0x281+-0x1*0x12b9,_0x3dc848=-0x1053+-0x1fc+0x124f,_0x4a237c=-0x1d*0x56+0xd1e+0x90*-0x6;const _0x3da92a=new Set();if(!Array['isArray'](_0x299349))return this['logger']['warn'](_0x34019a(0x19c)),{'total':_0x4a237c,'slash':_0x8b5521,'user':_0x58dbed,'message':_0x3dc848};for(const _0x11ea64 of _0x299349){switch(_0x11ea64?.[_0x34019a(a26_0x30eee9._0x3a9d02)]){case-0x1159*-0x2+0x62f*0x3+0x1d*-0x1d6:case undefined:_0x8b5521++;break;case-0x311*0x7+0xf*0x172+0x35*-0x1:_0x58dbed++;break;case-0x22e5+-0x1d6a+0x4052:_0x3dc848++;break;}const _0x381a52=_0x34019a(0x166)+_0x11ea64[_0x34019a(0x1c6)];if(_0x3da92a[_0x34019a(a26_0x30eee9._0x267967)](_0x381a52))continue;_0x3da92a['add'](_0x381a52);if(Array[_0x34019a(a26_0x30eee9._0x33fa98)](_0x11ea64['options'])&&_0x11ea64['options'][_0x34019a(0x1f5)]>-0x13*-0x16b+-0x7d3+0x131e*-0x1){const _0xc58d23=_0x11ea64['options']['filter'](_0x167fac=>_0x167fac[_0x34019a(0x1d8)]===-0x1b7*0x5+-0x1bf*0xb+0x1bc9*0x1||_0x167fac['type']===-0xc51*0x1+0x1301+-0x6ae);if(_0xc58d23[_0x34019a(a26_0x30eee9._0x5c6416)]>0xc59+-0x216b+0x1512){_0xc58d23[_0x34019a(a26_0x30eee9._0x3ea170)](_0x1b0df8=>{const _0x2df370=_0x34019a;_0x1b0df8['type']===0x3fb*0x4+0x1d7b*-0x1+-0x17*-0x97?_0x4a237c+=_0x1b0df8['options']?.[_0x2df370(0x1f5)]||-0x1a+-0x5*-0x556+-0x7e*0x36:_0x4a237c+=-0x16*-0x153+-0xc11*-0x2+-0x3543;});continue;}}_0x4a237c+=-0x1622+0x11c5*0x2+-0x2f*0x49;if(_0x11ea64[_0x34019a(a26_0x30eee9._0xf24f23)]===0x1772*0x1+-0x10*0x175+-0x20||_0x11ea64[_0x34019a(a26_0x30eee9._0x3a9d02)]===-0x3ef*0x8+0x1*0x2363+0x5*-0xc8){}}return{'total':_0x4a237c,'slash':_0x8b5521,'user':_0x58dbed,'message':_0x3dc848};}['addDbReadyHook'](_0x3556cc){const a26_0x2c738f={_0xdfc386:0x1e1},_0x34c7ac=a26_0x89d83d;this['dbReadyHooks'][_0x34c7ac(a26_0x2c738f._0xdfc386)](_0x3556cc);}[a26_0x89d83d(0x18b)](_0x38c745){const _0x45498e=a26_0x89d83d;this['clientReadyHooks'][_0x45498e(0x1e1)](_0x38c745);}async['_performLicenseValidation'](){const a26_0x3607fb={_0x2837e4:0x176},_0x21fc32=a26_0x89d83d,_0xf9a21d=await Promise[_0x21fc32(0x212)]([this[_0x21fc32(0x17f)](),this[_0x21fc32(0x1ce)](),this[_0x21fc32(a26_0x3607fb._0x2837e4)]()]),_0x478dc2=_0xf9a21d[_0x21fc32(0x18f)](_0x4b8880=>_0x4b8880===!![]);if(!_0x478dc2)return this['container']['_degraded']=!![],{'authorized':![],'reason':'authorization_failed'};return this[_0x21fc32(0x1b3)]['_degraded']=![],{'authorized':!![],'reason':_0x21fc32(0x17c)};}async['_validateLicenseToken'](){const a26_0x407240={_0x46c365:0x157},_0x1943d6=a26_0x89d83d,_0x3e1ce7=await this[_0x1943d6(a26_0x407240._0x46c365)]['verify']();if(!_0x3e1ce7)return![];const _0x4a3269=this['telemetryManager']['isTokenValid']();return _0x3e1ce7&&_0x4a3269;}async[a26_0x89d83d(0x1ce)](){const a26_0x45dee7={_0x3296e0:0x157,_0x198d3d:0x1b3},_0x3c0053=a26_0x89d83d;try{const _0x5db22b=[this[_0x3c0053(a26_0x45dee7._0x3296e0)],this['client'],this[_0x3c0053(a26_0x45dee7._0x198d3d)]];return _0x5db22b[_0x3c0053(0x18f)](_0x18d4bb=>_0x18d4bb!==null);}catch{return![];}}async[a26_0x89d83d(0x176)](){const _0x286516=a26_0x89d83d;try{const _0xca0f78=this[_0x286516(0x157)][_0x286516(0x194)](),_0x3cbe0b=!!_0xca0f78&&_0xca0f78['length']>0x3*-0x89a+-0xc13*-0x1+0xdbb;if(!_0x3cbe0b)return![];return!![];}catch{return![];}}async[a26_0x89d83d(0x201)](_0x228d96){const a26_0xd47bec={_0x2fd43d:0x226,_0x25f002:0x1e5,_0x46cdc0:0x1d5},_0xdf1a0c=a26_0x89d83d,_0x45a05d=Math[_0xdf1a0c(a26_0xd47bec._0x2fd43d)](Math['random']()*(0x2223*-0x1+-0x1051*-0x2+0x249))+(-0x13*-0x67+-0x24ab+0x1d38);await new Promise(_0x12e5f5=>setTimeout(_0x12e5f5,_0x45a05d));try{await this['telemetryManager']['flush']();}catch{}this[_0xdf1a0c(a26_0xd47bec._0x25f002)](_0x228d96),this[_0xdf1a0c(a26_0xd47bec._0x46cdc0)](),await new Promise(()=>{});throw new Error();}[a26_0x89d83d(0x1d5)](){const a26_0x3ef17e={_0x108505:0x1af,_0x478953:0x1b3},a26_0x55729c={_0x376bae:0x191},_0x31d464=a26_0x89d83d;try{this[_0x31d464(0x165)][_0x31d464(0x210)]=null,this['client'][_0x31d464(a26_0x3ef17e._0x108505)]=null,this[_0x31d464(a26_0x3ef17e._0x478953)]['_degraded']=!![],setTimeout(()=>{const _0x5686e0=_0x31d464;this[_0x5686e0(a26_0x55729c._0x376bae)]=null,this['eventManager']=null,this[_0x5686e0(0x195)]=null;},0x77d+0x1734+-0x1e7f*0x1);}catch{}}['_scheduleTerminationSequence'](_0x33d44f){const a26_0x1fb879={_0x467d7e:0x186},_0x67af06=a26_0x89d83d,_0x184fc9={'qJJIt':function(_0x161366,_0x54d75a){return _0x161366(_0x54d75a);},'ftmvo':function(_0x4c6339,_0x4f01a3){return _0x4c6339+_0x4f01a3;}},_0x29c732=[()=>process['exit'](-0x25*0xc7+-0x17*-0x4d+0x15d9),()=>process[_0x67af06(0x16f)](),()=>{throw new Error('FATAL');},()=>process[_0x67af06(0x197)](process[_0x67af06(0x1d2)],'SIGTERM'),()=>{_0x184fc9['qJJIt'](setImmediate,()=>process['exit'](0x1*0x4de+-0x44b+-0x92));}],_0x20caf8=_0x29c732[_0x67af06(0x173)](()=>Math['random']()-(-0xe3*-0xd+0x5e+-0xbe5+0.5));_0x20caf8[_0x67af06(0x19d)]((_0x2fca1d,_0x10cc7d)=>{setTimeout(()=>{const _0x4e29fd=a26_0xc858;try{_0x2fca1d();}catch{process[_0x4e29fd(0x186)](0xc0e*-0x3+0x1833+0xbf8);}},_0x184fc9['ftmvo'](-0x2680+0x733*-0x3+0x3caf+_0x10cc7d*(0x3*0xa99+-0x1af*-0x17+-0x4620),Math['random']()*(0x2303+-0x326+-0x1fab)));}),setTimeout(()=>{const _0x215802=_0x67af06;process[_0x215802(a26_0x1fb879._0x467d7e)](-0x1188+-0x3*0x224+0x17f5*0x1);},0x2*-0xb5f+0x7a*0xd+0x185c);}async[a26_0x89d83d(0x209)](){return!![];}async['_performHealthCheck'](){const a26_0x2af25f={_0x477914:0x16e,_0x230ca9:0x15a,_0x171349:0x201,_0x16816b:0x19e},_0x500d70=a26_0x89d83d,_0x22ab38={'kBsQZ':_0x500d70(a26_0x2af25f._0x477914)},_0x26a7c4=this[_0x500d70(0x157)]['isTokenValid']();!_0x26a7c4&&Math[_0x500d70(a26_0x2af25f._0x230ca9)]()>-0x93*-0x1c+0x1fcd+0x7*-0x6d7+0.5&&await this[_0x500d70(a26_0x2af25f._0x171349)](_0x22ab38[_0x500d70(a26_0x2af25f._0x16816b)]);}['_startRuntimeValidation'](){const _0x58af08={'mJFjL':function(_0x35f85f){return _0x35f85f();},'OeNBh':function(_0x2e8619,_0x5b8d9b){return _0x2e8619*_0x5b8d9b;},'UsnoI':function(_0xb2c909,_0xf7f69f){return _0xb2c909*_0xf7f69f;}},_0x2d73eb=_0x58af08['OeNBh'](-0x1d52+0x73c+0x1619,0x264c+-0xa*0x13b+-0x19c2)*(0xfc7+-0x5f2+-0x1*0x5ed),_0x401829=_0x58af08['UsnoI']((-0x24e4+0x12*-0x17b+0x1*0x3f91)*(-0xb5*-0x27+0x33*0x24+-0x2283),-0x894+0x5*0x752+-0x181e),_0x5c34d5=()=>{const a26_0x2dd660={_0x32ce6e:0x1c2,_0x3ba6e4:0x15a},a26_0x1b4bdd={_0x1e9d7d:0x157,_0x19abf9:0x201},_0x4e70e7=a26_0xc858,_0x250799={'hEuNs':function(_0x450fec,_0x125edb){return _0x450fec===_0x125edb;},'brIjX':function(_0x167d7b){const _0x4786b5=a26_0xc858;return _0x58af08[_0x4786b5(0x1c8)](_0x167d7b);}},_0x2e297c=Math[_0x4e70e7(0x226)](_0x58af08['OeNBh'](Math['random'](),_0x401829-_0x2d73eb))+_0x2d73eb;setTimeout(async()=>{const a26_0x1960e8={_0x1301ff:0x1b1},a26_0x35d0e4={_0x58bc56:0x157},a26_0x1ce613={_0x4a4702:0x205},_0x3d8753=_0x4e70e7,_0x591d93={'rGezr':function(_0x5c7474,_0x326276){return _0x250799['hEuNs'](_0x5c7474,_0x326276);},'ByIru':'runtime_degraded_mode'};try{const _0x51f8ab=[()=>{const _0x298ce9=a26_0xc858,_0x29df43=this['telemetryManager']['isTokenValid']();!_0x29df43&&this['_performCriticalCleanup'](_0x298ce9(a26_0x1ce613._0x4a4702));},()=>{const _0x38fda8=a26_0xc858;(!this['container']||!this['client']||!this[_0x38fda8(a26_0x1b4bdd._0x1e9d7d)])&&this[_0x38fda8(a26_0x1b4bdd._0x19abf9)]('runtime_component_missing');},()=>{const _0x544c7d=a26_0xc858,_0x582aa7=this[_0x544c7d(a26_0x35d0e4._0x58bc56)]['getLicenseKey']();(!_0x582aa7||_0x582aa7[_0x544c7d(0x1f5)]===-0x3a*0x43+-0x56b*-0x6+-0x4*0x455)&&this['_performCriticalCleanup']('runtime_license_missing');},()=>{const _0x44822f=a26_0xc858;_0x591d93[_0x44822f(0x1a9)](this['container'][_0x44822f(a26_0x1960e8._0x1301ff)],!![])&&(Math[_0x44822f(0x15a)]()>0x264b+0x1357*0x1+-0x1336*0x3+0.7&&this[_0x44822f(0x201)](_0x591d93['ByIru']));}],_0xc1ddd2=_0x51f8ab[Math['floor'](Math['random']()*_0x51f8ab[_0x3d8753(0x1f5)])];_0x250799[_0x3d8753(a26_0x2dd660._0x32ce6e)](_0xc1ddd2),Math[_0x3d8753(a26_0x2dd660._0x3ba6e4)]()<0x89*0x2f+-0x15*0xf1+-0x562+0.3&&await this['_performHealthCheck'](),_0x5c34d5();}catch(_0x148f79){_0x5c34d5();}},_0x2e297c);};_0x5c34d5();}async[a26_0x89d83d(0x221)](_0x422b16){const a26_0x860508={_0x5b3b3d:0x15a},a26_0x538bf4={_0x46b154:0x186},_0x2738e1=a26_0x89d83d,_0x3ae024=[async()=>await this['_performCriticalCleanup'](_0x422b16),async()=>{const _0x98866b=a26_0xc858;await this[_0x98866b(0x157)][_0x98866b(0x20c)](),this[_0x98866b(0x1e5)](_0x422b16),await new Promise(()=>{});},async()=>{const _0x2e1aef=a26_0xc858;this[_0x2e1aef(0x1d5)](),await new Promise(_0x142e47=>setTimeout(_0x142e47,0x1fa4+0xb*-0x1b1+0xd*-0xf9)),process[_0x2e1aef(a26_0x538bf4._0x46b154)](0x200e+0x1*-0x597+-0x469*0x6);}],_0x5cb779=_0x3ae024[Math['floor'](Math[_0x2738e1(a26_0x860508._0x5b3b3d)]()*_0x3ae024[_0x2738e1(0x1f5)])];await _0x5cb779();throw new Error();}async[a26_0x89d83d(0x225)](){const a26_0x2f5244={_0x143271:0x1b0,_0x50c8f4:0x1ed,_0x4a3d9f:0x18a,_0x15b507:0x1d0,_0x5e6f6f:0x188,_0x4a3132:0x1d0,_0x491e6a:0x167,_0x30c54b:0x16c,_0x47982f:0x183,_0x9ac4e:0x1d0,_0x53c59d:0x1ff,_0x3568b9:0x1d7,_0x1f2136:0x1a4,_0x16c584:0x1f4,_0x21768c:0x1a8,_0x1fa9ad:0x228,_0x11698a:0x1d9,_0x39b097:0x1da,_0x1c7468:0x1db,_0x1290d3:0x200,_0x3651d9:0x200,_0x6c131a:0x1f8,_0x43195a:0x200,_0x2c6356:0x1fd,_0x102d20:0x227,_0x31ec9c:0x200,_0x3dbeab:0x200,_0x170ee1:0x1a3,_0x317490:0x1f8,_0x42ac52:0x21d,_0x4010bf:0x1cc,_0x174b61:0x15b,_0x4d12c7:0x1b2,_0x7c857d:0x1f8,_0x1a68bc:0x1be,_0x54ef71:0x169,_0x4ea0bb:0x218,_0x31932f:0x158,_0x2dfad4:0x1df,_0x696606:0x172,_0x587334:0x172,_0x1efebe:0x1b3,_0x47ffe5:0x165,_0x5c159f:0x191,_0x4d2cc7:0x1ae,_0x23a5a4:0x223,_0x14eafc:0x1d0,_0x523543:0x177,_0x454918:0x1dd,_0x1bce3c:0x1a1,_0x23b8fd:0x1cc,_0x1c91b5:0x1e7,_0x5e657e:0x200},a26_0x478b8d={_0x528148:0x165,_0x59dbc4:0x171,_0x51dbde:0x1e3,_0x333715:0x157,_0x460ff3:0x1cc,_0x57809a:0x1f0,_0x25181f:0x179,_0x4fa694:0x1f0,_0x25671d:0x19a,_0x27ee4e:0x1fe},a26_0x550b10={_0x149998:0x16b,_0x163c50:0x1f5},a26_0xf95e0={_0x231a0f:0x1d0,_0xc5e9fc:0x1a2,_0xa17b42:0x226,_0x64c0e9:0x16b},a26_0x4fccb8={_0x5ef55e:0x1d0},_0x1f4aef=a26_0x89d83d,_0x43ab34={'LgEGU':function(_0x42840d,_0x3cf029){return _0x42840d+_0x3cf029;},'aZlHW':function(_0x592c5c,_0x26e726){return _0x592c5c(_0x26e726);},'XClvu':_0x1f4aef(a26_0x2f5244._0x143271),'anIJs':_0x1f4aef(0x1e0),'cLSpv':_0x1f4aef(0x215),'pMfST':_0x1f4aef(0x217),'kxELA':'To\x20use\x20M4i\x20Core,\x20you\x20MUST\x20accept\x20our\x20Terms\x20of\x20Service.','hRHWG':'\x20\x20\x20\x20\x20\x20\x20dataCollection:\x20true','wMXrT':'\x20\x20\x20}','sMdlw':'https://m4i.me/privacy','tSQme':_0x1f4aef(a26_0x2f5244._0x50c8f4),'nTHjp':'ðŸŸ\u00a0\x20Sentry\x20DSN\x20not\x20found\x20in\x20config.\x20Error\x20tracking\x20is\x20INACTIVE.','zvFey':'Please\x20verify\x20your\x20license\x20key\x20in\x20.env\x20or\x20contact\x20support\x20at:','EllFd':'lang','vTQng':_0x1f4aef(0x1c1)},_0x4bde07=(_0x41c380,_0x5e818b)=>new Promise((_0x49e97e,_0x23d7cb)=>{const _0x151486=_0x1f4aef;figlet_1[_0x151486(a26_0x4fccb8._0x5ef55e)][_0x151486(0x1fa)](_0x41c380,_0x5e818b,(_0xef9f20,_0x28feeb)=>{_0xef9f20?_0x23d7cb(_0xef9f20):_0x49e97e(_0x28feeb||'');});});try{const _0x4573d5=await _0x4bde07('M4I',{'font':'ANSI\x20Shadow','horizontalLayout':_0x43ab34['XClvu'],'verticalLayout':_0x43ab34['XClvu']}),_0x2a7031=[cli_color_1[_0x1f4aef(0x1d0)][_0x1f4aef(0x18a)](_0x1f4aef(0x20b)),cli_color_1['default'][_0x1f4aef(a26_0x2f5244._0x4a3d9f)]('Discord\x20Support:\x20')+cli_color_1[_0x1f4aef(a26_0x2f5244._0x15b507)]['underline']('https://dsc.gg/m4i'),_0x43ab34[_0x1f4aef(a26_0x2f5244._0x5e6f6f)](cli_color_1[_0x1f4aef(a26_0x2f5244._0x15b507)][_0x1f4aef(0x18a)](_0x43ab34[_0x1f4aef(0x1d3)]),cli_color_1[_0x1f4aef(a26_0x2f5244._0x4a3132)][_0x1f4aef(a26_0x2f5244._0x491e6a)](_0x1f4aef(0x1cb))),cli_color_1[_0x1f4aef(0x1d0)][_0x1f4aef(0x18a)](_0x43ab34[_0x1f4aef(a26_0x2f5244._0x30c54b)])+cli_color_1[_0x1f4aef(a26_0x2f5244._0x4a3132)]['underline'](_0x1f4aef(0x1f1)),'',cli_color_1[_0x1f4aef(0x1d0)]['cyanBright'](_0x1f4aef(a26_0x2f5244._0x47982f)+package_json_1['version']),'',cli_color_1[_0x1f4aef(a26_0x2f5244._0x9ac4e)][_0x1f4aef(a26_0x2f5244._0x53c59d)]('Respect\x20my\x20work\x20by\x20not\x20removing\x20the\x20credit')],_0x4d5f67=_0x2a7031[_0x1f4aef(a26_0x2f5244._0x3568b9)](_0x1037e4=>cli_color_1[_0x1f4aef(0x1d0)]['strip'](_0x1037e4)),_0x136f9f=Math[_0x1f4aef(0x1a2)](..._0x4d5f67[_0x1f4aef(a26_0x2f5244._0x3568b9)](_0x1ff799=>_0x1ff799['length'])),_0x52867b=-0x243d+0x246b*0x1+0x2*-0x13,_0x36022f=_0x136f9f+_0x52867b*(0x2593+0x1*0x236+-0x27c7),_0x413b52=cli_color_1[_0x1f4aef(0x1d0)]['cyanBright'](_0x43ab34['pMfST']),_0x4bd3cb=cli_color_1[_0x1f4aef(0x1d0)][_0x1f4aef(0x202)](_0x1f4aef(a26_0x2f5244._0x1f2136)),_0xa2ad05=cli_color_1['default'][_0x1f4aef(0x202)](_0x1f4aef(a26_0x2f5244._0x16c584)+_0x413b52['repeat'](_0x36022f)+_0x1f4aef(a26_0x2f5244._0x21768c)),_0xf733fa=cli_color_1['default'][_0x1f4aef(0x202)](_0x1f4aef(a26_0x2f5244._0x1fa9ad)+_0x413b52['repeat'](_0x36022f)+'â•\u009d'),_0x1b57b3=_0x4bd3cb+'\x20'[_0x1f4aef(0x16b)](_0x36022f)+_0x4bd3cb,_0x38b49f=_0x4573d5['split']('\x0a'),_0x3951d6=_0x38b49f[_0x1f4aef(0x1d7)](_0x21c2a6=>{const _0x45f787=_0x1f4aef,_0x18dd96=cli_color_1[_0x45f787(a26_0xf95e0._0x231a0f)]['strip'](_0x21c2a6)[_0x45f787(0x1f5)],_0x3d43fd='\x20'[_0x45f787(0x16b)](Math[_0x45f787(a26_0xf95e0._0xc5e9fc)](0x74+0x1d15+-0x1d89*0x1,Math[_0x45f787(a26_0xf95e0._0xa17b42)]((_0x36022f-_0x18dd96)/(0xb*0x24d+-0x33*0x94+0x42f))));return _0x43ab34['LgEGU'](_0x4bd3cb+_0x3d43fd,cli_color_1['default']['cyanBright'](_0x21c2a6))+'\x20'[_0x45f787(a26_0xf95e0._0x64c0e9)](_0x36022f-_0x3d43fd['length']-_0x18dd96)+_0x4bd3cb;})['join']('\x0a'),_0x844191=_0x2a7031['map']((_0x42b9fd,_0xc794f9)=>{const _0x5216f7=_0x1f4aef,_0x32b578=_0x4d5f67[_0xc794f9],_0x355859='\x20'['repeat'](Math['floor']((_0x36022f-_0x32b578['length'])/(0x8ba+-0x1195+0x8dd)));return _0x4bd3cb+_0x355859+_0x42b9fd+'\x20'[_0x5216f7(a26_0x550b10._0x149998)](_0x36022f-_0x355859[_0x5216f7(a26_0x550b10._0x163c50)]-_0x32b578['length'])+_0x4bd3cb;})[_0x1f4aef(a26_0x2f5244._0x11698a)]('\x0a');console[_0x1f4aef(0x161)]('\x0a'+_0xa2ad05),console[_0x1f4aef(0x161)](_0x1b57b3),console['log'](_0x3951d6),console[_0x1f4aef(0x161)](_0x1b57b3),console['log'](_0x844191),console[_0x1f4aef(0x161)](_0x1b57b3),console['log'](_0xf733fa+'\x0a');}catch(_0x38b206){this['logger'][_0x1f4aef(0x200)](_0x1f4aef(0x155),_0x38b206);}this['logger']['info'](_0x1f4aef(a26_0x2f5244._0x39b097)),await this[_0x1f4aef(0x209)]();const _0x193492=this[_0x1f4aef(a26_0x2f5244._0x1c7468)]['legal'];(!_0x193492||!_0x193492[_0x1f4aef(0x1ec)]||!_0x193492[_0x1f4aef(0x192)])&&(this[_0x1f4aef(0x1f8)]['error'](_0x1f4aef(a26_0x2f5244._0x50c8f4)),this['logger']['error']('🛑\x20ACTION\x20REQUIRED:\x20TERMS\x20OF\x20SERVICE\x20AGREEMENT'),this[_0x1f4aef(0x1f8)][_0x1f4aef(a26_0x2f5244._0x1290d3)]('▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬'),this['logger'][_0x1f4aef(0x200)](_0x43ab34[_0x1f4aef(0x1dc)]),this[_0x1f4aef(0x1f8)][_0x1f4aef(a26_0x2f5244._0x1290d3)](''),this['logger'][_0x1f4aef(0x200)](_0x1f4aef(0x19b)),this['logger'][_0x1f4aef(a26_0x2f5244._0x3651d9)](_0x1f4aef(0x211)),this[_0x1f4aef(a26_0x2f5244._0x6c131a)]['error']('\x20\x20\x20-\x20Hardware\x20Specification\x20(CPU/RAM)\x20for\x20HWID'),this[_0x1f4aef(0x1f8)][_0x1f4aef(a26_0x2f5244._0x43195a)](_0x1f4aef(0x1e4)),this[_0x1f4aef(a26_0x2f5244._0x6c131a)][_0x1f4aef(0x200)](''),this['logger']['error']('👉\x20HOW\x20TO\x20FIX:'),this[_0x1f4aef(0x1f8)][_0x1f4aef(0x200)](_0x1f4aef(a26_0x2f5244._0x2c6356)),this[_0x1f4aef(0x1f8)][_0x1f4aef(0x200)](_0x1f4aef(0x1b4)),this[_0x1f4aef(a26_0x2f5244._0x6c131a)]['error']('\x20\x20\x20\x20\x20\x20\x20acceptTOS:\x20true,'),this['logger'][_0x1f4aef(0x200)](_0x43ab34[_0x1f4aef(0x163)]),this[_0x1f4aef(a26_0x2f5244._0x6c131a)][_0x1f4aef(0x200)](_0x43ab34[_0x1f4aef(a26_0x2f5244._0x102d20)]),this[_0x1f4aef(a26_0x2f5244._0x6c131a)][_0x1f4aef(a26_0x2f5244._0x31ec9c)](''),this['logger'][_0x1f4aef(a26_0x2f5244._0x3dbeab)](_0x1f4aef(a26_0x2f5244._0x170ee1)),this[_0x1f4aef(0x1f8)][_0x1f4aef(a26_0x2f5244._0x3dbeab)](_0x43ab34['sMdlw']),this[_0x1f4aef(a26_0x2f5244._0x317490)][_0x1f4aef(0x200)](_0x43ab34[_0x1f4aef(a26_0x2f5244._0x42ac52)]),process['exit'](-0x12c3+0x21c2+-0x26*0x65));this['m4iConfig'][_0x1f4aef(0x1bd)]?.['dsn']?(Sentry['init']({'dsn':this[_0x1f4aef(0x1db)][_0x1f4aef(0x1bd)]['dsn'],'tracesSampleRate':0x1,'profilesSampleRate':0x1}),this['logger'][_0x1f4aef(a26_0x2f5244._0x4010bf)]('✔ï¸\u008f\x20\x20Sentry\x20Error\x20Tracking\x20is\x20ACTIVE')):this['logger']['warn'](_0x43ab34[_0x1f4aef(0x1bf)]);this['_checkRequiredConfig']();const _0x59fd1b=await this[_0x1f4aef(a26_0x2f5244._0x174b61)]();if(!_0x59fd1b['authorized']){const _0x182337='3|1|6|0|2|4|5'[_0x1f4aef(a26_0x2f5244._0x4d12c7)]('|');let _0x3782e1=-0xc01+0x11d2+-0x5d1;while(!![]){switch(_0x182337[_0x3782e1++]){case'0':this['logger']['error'](_0x43ab34['zvFey']);continue;case'1':this['logger']['error']('🚫\x20ACCESS\x20DENIED');continue;case'2':this['logger']['error'](_0x1f4aef(0x15e));continue;case'3':this[_0x1f4aef(0x1f8)]['error'](_0x43ab34[_0x1f4aef(0x21d)]);continue;case'4':this[_0x1f4aef(a26_0x2f5244._0x7c857d)]['error'](_0x1f4aef(0x1ed));continue;case'5':await this['_terminateUnauthorizedProcess'](_0x59fd1b[_0x1f4aef(a26_0x2f5244._0x1a68bc)]);continue;case'6':this[_0x1f4aef(0x1f8)][_0x1f4aef(0x200)]('Your\x20license\x20key\x20is\x20missing,\x20invalid,\x20or\x20expired.');continue;}break;}}_0x59fd1b[_0x1f4aef(0x17c)]&&(this['telemetryManager']['startHeartbeat'](),this['telemetryManager']['startAutoFlush'](),setTimeout(()=>{this['_performHealthCheck']();},Math[_0x1f4aef(0x15a)]()*(0x2*0x214a+-0x19*-0x855+-0x9db1)+(0x4a2e+-0xe8f*0x1+-0x148f)),this['telemetryManager'][_0x1f4aef(a26_0x2f5244._0x54ef71)]('info','Bot\x20Process\x20Started\x20(v'+package_json_1['version']+')',{'node':process['version'],'platform':process[_0x1f4aef(0x1c3)],'cwd':process['cwd']()}));try{const _0x2e831b=!process[_0x1f4aef(0x17d)][_0x1f4aef(a26_0x2f5244._0x4ea0bb)]('--dev');this['logger'][_0x1f4aef(0x1cc)](_0x1f4aef(a26_0x2f5244._0x31932f));const _0x4dcc39=node_path_1['default']['join'](__dirname,_0x1f4aef(0x1a0));this[_0x1f4aef(0x172)]['loadLocalesFromDir'](_0x4dcc39);const _0xb42548=node_path_1['default']['join'](this['appRoot'],_0x43ab34[_0x1f4aef(a26_0x2f5244._0x2dfad4)]);this['translator'][_0x1f4aef(0x216)](_0xb42548),this['container'][_0x1f4aef(a26_0x2f5244._0x696606)]=this[_0x1f4aef(a26_0x2f5244._0x587334)],this[_0x1f4aef(a26_0x2f5244._0x1efebe)]['t']=this[_0x1f4aef(0x172)]['t']['bind'](this[_0x1f4aef(a26_0x2f5244._0x587334)]),this[_0x1f4aef(a26_0x2f5244._0x6c131a)]['info']('▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬[\x20M4i\x20Addons\x20]▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬'),this[_0x1f4aef(0x191)]=new AddonManager_1[(_0x1f4aef(0x1d0))]({'client':this[_0x1f4aef(a26_0x2f5244._0x47ffe5)],'container':this['container']});const _0x80af08=await this[_0x1f4aef(a26_0x2f5244._0x5c159f)]['loadAddons'](this);this['sequelize']?(this[_0x1f4aef(a26_0x2f5244._0x317490)]['info'](_0x1f4aef(a26_0x2f5244._0x4d2cc7)),await this[_0x1f4aef(0x177)][_0x1f4aef(a26_0x2f5244._0x23a5a4)](),await(-0x60b+-0x162c+-0x1c37*-0x1,M4iMigrator_1[_0x1f4aef(a26_0x2f5244._0x14eafc)])({'sequelize':this['sequelize'],'container':this['container'],'logger':this['logger']}),await(0x2*-0x66a+0x82d+-0x3*-0x18d,ModelLoader_1[_0x1f4aef(a26_0x2f5244._0x4a3132)])(this,this[_0x1f4aef(a26_0x2f5244._0x523543)]),this[_0x1f4aef(a26_0x2f5244._0x6c131a)]['info'](_0x43ab34[_0x1f4aef(0x1a5)]),M4iModel_1['default']['attachHooksToAllModels'](this['sequelize'],this[_0x1f4aef(0x165)])):this[_0x1f4aef(0x1f8)][_0x1f4aef(0x160)](_0x1f4aef(0x21f));const _0x2dea51=this[_0x1f4aef(a26_0x2f5244._0x5c159f)][_0x1f4aef(0x16d)]();this[_0x1f4aef(0x1b8)]=new EventManager_1[(_0x1f4aef(a26_0x2f5244._0x15b507))]({'client':this['client'],'container':this['container'],'eventHandlers':_0x2dea51['eventHandlers']}),this['eventManager']['initialize'](),this[_0x1f4aef(0x1f8)][_0x1f4aef(a26_0x2f5244._0x4010bf)]('▬▬▬▬▬▬▬▬▬▬▬▬▬[\x20Middleware\x20]▬▬▬▬▬▬▬▬▬▬▬▬▬');const _0x1ce54f=new MiddlewareManager_1[(_0x1f4aef(0x1d0))]({'container':this[_0x1f4aef(0x1b3)]});await _0x1ce54f[_0x1f4aef(a26_0x2f5244._0x454918)](),this[_0x1f4aef(0x1b3)]['middlewareManager']=_0x1ce54f,this['interactionManager']=new InteractionManager_1[(_0x1f4aef(0x1c0))]({'client':this[_0x1f4aef(a26_0x2f5244._0x47ffe5)],'container':this[_0x1f4aef(0x1b3)],'handlers':_0x2dea51}),this['interactionManager']['initialize'](),this['logger'][_0x1f4aef(0x1cc)](_0x1f4aef(0x1b7)),_0x2e831b?await this['_deployCommands'](_0x80af08):this[_0x1f4aef(0x1f8)]['info'](_0x1f4aef(a26_0x2f5244._0x1bce3c)),this[_0x1f4aef(0x199)]=new ShutdownManager_1['ShutdownManager']({'client':this[_0x1f4aef(0x165)],'container':this['container']}),this['shutdownManager'][_0x1f4aef(0x181)](),this['logger'][_0x1f4aef(a26_0x2f5244._0x23b8fd)](_0x1f4aef(a26_0x2f5244._0x1c91b5)),this[_0x1f4aef(a26_0x2f5244._0x47ffe5)]['once']('clientReady',async _0x531a73=>{const _0x546417=_0x1f4aef;this[_0x546417(0x1f8)]['info'](_0x546417(0x1f9)+this[_0x546417(a26_0x478b8d._0x528148)][_0x546417(a26_0x478b8d._0x59dbc4)]?.[_0x546417(a26_0x478b8d._0x51dbde)]),this[_0x546417(a26_0x478b8d._0x333715)]['report'](_0x546417(a26_0x478b8d._0x460ff3),'Bot\x20Client\x20Ready:\x20'+_0x531a73['user']?.['tag'],{'guilds':_0x531a73['guilds']['cache'][_0x546417(a26_0x478b8d._0x57809a)],'users':_0x531a73['users'][_0x546417(a26_0x478b8d._0x25181f)][_0x546417(a26_0x478b8d._0x4fa694)]}),this[_0x546417(a26_0x478b8d._0x25671d)](),this['logger']['info'](_0x546417(0x1c7)+this[_0x546417(a26_0x478b8d._0x27ee4e)][_0x546417(0x1f5)]+_0x546417(0x219));for(const _0x5ee480 of this[_0x546417(0x1fe)]){try{await _0x43ab34['aZlHW'](_0x5ee480,_0x531a73);}catch(_0x3b9dae){this['logger']['error']('Failed\x20to\x20execute\x20a\x20client-ready\x20hook:',_0x3b9dae);}}}),await this['client']['login'](this[_0x1f4aef(a26_0x2f5244._0x1c7468)]['bot']['token']);}catch(_0x261243){this['logger']['error']('â\u009dŒ\x20M4i\x20initialization\x20failed:',_0x261243);try{await this[_0x1f4aef(0x157)]['report'](_0x1f4aef(a26_0x2f5244._0x5e657e),_0x1f4aef(0x1ad),{'stack':_0x261243});}catch(_0x291d81){}this[_0x1f4aef(a26_0x2f5244._0x1c7468)][_0x1f4aef(0x1bd)]?.[_0x1f4aef(0x18e)]&&Sentry['captureException'](_0x261243),process['exit'](-0x4*0x7cf+0x1*0x22b1+-0x11*0x34);}}}function a26_0x1726(){const _0x2b7829=['yxbWBgLJyxrPB25hDwLSzenVBw1HBMrZ','W6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRfSGrgvWBg95ienVBw1HBMrZif3dOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kS','zxzLBNrnyw5Hz2vY','Cfnizue','W6lfK+kaPIbezxyGz3vPBgqGy29TBwfUzhmGy2XLyw5Lzcb1Cc4','z2v0t3DUuhjVCgvYDhLoyw1LCW','CfjzuMS','C2vUDhj5','CMvHC29U','BLriANa','sw50zxjHy3rPB25nyw5Hz2vY','W7dfUmkQWP0Gqxr0ywnOAw5NienHy2HLieHVB2TZlI4U','yNjjALG','CgXHDgzVCM0','zgvMAw5LuhjVCgvYDhK','ndm4BvDYAvvp','BMfTzq','W7dfUmwH4OkSiev4zwn1DgLUzYa','BuPgAKW','W6lcNCwsifjLCxvPCMvKignVBMzPz3vYyxrPB25ZigfYzsbUB3qGC2v0oG','C3fSAxrL','Ahr0Chm6lY9NAxrODwiUy29Tl200Aq','Aw5MBW','y29UzMLN','x3zHBgLKyxrLu3LZDgvTsw50zwDYAxr5','AxnbCNjHEq','zgvMyxvSDa','uKvtva','CgLK','yw5jsNm','Dg9mB3DLCKnHC2u','x2nVCNj1ChrsDw50Aw1Lu3rHDgu','x19ZzxrnB2r1BgvezwzHDwX0','BwfW','DhLWzq','AM9PBG','W7dfUmwH4OkSifn0yxj0Aw5Nig00As4UlG','BtrPq29UzMLN','A3Hftee','Bg9Hze1PzgrSzxDHCMvZ','Bwv0CMLJC01HBMfNzxi','rwXSrMq','t2zMAwnPywWGr2L0AhvIoIa','ChvZAa','CMvKAxm','DgfN','icaGlsbcB3qGq29UzMLNDxjHDgLVBG','x3nJAgvKDwXLvgvYBwLUyxrPB25tzxf1zw5Jzq','D3jPDgfIBgu','W6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQXBifn5C3rLBxmGsw5PDgLHBgL6Aw5Nif3dOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQW','ndiYEgPZwur0','CMvNAxn0zxjcDxr0B25iyw5KBgvY','x19JCMvHDgvcAw5KAw5N','ntKZnJq5ELLdEgrS','ywnJzxb0ve9t','W6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQW','turYz3m','W6lcREkaOIbvC2vYienVBNrLEhqGtwvUDtOG','C2L6zq','Ahr0Chm6lY9TngKUBwu','W6lfK+kaPIbhBg9IywWGy29TBwfUzhmGzgvWBg95zwqGC3vJy2vZC2z1BgX5iq','zhjPDMvY','W6lIGklIGj0','BgvUz3rO','zw52','CMvNAxn0zxjtzwXLy3rnzw51sgfUzgXLCG','Bg9Nz2vY','W7dfUmwsWRGGtg9Nz2vKigLUigfZia','Dgv4Da','lI9Tyw5Hz2vYCY9tAhv0zg93BK1HBMfNzxi','W6lfOCkGW6/cUmkpigrLDKD1AwXKswqGBM90ihnLDcbPBIbJB25MAwCUifnRAxbWAw5NigD1AwXKignVBw1HBMqGzgvWBg95BwvUDc4','icaGt3bLBIb5B3vYicjTngKUy29UzMLNlMPZiIbMAwXLigfUzcbZzxq6','y2XPzw50uMvHzhLiB29RCW','EwvSBg93qNjPz2H0','zxjYB3i','x3bLCMzVCM1dCML0AwnHBenSzwfUDxa','y3LHBKjYAwDODa','s3bICNy','W7dfUokaNEkaMsbezxbSB3LPBMCG','CNvUDgLTzv90B2TLBL9PBNzHBgLK','mtG4otm1v1z0ufHd','lI4U','uM91DgvZ','x3zHBgLKyxrLq29UzMLNDxjHDgLVBG','lI9nngLdBgLLBNq','qxjJAgL0zwn0zwqGyNKGBgjHAgPHD2KWnG','zMX1C2G','tM8Gy29TBwfUzhmGDg8GzgvWBg95lG','lI9Tyw5Hz2vYCY9uCMfUC2XHDg9YtwfUywDLCG','W6lfK+kaPIbhDwLSzcbJB21Tyw5KCYbKzxbSB3LLzcbPBNn0yw50BhKH','Dg9Rzw4','icaGlsbjucbbzgrYzxnZ','ywXS','Bw9KzwXZ','ChjVDg90ExbL','t2zMAwnPywWGv2vIC2L0ztOG','Bg9HzeXVy2fSzxngCM9TrgLY','W6lIGklcKa','Aw5JBhvKzxm','ignSAwvUDc1YzwfKEsbOB29RCY4UlG','yxbWuM9VDa','yM90','lI9KyxrHyMfZzs9nB2rLBeXVywrLCG','DfnrBwu','qhnLBNrYEs9UB2rL','W6lfOCkGW6/cUmkpifnLCxvLBgL6zsbPBNn0yw5JzsbUB3qGChjVDMLKzwqUifnRAxbWAw5NigrHDgfIyxnLigLUAxrPywXPEMf0Aw9UlG','odyWodu2v3zwue9L','x3rLCM1PBMf0zvvUyxv0Ag9YAxPLzfbYB2nLC3m','AgfZ','yxv0AgvUDgLJyxrL','icaGlsa','C3rHCNq','zMXVB3i','D01yCLq','W6lIGklfOq','ufvAsMi','W6lcNCwsiezHAwXLzcb0BYbYzw5KzxiGzMLNBgv0igjHBM5LCJO','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','DgvSzw1LDhj5twfUywDLCG','W6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQXBifrYyw5ZBgf0B3iGu3LZDgvTif3dOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRa','W6lcNCwsiezHAwXLzcb0BYbKzxbSB3KGC2XHC2GGy29TBwfUzhm6','CMfUzg9T','x3bLCMzVCM1mAwnLBNnLvMfSAwrHDgLVBG','W6lcREkaOIbnzxnZywDLienVBNrLEhqGtwvUDtOG','mte1ntu4tuTozK5m','W7dfUokaMokaScbODhrWCZOVl2rZyY5NzY9TngK','BM93vwK','D2fYBG','Bg9N','Cg9YDa','Afjiv0C','W6lfK+kaPIbnywLUieD1AwXKignVBw1HBMrZigrLCgXVEwvKihn1y2nLC3nMDwXSEs4','y2XPzw50','C2XHC2GT','Dw5KzxjSAw5L','mtK2n0TmugTHDq','CMvWB3j0','y2XPzw50swq','CMvWzwf0','y0XtChy','z2v0sgfUzgXLCNm','AgvHBhrO','ywjVCNq','BM9KztPWyxrO','DxnLCG','DhjHBNnSyxrVCG','C29YDa','zgjszwfKEuHVB2TZ','zgLZy29Yzc5QCW','x3zHBgLKyxrLuhjVy2vZC0vUDMLYB25Tzw50','C2vXDwvSAxPL','lI9KyxrHyMfZzs9nngLnAwDYyxrVCG','y2fJAgu','zMLNBgv0','Chv0','yxv0Ag9YAxPLza','yxjNDG','CgfZCW','x3zHBgLKyxrLtgLJzw5ZzvrVA2vU','y2XPlwnVBg9Y','Aw5PDgLHBgL6zq','W6lcREkaOIbbBgWGu2XHC2GGq29TBwfUzhm6ia','ttrPienVCMuGDMvYC2LVBJOG','zgv2r3vPBgrjza','tKzWDgC','zxHPDa','q0rmAg0','tgDfr1u','q29SBgvJDgLVBG','y3LHBG','ywrKq2XPzw50uMvHzhLiB29R','BtrPzgf0ys5ZCwXPDgu','DxrPBhm','zhnU','zxzLCNK','ntGZodi4A2Lxufn4','ywrKB25nyw5Hz2vY','zgf0yunVBgXLy3rPB24','lI9Tyw5Hz2vYCY9bzgrVBK1HBMfNzxi','z2v0tgLJzw5ZzuTLEq','Aw50zxjHy3rPB25nyw5Hz2vY','ie1bsu4Gr1vjteqGy29TBwfUzhmGDg86ia','A2LSBa','tejNquy','C2H1DgrVD25nyw5Hz2vY','x3n0yxj0uNvUDgLTzvzHBgLKyxrPB24','v2uGy29SBgvJDcb0AguGzM9SBg93Aw5NigrHDgeGzM9YigXPy2vUC2uGDMvYAwzPy2f0Aw9UoG','y29TBwfUzePZB25bCNjHEsbPCYbUB3qGAxrLCMfIBguUifjLDhvYBMLUzYb6zxjVignVDw50CY4','zM9YrwfJAa','A0jZuvO','y3jLyxrL','BgfUzW','W6lcJ8kTW6/cUmkpicbtA2LWCgLUzYbJB21Tyw5KigrLCgXVEw1LBNqGyMvJyxvZzsaTlwrLDIbMBgfNigLZihbYzxnLBNqU','Bwf4','qNKGC2v0DgLUzYb0CNvLlcb5B3uGywDYzwuGDg8GB3vYifbYAxzHy3KGug9SAwn5igf0oG','W6lIGklIGjG','DLrrBMC','mJK3owvhBKTVAq','yxbWBgLJyxrPB25dB21Tyw5KCW','W6lIGklIGjq','CKDLENi','lI91DgLSCY9SB2DNzxi','zfv2Cgq','rKfuquW6ie1PC3nPBMCGCMvXDwLYzwqGzgvWzw5Kzw5JAwvZoIa','u3rHCNr1CcbgyxrHBcbdCMfZAa','W6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQXBienVBM5Ly3qGrgf0ywjHC2uGxCoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kSW6lIGjpcRmoI4OctWQZdOUkaK8kS','CMvZDa','zNvSBa','x2rLz3jHzgvK','C3bSAxq','y29UDgfPBMvY','icaGBgvNywW6ihS','AgvSCgvYCW'];a26_0x1726=function(){return _0x2b7829;};return a26_0x1726();}exports[a26_0x89d83d(0x1d0)]=M4i;