@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.
- package/dist/BuiltinModule.d.ts +3 -0
- package/dist/BuiltinModule.d.ts.map +1 -1
- package/dist/BuiltinModule.js +17 -0
- package/dist/BuiltinModule.js.map +1 -1
- package/dist/dto/index.d.ts +1 -0
- package/dist/dto/index.d.ts.map +1 -1
- package/dist/dto/takaroEvents.d.ts +7 -0
- package/dist/dto/takaroEvents.d.ts.map +1 -1
- package/dist/dto/takaroEvents.js +23 -1
- package/dist/dto/takaroEvents.js.map +1 -1
- package/dist/modules/chatBridge/index.d.ts.map +1 -1
- package/dist/modules/chatBridge/index.js +2 -0
- package/dist/modules/chatBridge/index.js.map +1 -1
- package/dist/modules/dailyRewards/commands/daily.js +1 -4
- package/dist/modules/dailyRewards/commands/daily.js.map +1 -1
- package/dist/modules/dailyRewards/index.d.ts.map +1 -1
- package/dist/modules/dailyRewards/index.js +4 -1
- package/dist/modules/dailyRewards/index.js.map +1 -1
- package/dist/modules/economyUtils/commands/confirmTransfer.js +4 -4
- package/dist/modules/economyUtils/commands/confirmTransfer.js.map +1 -1
- package/dist/modules/economyUtils/commands/grantCurrency.js +1 -4
- package/dist/modules/economyUtils/commands/grantCurrency.js.map +1 -1
- package/dist/modules/economyUtils/commands/revokeCurrency.js +1 -4
- package/dist/modules/economyUtils/commands/revokeCurrency.js.map +1 -1
- package/dist/modules/economyUtils/index.d.ts.map +1 -1
- package/dist/modules/economyUtils/index.js +5 -1
- package/dist/modules/economyUtils/index.js.map +1 -1
- package/dist/modules/geoBlock/index.d.ts.map +1 -1
- package/dist/modules/geoBlock/index.js +2 -0
- package/dist/modules/geoBlock/index.js.map +1 -1
- package/dist/modules/gimme/index.d.ts.map +1 -1
- package/dist/modules/gimme/index.js +2 -0
- package/dist/modules/gimme/index.js.map +1 -1
- package/dist/modules/highPingKicker/index.d.ts.map +1 -1
- package/dist/modules/highPingKicker/index.js +2 -0
- package/dist/modules/highPingKicker/index.js.map +1 -1
- package/dist/modules/lottery/commands/buyTicket.js +1 -4
- package/dist/modules/lottery/commands/buyTicket.js.map +1 -1
- package/dist/modules/lottery/commands/viewTickets.js +5 -8
- package/dist/modules/lottery/commands/viewTickets.js.map +1 -1
- package/dist/modules/lottery/index.d.ts.map +1 -1
- package/dist/modules/lottery/index.js +5 -1
- package/dist/modules/lottery/index.js.map +1 -1
- package/dist/modules/playerOnboarding/index.d.ts.map +1 -1
- package/dist/modules/playerOnboarding/index.js +2 -0
- package/dist/modules/playerOnboarding/index.js.map +1 -1
- package/dist/modules/serverMessages/index.d.ts.map +1 -1
- package/dist/modules/serverMessages/index.js +2 -0
- package/dist/modules/serverMessages/index.js.map +1 -1
- package/dist/modules/teleports/commands/deletewaypoint.js +1 -4
- package/dist/modules/teleports/commands/deletewaypoint.js.map +1 -1
- package/dist/modules/teleports/commands/setpublic.js +0 -3
- package/dist/modules/teleports/commands/setpublic.js.map +1 -1
- package/dist/modules/teleports/commands/settp.js +1 -4
- package/dist/modules/teleports/commands/settp.js.map +1 -1
- package/dist/modules/teleports/commands/setwaypoint.js +1 -4
- package/dist/modules/teleports/commands/setwaypoint.js.map +1 -1
- package/dist/modules/teleports/commands/teleport.js +1 -4
- package/dist/modules/teleports/commands/teleport.js.map +1 -1
- package/dist/modules/teleports/index.d.ts.map +1 -1
- package/dist/modules/teleports/index.js +9 -1
- package/dist/modules/teleports/index.js.map +1 -1
- package/dist/modules/timedShutdown/index.d.ts.map +1 -1
- package/dist/modules/timedShutdown/index.js +2 -0
- package/dist/modules/timedShutdown/index.js.map +1 -1
- package/dist/modules/utils/commands/help.js +60 -6
- package/dist/modules/utils/commands/help.js.map +1 -1
- package/dist/modules/utils/index.d.ts.map +1 -1
- package/dist/modules/utils/index.js +11 -2
- package/dist/modules/utils/index.js.map +1 -1
- package/dist/modules.json +112 -18
- package/package.json +1 -1
- package/src/BuiltinModule.ts +11 -0
- package/src/__tests__/economy/economyUtils.integration.test.ts +6 -2
- package/src/__tests__/help.integration.test.ts +230 -62
- package/src/__tests__/lottery.integration.test.ts +5 -1
- package/src/__tests__/modulePermission.integration.test.ts +197 -11
- package/src/__tests__/roleExpiry.integration.test.ts +6 -2
- package/src/__tests__/teleports/publicteleports.integration.test.ts +1 -1
- package/src/__tests__/teleports/waypoints.integration.test.ts +6 -2
- package/src/dto/takaroEvents.ts +16 -0
- package/src/modules/chatBridge/index.ts +2 -0
- package/src/modules/dailyRewards/commands/daily.js +1 -5
- package/src/modules/dailyRewards/index.ts +4 -1
- package/src/modules/economyUtils/commands/confirmTransfer.js +6 -6
- package/src/modules/economyUtils/commands/grantCurrency.js +1 -5
- package/src/modules/economyUtils/commands/revokeCurrency.js +1 -5
- package/src/modules/economyUtils/index.ts +5 -1
- package/src/modules/geoBlock/index.ts +2 -0
- package/src/modules/gimme/index.ts +2 -0
- package/src/modules/highPingKicker/index.ts +2 -0
- package/src/modules/lottery/commands/buyTicket.js +1 -5
- package/src/modules/lottery/commands/viewTickets.js +5 -9
- package/src/modules/lottery/index.ts +5 -1
- package/src/modules/playerOnboarding/index.ts +2 -0
- package/src/modules/serverMessages/index.ts +2 -0
- package/src/modules/teleports/commands/deletewaypoint.js +1 -5
- package/src/modules/teleports/commands/setpublic.js +1 -5
- package/src/modules/teleports/commands/settp.js +1 -6
- package/src/modules/teleports/commands/setwaypoint.js +1 -5
- package/src/modules/teleports/commands/teleport.js +1 -5
- package/src/modules/teleports/index.ts +9 -1
- package/src/modules/timedShutdown/index.ts +2 -0
- package/src/modules/utils/commands/help.js +70 -8
- 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.
|
|
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
|
],
|