reciple 1.0.14 → 1.0.15

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.
@@ -23,8 +23,8 @@ class RecipleClient extends discord_js_1.Client {
23
23
  super(options);
24
24
  this.commands = { MESSAGE_COMMANDS: {}, INTERACTION_COMMANDS: {} };
25
25
  this.modules = [];
26
- this.logger = (0, logger_1.logger)(false);
27
26
  this.version = version_1.version;
27
+ this.logger = (0, logger_1.logger)(!!options.config.fileLogging.stringifyLoggedJSON, !!options.config.fileLogging.debugmode);
28
28
  if (!options.config)
29
29
  throw new Error('Config is not defined.');
30
30
  this.config = options.config;
@@ -38,6 +38,8 @@ export interface Config {
38
38
  };
39
39
  fileLogging: {
40
40
  enabled: boolean;
41
+ debugmode: boolean;
42
+ stringifyLoggedJSON: boolean;
41
43
  logFilePath: string;
42
44
  };
43
45
  client: ClientOptions;
@@ -1,2 +1,2 @@
1
1
  import { Logger } from 'fallout-utility';
2
- export declare function logger(stringifyJSON: boolean): Logger;
2
+ export declare function logger(stringifyJSON: boolean, debugmode?: boolean): Logger;
@@ -2,10 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.logger = void 0;
4
4
  const fallout_utility_1 = require("fallout-utility");
5
- function logger(stringifyJSON) {
5
+ function logger(stringifyJSON, debugmode = false) {
6
6
  return new fallout_utility_1.Logger("Main", {
7
7
  addPrefixToEveryJsonNewLines: stringifyJSON,
8
8
  stringifyJSON: stringifyJSON,
9
+ setDebugging: debugmode
9
10
  });
10
11
  }
11
12
  exports.logger = logger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "A Discord.js bot",
5
5
  "author": "FalloutStudios",
6
6
  "license": "GPL-3.0",
@@ -27,7 +27,7 @@
27
27
  "commander": "^9.2.0",
28
28
  "discord.js": "^13.6.0",
29
29
  "dotenv": "^16.0.0",
30
- "fallout-utility": "^1.3.11",
30
+ "fallout-utility": "^1.3.12",
31
31
  "yaml": "^2.0.1"
32
32
  },
33
33
  "devDependencies": {
@@ -32,6 +32,8 @@ ignoredChannels:
32
32
 
33
33
  fileLogging:
34
34
  enabled: true
35
+ debugmode: false
36
+ stringifyLoggedJSON: false
35
37
  logFilePath: './logs/latest.log'
36
38
 
37
39
  client: