reciple 1.0.8 → 1.0.11

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/README.md CHANGED
@@ -58,4 +58,7 @@ reciple
58
58
  ```
59
59
 
60
60
  > ## Fun Fact
61
- > The name reciple is from a minecraft bug. The bug was a misspelling of the word `recipe`. [Mojang Reciple](https://bugs.mojang.com/browse/MC-225837)
61
+ > The name reciple is from a minecraft bug. The bug was a misspelling of the word `recipe`. [Mojang Reciple](https://bugs.mojang.com/browse/MC-225837)
62
+
63
+ # Save the Earth
64
+ [![](https://i.imgur.com/GbB1ZuH.png)](https://rebellion.global/)
package/bin/bin.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ import 'dotenv/config';
package/bin/bin.js CHANGED
@@ -14,7 +14,9 @@ const Config_1 = require("./reciple/classes/Config");
14
14
  const Client_1 = require("./reciple/classes/Client");
15
15
  const fs_1 = require("fs");
16
16
  const fallout_utility_1 = require("fallout-utility");
17
- if ((0, fs_1.readdirSync)('./').length > 0 && !(0, fs_1.existsSync)('./reciple.yml')) {
17
+ require("dotenv/config");
18
+ const allowedFiles = ['node_modules', 'reciple.yml', 'package.json', 'package.lock.json'];
19
+ if ((0, fs_1.readdirSync)('./').filter(f => !f.startsWith('.') && allowedFiles.indexOf(f)).length > 0 && !(0, fs_1.existsSync)('./reciple.yml')) {
18
20
  const ask = (0, fallout_utility_1.input)('This directory does not contain reciple.yml. Would you like to init axis here? [y/n] ');
19
21
  if (ask !== 'y')
20
22
  process.exit(0);
package/bin/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './reciple/classes/builders/MessageCommandBuilder';
4
4
  export * from './reciple/classes/builders/InteractionCommandBuilder';
5
5
  export * from './reciple/commandPermissions';
6
6
  export * from './reciple/flags';
7
+ export * from './reciple/isIgnoredChannel';
7
8
  export * from './reciple/logger';
8
9
  export * from './reciple/modules';
9
10
  export * from './reciple/registerInteractionCommands';
package/bin/index.js CHANGED
@@ -20,6 +20,7 @@ __exportStar(require("./reciple/classes/builders/MessageCommandBuilder"), export
20
20
  __exportStar(require("./reciple/classes/builders/InteractionCommandBuilder"), exports);
21
21
  __exportStar(require("./reciple/commandPermissions"), exports);
22
22
  __exportStar(require("./reciple/flags"), exports);
23
+ __exportStar(require("./reciple/isIgnoredChannel"), exports);
23
24
  __exportStar(require("./reciple/logger"), exports);
24
25
  __exportStar(require("./reciple/modules"), exports);
25
26
  __exportStar(require("./reciple/registerInteractionCommands"), exports);
@@ -1,6 +1,7 @@
1
1
  import { Message } from 'discord.js';
2
+ import { Command } from 'fallout-utility';
2
3
  import { RecipleClient } from '../Client';
3
- export interface CommandMessage {
4
+ export interface CommandMessage extends Command {
4
5
  command?: string;
5
6
  args?: string[];
6
7
  raw?: string;
@@ -32,7 +32,7 @@ function loadModules(client) {
32
32
  module_ = require(modulePath);
33
33
  if (!module_.versions || !(typeof module_.versions === 'object' ? module_.versions : [module_.versions]).includes(client.version))
34
34
  throw new Error('Module versions is not defined or unsupported.');
35
- if (!module_.onStart(client))
35
+ if (!(yield Promise.resolve(module_.onStart(client))))
36
36
  throw new Error(script + ' onStart is not defined or returned false.');
37
37
  if (module_.commands) {
38
38
  for (const command of module_.commands) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "1.0.8",
3
+ "version": "1.0.11",
4
4
  "description": "A Discord.js bot",
5
5
  "author": "FalloutStudios",
6
6
  "license": "GPL-3.0",
@@ -24,13 +24,14 @@
24
24
  "test:compile": "npm run build && npm run test:run"
25
25
  },
26
26
  "dependencies": {
27
- "commander": "^9.1.0",
27
+ "commander": "^9.2.0",
28
28
  "discord.js": "^13.6.0",
29
- "fallout-utility": "^1.3.9",
30
- "yaml": "^1.10.2"
29
+ "dotenv": "^16.0.0",
30
+ "fallout-utility": "^1.3.11",
31
+ "yaml": "^2.0.1"
31
32
  },
32
33
  "devDependencies": {
33
- "@types/node": "^17.0.23",
34
+ "@types/node": "^17.0.24",
34
35
  "typescript": "^4.6.3"
35
36
  }
36
37
  }