catto.js 1.0.9 → 1.1.1

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/Base64.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * @returns {string} - The encoded text in base64.
6
6
  */
7
7
  function encode(text) {
8
- return Buffer.from(text, "utf-8").toString("base64")
8
+ return Buffer.from(text, "utf-8").toString("base64");
9
9
  }
10
10
  /**
11
11
  * Decodes a base64 string.
@@ -14,7 +14,7 @@ function encode(text) {
14
14
  * @returns {string} - The decoded text.
15
15
  */
16
16
  function decode(text) {
17
- return Buffer.from(text, "base64").toString("utf-8")
17
+ return Buffer.from(text, "base64").toString("utf-8");
18
18
  }
19
19
  module.exports = {
20
20
  encode,
package/Bot.js CHANGED
@@ -457,7 +457,7 @@ module.exports = class extends EventEmitter {
457
457
  console.log(e);
458
458
  }
459
459
  } else {
460
- interaction.reply({}).catch(() => {});
460
+ interaction.deferReply({}).catch(() => {});
461
461
  }
462
462
  } else {
463
463
  this.emit("interaction", interaction);
package/TelegramBot.js CHANGED
@@ -12,13 +12,16 @@ module.exports = class extends EventEmitter {
12
12
  super();
13
13
  this.options = Object.assign({
14
14
  "token": "",
15
- "debug": !1
15
+ "debug": !1,
16
+ "test": !1
16
17
  }, options || {});
17
18
  if (client) {
18
19
  this.client = client;
19
20
  } else {
20
21
  Telegraf = require("telegraf").Telegraf;
21
- this.client = new Telegraf(this.options.token);
22
+ this.client = new Telegraf(this.options.token, {
23
+ "testEnv": this.options.test
24
+ });
22
25
  }
23
26
  this.commands = new Map();
24
27
  this.slashCommands = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "body-parser": "^1.20.2",
46
46
  "discord-hybrid-sharding": "^2.2.0",
47
- "discord.js": "^14.15.3",
47
+ "discord.js": "^14.16.3",
48
48
  "ejs": "^3.1.10",
49
49
  "express": "^4.19.2",
50
50
  "express-session": "^1.18.0",