@takaro/modules 0.2.0 → 0.3.0

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 (105) hide show
  1. package/dist/BuiltinModule.d.ts +3 -0
  2. package/dist/BuiltinModule.d.ts.map +1 -1
  3. package/dist/BuiltinModule.js +17 -0
  4. package/dist/BuiltinModule.js.map +1 -1
  5. package/dist/dto/index.d.ts +1 -0
  6. package/dist/dto/index.d.ts.map +1 -1
  7. package/dist/dto/takaroEvents.d.ts +7 -0
  8. package/dist/dto/takaroEvents.d.ts.map +1 -1
  9. package/dist/dto/takaroEvents.js +23 -1
  10. package/dist/dto/takaroEvents.js.map +1 -1
  11. package/dist/modules/chatBridge/index.d.ts.map +1 -1
  12. package/dist/modules/chatBridge/index.js +2 -0
  13. package/dist/modules/chatBridge/index.js.map +1 -1
  14. package/dist/modules/dailyRewards/commands/daily.js +1 -4
  15. package/dist/modules/dailyRewards/commands/daily.js.map +1 -1
  16. package/dist/modules/dailyRewards/index.d.ts.map +1 -1
  17. package/dist/modules/dailyRewards/index.js +4 -1
  18. package/dist/modules/dailyRewards/index.js.map +1 -1
  19. package/dist/modules/economyUtils/commands/confirmTransfer.js +4 -4
  20. package/dist/modules/economyUtils/commands/confirmTransfer.js.map +1 -1
  21. package/dist/modules/economyUtils/commands/grantCurrency.js +1 -4
  22. package/dist/modules/economyUtils/commands/grantCurrency.js.map +1 -1
  23. package/dist/modules/economyUtils/commands/revokeCurrency.js +1 -4
  24. package/dist/modules/economyUtils/commands/revokeCurrency.js.map +1 -1
  25. package/dist/modules/economyUtils/index.d.ts.map +1 -1
  26. package/dist/modules/economyUtils/index.js +5 -1
  27. package/dist/modules/economyUtils/index.js.map +1 -1
  28. package/dist/modules/geoBlock/index.d.ts.map +1 -1
  29. package/dist/modules/geoBlock/index.js +2 -0
  30. package/dist/modules/geoBlock/index.js.map +1 -1
  31. package/dist/modules/gimme/index.d.ts.map +1 -1
  32. package/dist/modules/gimme/index.js +2 -0
  33. package/dist/modules/gimme/index.js.map +1 -1
  34. package/dist/modules/highPingKicker/index.d.ts.map +1 -1
  35. package/dist/modules/highPingKicker/index.js +2 -0
  36. package/dist/modules/highPingKicker/index.js.map +1 -1
  37. package/dist/modules/lottery/commands/buyTicket.js +1 -4
  38. package/dist/modules/lottery/commands/buyTicket.js.map +1 -1
  39. package/dist/modules/lottery/commands/viewTickets.js +5 -8
  40. package/dist/modules/lottery/commands/viewTickets.js.map +1 -1
  41. package/dist/modules/lottery/index.d.ts.map +1 -1
  42. package/dist/modules/lottery/index.js +5 -1
  43. package/dist/modules/lottery/index.js.map +1 -1
  44. package/dist/modules/playerOnboarding/index.d.ts.map +1 -1
  45. package/dist/modules/playerOnboarding/index.js +2 -0
  46. package/dist/modules/playerOnboarding/index.js.map +1 -1
  47. package/dist/modules/serverMessages/index.d.ts.map +1 -1
  48. package/dist/modules/serverMessages/index.js +2 -0
  49. package/dist/modules/serverMessages/index.js.map +1 -1
  50. package/dist/modules/teleports/commands/deletewaypoint.js +1 -4
  51. package/dist/modules/teleports/commands/deletewaypoint.js.map +1 -1
  52. package/dist/modules/teleports/commands/setpublic.js +0 -3
  53. package/dist/modules/teleports/commands/setpublic.js.map +1 -1
  54. package/dist/modules/teleports/commands/settp.js +1 -4
  55. package/dist/modules/teleports/commands/settp.js.map +1 -1
  56. package/dist/modules/teleports/commands/setwaypoint.js +1 -4
  57. package/dist/modules/teleports/commands/setwaypoint.js.map +1 -1
  58. package/dist/modules/teleports/commands/teleport.js +1 -4
  59. package/dist/modules/teleports/commands/teleport.js.map +1 -1
  60. package/dist/modules/teleports/index.d.ts.map +1 -1
  61. package/dist/modules/teleports/index.js +9 -1
  62. package/dist/modules/teleports/index.js.map +1 -1
  63. package/dist/modules/timedShutdown/index.d.ts.map +1 -1
  64. package/dist/modules/timedShutdown/index.js +2 -0
  65. package/dist/modules/timedShutdown/index.js.map +1 -1
  66. package/dist/modules/utils/commands/help.js +60 -6
  67. package/dist/modules/utils/commands/help.js.map +1 -1
  68. package/dist/modules/utils/index.d.ts.map +1 -1
  69. package/dist/modules/utils/index.js +11 -2
  70. package/dist/modules/utils/index.js.map +1 -1
  71. package/dist/modules.json +112 -18
  72. package/package.json +1 -1
  73. package/src/BuiltinModule.ts +11 -0
  74. package/src/__tests__/economy/economyUtils.integration.test.ts +6 -2
  75. package/src/__tests__/help.integration.test.ts +230 -62
  76. package/src/__tests__/lottery.integration.test.ts +5 -1
  77. package/src/__tests__/modulePermission.integration.test.ts +197 -11
  78. package/src/__tests__/roleExpiry.integration.test.ts +6 -2
  79. package/src/__tests__/teleports/publicteleports.integration.test.ts +1 -1
  80. package/src/__tests__/teleports/waypoints.integration.test.ts +6 -2
  81. package/src/dto/takaroEvents.ts +16 -0
  82. package/src/modules/chatBridge/index.ts +2 -0
  83. package/src/modules/dailyRewards/commands/daily.js +1 -5
  84. package/src/modules/dailyRewards/index.ts +4 -1
  85. package/src/modules/economyUtils/commands/confirmTransfer.js +6 -6
  86. package/src/modules/economyUtils/commands/grantCurrency.js +1 -5
  87. package/src/modules/economyUtils/commands/revokeCurrency.js +1 -5
  88. package/src/modules/economyUtils/index.ts +5 -1
  89. package/src/modules/geoBlock/index.ts +2 -0
  90. package/src/modules/gimme/index.ts +2 -0
  91. package/src/modules/highPingKicker/index.ts +2 -0
  92. package/src/modules/lottery/commands/buyTicket.js +1 -5
  93. package/src/modules/lottery/commands/viewTickets.js +5 -9
  94. package/src/modules/lottery/index.ts +5 -1
  95. package/src/modules/playerOnboarding/index.ts +2 -0
  96. package/src/modules/serverMessages/index.ts +2 -0
  97. package/src/modules/teleports/commands/deletewaypoint.js +1 -5
  98. package/src/modules/teleports/commands/setpublic.js +1 -5
  99. package/src/modules/teleports/commands/settp.js +1 -6
  100. package/src/modules/teleports/commands/setwaypoint.js +1 -5
  101. package/src/modules/teleports/commands/teleport.js +1 -5
  102. package/src/modules/teleports/index.ts +9 -1
  103. package/src/modules/timedShutdown/index.ts +2 -0
  104. package/src/modules/utils/commands/help.js +70 -8
  105. package/src/modules/utils/index.ts +11 -2
@@ -5,9 +5,11 @@ export class Utils extends ModuleTransferDTO<Utils> {
5
5
  super();
6
6
 
7
7
  this.name = 'utils';
8
+ this.author = 'Takaro';
9
+ this.supportedGames = ['all'];
8
10
  this.versions = [
9
11
  new ModuleTransferVersionDTO({
10
- tag: '0.0.1',
12
+ tag: '0.0.2',
11
13
  description: 'A collection of useful commands',
12
14
  configSchema: JSON.stringify({
13
15
  $schema: 'http://json-schema.org/draft-07/schema#',
@@ -32,9 +34,16 @@ export class Utils extends ModuleTransferDTO<Utils> {
32
34
  name: 'command',
33
35
  type: 'string',
34
36
  defaultValue: 'all',
35
- helpText: 'The command to get help for',
37
+ helpText: 'The command to get help for, or "search" to search for commands',
36
38
  position: 0,
37
39
  },
40
+ {
41
+ name: 'searchTerm',
42
+ type: 'string',
43
+ defaultValue: 'none',
44
+ helpText: 'Search term to find commands (when first argument is "search")',
45
+ position: 1,
46
+ },
38
47
  ],
39
48
  }),
40
49
  ],