xernerx 0.1.120-beta.3 → 0.1.120-beta.32

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 (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +50 -3
  3. package/dist/main.cjs +1255 -275
  4. package/dist/main.cjs.map +1 -1
  5. package/dist/main.d.cts +663 -133
  6. package/dist/main.d.ts +663 -133
  7. package/dist/main.js +1246 -254
  8. package/dist/main.js.map +1 -1
  9. package/package.json +31 -24
  10. package/src/build/XernerxBaseBuilder.ts +21 -0
  11. package/src/build/XernerxEventBuilder.ts +39 -0
  12. package/src/build/XernerxMessageCommandBuilder.ts +72 -0
  13. package/src/build/XernerxSlashCommandBuilder.ts +290 -0
  14. package/src/client/XernerxClient.ts +174 -151
  15. package/src/client/XernerxShardClient.ts +89 -0
  16. package/src/events/clientReady.ts +96 -0
  17. package/src/events/entitlementCreate.ts +15 -0
  18. package/src/events/interactionCreate.ts +36 -0
  19. package/src/events/messageCreate.ts +60 -0
  20. package/src/events/messageDelete.ts +41 -0
  21. package/src/events/messageUpdate.ts +60 -0
  22. package/src/events/slashCommandInteraction.ts +55 -0
  23. package/src/handler/CommandHandler.ts +132 -0
  24. package/src/handler/EventHandler.ts +45 -0
  25. package/src/handler/Handler.ts +98 -0
  26. package/src/interfaces/XernerxClientOptions.ts +13 -0
  27. package/src/interfaces/XernerxClientStats.ts +16 -0
  28. package/src/interfaces/XernerxEventBuilderOptions.ts +9 -0
  29. package/src/interfaces/XernerxMessageCommandBuilderOptions.ts +8 -0
  30. package/src/interfaces/XernerxMessageCommandHandlerOptions.ts +15 -0
  31. package/src/interfaces/XernerxShardClientOptions.ts +5 -0
  32. package/src/interfaces/XernerxSlashCommandBuilderOptions.ts +70 -0
  33. package/src/interfaces/XernerxSlashCommandHandlerOptions.ts +5 -0
  34. package/src/interfaces/XernerxSlashCommandOptions.ts +19 -0
  35. package/src/main.ts +21 -7
  36. package/src/model/XernerxGuild.ts +13 -0
  37. package/src/model/XernerxInteractionArguments.ts +92 -0
  38. package/src/model/XernerxMonitisation.ts +73 -0
  39. package/src/model/XernerxUser.ts +82 -0
  40. package/src/tools/XernerxBase.ts +16 -0
  41. package/src/tools/XernerxError.ts +16 -0
  42. package/src/tools/XernerxInfo.ts +13 -0
  43. package/src/tools/XernerxInitial.ts +28 -0
  44. package/src/tools/XernerxSuccess.ts +13 -0
  45. package/src/tools/XernerxWarn.ts +13 -0
  46. package/src/types/Events.d.ts +21 -0
  47. package/src/types/Interaction.d.ts +90 -0
  48. package/src/types/Message.d.ts +16 -0
  49. package/src/util/XernerxInteractionUtil.ts +81 -0
  50. package/src/util/XernerxMessageUtil.ts +105 -0
  51. package/src/util/XernerxUtil.ts +47 -0
  52. package/src/validators/XernerxBaseValidator.ts +82 -0
  53. package/src/validators/XernerxSlashCommandValidator.ts +11 -0
  54. package/dist/main.global.js +0 -88567
  55. package/dist/main.global.js.map +0 -1
  56. package/src/builders/XernerxContextCommand.ts +0 -29
  57. package/src/builders/XernerxEvent.ts +0 -21
  58. package/src/builders/XernerxInhibitor.ts +0 -21
  59. package/src/builders/XernerxMessageCommand.ts +0 -24
  60. package/src/builders/XernerxSlashCommand.ts +0 -26
  61. package/src/handlers/CommandHandler.ts +0 -49
  62. package/src/handlers/Handler.ts +0 -57
  63. package/src/tools/XernerxLog.ts +0 -58
  64. package/src/types/interfaces.ts +0 -25
  65. package/src/types/types.ts +0 -29
  66. package/src/util/ClientUtil.ts +0 -29
  67. package/src/util/Util.ts +0 -11
  68. package/src/util/prompts.ts +0 -120
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Dummi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,50 @@
1
- <!-- @format -->
2
-
3
- # XERNERX
1
+ <!-- @format -->
2
+
3
+ <center>
4
+
5
+ ![ICON](https://dummi.me/icons/XernerxLogoPurple.png)
6
+
7
+ [![](./docs/icons/Xernerx%20-%20Logo%20-%20Purple.png)](https://xernerx.github.io/xernerx)
8
+
9
+ [![Discord](https://img.shields.io/discord/784094726432489522?logo=discord)](https://discord.gg/teNWyb69dq)
10
+ ![npm](https://img.shields.io/npm/dw/xernerx)
11
+ ![npm](https://img.shields.io/npm/dt/xernerx)
12
+ ![Read the Docs](https://img.shields.io/readthedocs/node)
13
+ ![npm type definitions](https://img.shields.io/npm/types/xernerx)
14
+ ![node-current](https://img.shields.io/npm/v/discord.js)
15
+ [![wakatime](https://wakatime.com/badge/user/0eeef1b5-98a7-4ec0-ab4c-db00536d5ed1/project/23ab34b7-623b-45e8-b8db-e9f1910589f7.svg)](https://wakatime.com/badge/user/0eeef1b5-98a7-4ec0-ab4c-db00536d5ed1/project/23ab34b7-623b-45e8-b8db-e9f1910589f7)
16
+ ![node-current](https://img.shields.io/node/v/xernerx)
17
+ ![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/t/xernerx/xernerx)
18
+
19
+ </center>
20
+
21
+ # About
22
+
23
+ Xernerx is a class based discord.js framework.
24
+
25
+ It can be customized to be a lightweight handler or a heavy customizable framework that does all the hard work for you.
26
+
27
+ ## Features
28
+
29
+ > - [x] Slash command handler
30
+ > - [x] Message command handler
31
+ > - [x] Context command handler
32
+ > - [x] Event handler (with custom Events)
33
+ > - [x] Inhibitor handler
34
+ > - [x] Extension handler
35
+ > - [x] Client Utilities
36
+ > - [x] Message Utilities
37
+ > - [x] Interaction Utilities
38
+ > - [x] Message command handles
39
+ > - [x] Extension support
40
+ > - [x] ShardClient
41
+
42
+ ## Links
43
+
44
+ > - [Documentation](https://app.xernerx.com/docs)
45
+
46
+ ## Notes
47
+
48
+ > - [x] CJS
49
+ > - [x] ESM
50
+ > - [x] TypeScript Types