nexushub-commands 1.11.0 → 1.11.2

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.
@@ -80,6 +80,7 @@ let GetDepositOrderCommand = class GetDepositOrderCommand extends evogram_1.Comm
80
80
  ],
81
81
  },
82
82
  });
83
+ break;
83
84
  case 'crypto':
84
85
  message = yield context.sendFormatted({
85
86
  photo: config.images.depositCrypto,
@@ -101,6 +102,7 @@ let GetDepositOrderCommand = class GetDepositOrderCommand extends evogram_1.Comm
101
102
  ],
102
103
  },
103
104
  });
105
+ break;
104
106
  }
105
107
  yield this.client.database.config.set(`order${orderId}`, { chatId: context.chat.id, messageId: message.id });
106
108
  });
@@ -113,7 +113,7 @@ let AdminWithdrawalCommand = AdminWithdrawalCommand_1 = class AdminWithdrawalCom
113
113
  chat_id: withdrawal.user,
114
114
  photo: config.images.withdrawal,
115
115
  caption: `<blockquote><b>❌ Отклонена заявка на вывод средств</b></blockquote>\n\n` +
116
- `<i>— Сумма: {{ ${yield withdrawal.amount.convert({ from: 'RUB', to: config.currency })} }}</i>\n` +
116
+ `<i>— Сумма: {{ ${yield withdrawal.amount.convert({ from: 'RUB', to: user.currency })} }}</i>\n` +
117
117
  `<i>— Метод: {{ ${withdrawal.method === 'crypto' ? `Крипто-кошелек ${(_b = withdrawal.coin) === null || _b === void 0 ? void 0 : _b.toUpperCase()}` : withdrawal.method === 'sbp' ? 'Номер телефона' : 'Банковская карта'} }}</i>\n` +
118
118
  `<i>— Реквизиты: {{ ${withdrawal.requisites} }}</i>\n` +
119
119
  (template === null ? `\n<b>ℹ️ Обратитесь в <a href="https://t.me/${config.support.username}">тех. поддержку</a> для уточнения проблемы.</b>` : ''),
@@ -0,0 +1,2 @@
1
+ export declare class ServiceCommand {
2
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCommand = void 0;
4
+ class ServiceCommand {
5
+ }
6
+ exports.ServiceCommand = ServiceCommand;
@@ -0,0 +1 @@
1
+ export * from './ServiceCommand';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./ServiceCommand"), exports);
@@ -0,0 +1 @@
1
+ export * from './commands';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./commands"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexushub-commands",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "main": "./lib/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -88,6 +88,7 @@ export class GetDepositOrderCommand extends Command {
88
88
  },
89
89
  }
90
90
  )
91
+ break
91
92
  case 'crypto':
92
93
  message = await context.sendFormatted(
93
94
  {
@@ -116,6 +117,7 @@ export class GetDepositOrderCommand extends Command {
116
117
  },
117
118
  }
118
119
  )
120
+ break
119
121
  }
120
122
 
121
123
  await this.client.database.config.set(`order${orderId}`, { chatId: context.chat.id, messageId: message.id })
@@ -124,7 +124,7 @@ export class AdminWithdrawalCommand extends Command {
124
124
  caption:
125
125
  `<blockquote><b>❌ Отклонена заявка на вывод средств</b></blockquote>\n\n` +
126
126
 
127
- `<i>— Сумма: {{ ${await withdrawal.amount.convert({ from: 'RUB', to: config.currency })} }}</i>\n` +
127
+ `<i>— Сумма: {{ ${await withdrawal.amount.convert({ from: 'RUB', to: user.currency })} }}</i>\n` +
128
128
  `<i>— Метод: {{ ${withdrawal.method === 'crypto' ? `Крипто-кошелек ${withdrawal.coin?.toUpperCase()}` : withdrawal.method === 'sbp' ? 'Номер телефона' : 'Банковская карта'} }}</i>\n` +
129
129
  `<i>— Реквизиты: {{ ${withdrawal.requisites} }}</i>\n` +
130
130
 
@@ -0,0 +1 @@
1
+ export class ServiceCommand {}
@@ -0,0 +1 @@
1
+ export * from './ServiceCommand'
@@ -0,0 +1 @@
1
+ export * from './commands'